#ifndef ROOT_TGMimeTypes
#define ROOT_TGMimeTypes
#ifndef ROOT_TGClient
#include "TGClient.h"
#endif
#ifndef ROOT_TGPicture
#include "TGPicture.h"
#endif
class TOrdCollection;
class TRegexp;
class TGMime : public TObject {
friend class TGMimeTypes;
private:
TString fType;
TString fPattern;
TString fAction;
TString fIcon;
TString fSIcon;
TRegexp *fReg;
public:
~TGMime();
};
class TGMimeTypes : public TObject {
protected:
TGClient *fClient;
TString fFilename;
Bool_t fChanged;
TOrdCollection *fList;
TGMimeTypes(const TGMimeTypes& gmt);
TGMimeTypes& operator=(const TGMimeTypes& gmt);
TGMime *Find(const char *filename);
public:
TGMimeTypes(TGClient *client, const char *file);
virtual ~TGMimeTypes();
void SaveMimes();
Bool_t HasChanged() const { return fChanged; }
void AddType(const char *type, const char *pat, const char *icon, const char *sicon, const char *action);
void Print(Option_t *option="") const;
Bool_t GetAction(const char *filename, char *action);
Bool_t GetType(const char *filename, char *type);
const TGPicture *GetIcon(const char *filename, Bool_t small_icon);
ClassDef(TGMimeTypes,0)
};
#endif
Last change: Wed Dec 10 08:21:35 2008
Last generated: 2008-12-10 08:21
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.