#ifndef ROOT_TQMimeTypes
#define ROOT_TQMimeTypes
#include "TObject.h"
#include "TString.h"
#ifndef __CINT__
# include "qglobal.h"
# if QT_VERSION < 0x40000
# include <qfiledialog.h>
# else /* QT_VERSION */
# include <q3filedialog.h>
# endif /* QT_VERSION */
#else
class QFileIconProvider;
class Q3FileIconProvider;
#endif
class TOrdCollection;
class TRegexp;
#if (QT_VERSION > 0x39999)
class QIcon;
#else /* QT_VERSION */
class QIconSet;
#endif /* QT_VERSION */
class TSystemFile;
class TQMime : public TObject {
friend class TQMimeTypes;
private:
TString fType;
TString fPattern;
TString fAction;
#if (QT_VERSION > 0x39999)
QIcon *fIcon;
#else /* QT_VERSION */
QIconSet *fIcon;
#endif /* QT_VERSION */
TRegexp *fReg;
public:
~TQMime();
};
class TQMimeTypes : public TObject {
private:
#if !defined(_MSC_VER) || _MSC_VER >= 1310
void operator=(const TQMimeTypes&) const {}
#endif
void operator=(const TQMimeTypes&) {}
TQMimeTypes(const TQMimeTypes&) : TObject() {}
protected:
TString fIconPath;
TString fFilename;
Bool_t fChanged;
TOrdCollection *fList;
#if (QT_VERSION > 0x39999)
Q3FileIconProvider fDefaultProvider;
#else /* QT_VERSION */
QFileIconProvider fDefaultProvider;
#endif /* QT_VERSION */
TQMime *Find(const char *filename) const;
#if (QT_VERSION > 0x39999)
const QIcon *AddType(const TSystemFile *filename);
#else /* QT_VERSION */
const QIconSet *AddType(const TSystemFile *filename);
#endif /* QT_VERSION */
public:
TQMimeTypes(const char *iconPath, const char *file);
virtual ~TQMimeTypes();
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) const;
Bool_t GetType(const char *filename, char *type) const;
#if (QT_VERSION > 0x39999)
const QIcon *GetIcon(const char *filename) const;
const QIcon *GetIcon(const TSystemFile *filename);
#else /* QT_VERSION */
const QIconSet *GetIcon(const char *filename) const;
const QIconSet *GetIcon(const TSystemFile *filename);
#endif /* QT_VERSION */
#ifndef Q_MOC_RUN
ClassDef(TQMimeTypes,0)
#endif
};
#endif
ROOT page - Class index - Class Hierarchy - Top of the page
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.