]>
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 | |
1d115baf RR |
6 | // Copyright: Robert Roebling |
7 | // Licence: wxWindows Licence | |
8 | ///////////////////////////////////////////////////////////////////////////// | |
9 | ||
3498362e PC |
10 | #ifndef _WX_GTK_GVFS_H_ |
11 | #define _WX_GTK_GVFS_H_ | |
1d115baf RR |
12 | |
13 | #include "wx/defs.h" | |
14 | ||
15 | #if wxUSE_MIMETYPE && wxUSE_LIBGNOMEVFS | |
16 | ||
17 | #include "wx/string.h" | |
18 | #include "wx/unix/mimetype.h" | |
19 | ||
20 | //---------------------------------------------------------------------------- | |
21 | // wxGnomeVFSMimeTypesManagerImpl | |
22 | //---------------------------------------------------------------------------- | |
23 | ||
24 | class wxGnomeVFSMimeTypesManagerImpl: public wxMimeTypesManagerImpl | |
25 | { | |
26 | public: | |
27 | wxGnomeVFSMimeTypesManagerImpl() { } | |
3498362e PC |
28 | |
29 | protected: | |
1d115baf RR |
30 | virtual bool DoAssociation(const wxString& strType, |
31 | const wxString& strIcon, | |
32 | wxMimeTypeCommands *entry, | |
33 | const wxArrayString& strExtensions, | |
34 | const wxString& strDesc); | |
35 | }; | |
36 | ||
37 | //---------------------------------------------------------------------------- | |
38 | // wxGnomeVFSMimeTypesManagerFactory | |
39 | //---------------------------------------------------------------------------- | |
40 | ||
41 | class wxGnomeVFSMimeTypesManagerFactory: public wxMimeTypesManagerFactory | |
42 | { | |
43 | public: | |
44 | wxGnomeVFSMimeTypesManagerFactory() {} | |
45 | ||
46 | virtual wxMimeTypesManagerImpl *CreateMimeTypesManagerImpl(); | |
47 | }; | |
48 | ||
49 | #endif | |
03647350 | 50 | // wxUSE_MIMETYPE |
1d115baf RR |
51 | |
52 | #endif |