]>
Commit | Line | Data |
---|---|---|
1d115baf RR |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/gtk/gnome/gvfs.h | |
3 | // Author: Robert Roebling | |
4 | // Purpose: GNOME VFS support | |
5 | // Created: 17/03/06 | |
6 | // RCS-ID: $Id$ | |
7 | // Copyright: Robert Roebling | |
8 | // Licence: wxWindows Licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef __gvfs_H__ | |
12 | #define __gvfs_H__ | |
13 | ||
14 | // Include wxWindows' headers | |
15 | ||
16 | #include "wx/defs.h" | |
17 | ||
18 | #if wxUSE_MIMETYPE && wxUSE_LIBGNOMEVFS | |
19 | ||
20 | #include "wx/string.h" | |
21 | #include "wx/unix/mimetype.h" | |
22 | ||
23 | //---------------------------------------------------------------------------- | |
24 | // wxGnomeVFSMimeTypesManagerImpl | |
25 | //---------------------------------------------------------------------------- | |
26 | ||
27 | class wxGnomeVFSMimeTypesManagerImpl: public wxMimeTypesManagerImpl | |
28 | { | |
29 | public: | |
30 | wxGnomeVFSMimeTypesManagerImpl() { } | |
31 | ||
32 | virtual bool DoAssociation(const wxString& strType, | |
33 | const wxString& strIcon, | |
34 | wxMimeTypeCommands *entry, | |
35 | const wxArrayString& strExtensions, | |
36 | const wxString& strDesc); | |
37 | }; | |
38 | ||
39 | //---------------------------------------------------------------------------- | |
40 | // wxGnomeVFSMimeTypesManagerFactory | |
41 | //---------------------------------------------------------------------------- | |
42 | ||
43 | class wxGnomeVFSMimeTypesManagerFactory: public wxMimeTypesManagerFactory | |
44 | { | |
45 | public: | |
46 | wxGnomeVFSMimeTypesManagerFactory() {} | |
47 | ||
48 | virtual wxMimeTypesManagerImpl *CreateMimeTypesManagerImpl(); | |
49 | }; | |
50 | ||
51 | #endif | |
52 | // wxUSE_MIMETYPE | |
53 | ||
54 | #endif |