2006-03-17 09:08:58 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/gtk/gnome/gvfs.h
|
|
|
|
// Author: Robert Roebling
|
|
|
|
// Purpose: GNOME VFS support
|
|
|
|
// Created: 17/03/06
|
|
|
|
// Copyright: Robert Roebling
|
|
|
|
// Licence: wxWindows Licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2006-12-07 00:44:44 -05:00
|
|
|
#ifndef _WX_GTK_GVFS_H_
|
|
|
|
#define _WX_GTK_GVFS_H_
|
2006-03-17 09:08:58 -05:00
|
|
|
|
|
|
|
#include "wx/defs.h"
|
|
|
|
|
|
|
|
#if wxUSE_MIMETYPE && wxUSE_LIBGNOMEVFS
|
|
|
|
|
|
|
|
#include "wx/string.h"
|
|
|
|
#include "wx/unix/mimetype.h"
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
// wxGnomeVFSMimeTypesManagerImpl
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxGnomeVFSMimeTypesManagerImpl: public wxMimeTypesManagerImpl
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxGnomeVFSMimeTypesManagerImpl() { }
|
2006-12-07 00:44:44 -05:00
|
|
|
|
|
|
|
protected:
|
2006-03-17 09:08:58 -05:00
|
|
|
virtual bool DoAssociation(const wxString& strType,
|
|
|
|
const wxString& strIcon,
|
|
|
|
wxMimeTypeCommands *entry,
|
|
|
|
const wxArrayString& strExtensions,
|
|
|
|
const wxString& strDesc);
|
|
|
|
};
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
// wxGnomeVFSMimeTypesManagerFactory
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxGnomeVFSMimeTypesManagerFactory: public wxMimeTypesManagerFactory
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxGnomeVFSMimeTypesManagerFactory() {}
|
|
|
|
|
|
|
|
virtual wxMimeTypesManagerImpl *CreateMimeTypesManagerImpl();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2009-08-21 06:41:26 -04:00
|
|
|
// wxUSE_MIMETYPE
|
2006-03-17 09:08:58 -05:00
|
|
|
|
|
|
|
#endif
|