library: libGQt
#include "TQMimeTypes.h"

TQMimeTypes


class description - source file - inheritance tree (.pdf)

class TQMimeTypes : public TObject

Inheritance Chart:
TObject
<-
TQMimeTypes
    private:
TQMimeTypes(const TQMimeTypes&) void operator=(const TQMimeTypes&) const void operator=(const TQMimeTypes&) protected:
const QIconSet* AddType(const TSystemFile* filename) const TQMime* Find(const char* filename) const public:
TQMimeTypes(const char* iconPath, const char* file) virtual ~TQMimeTypes() void AddType(const char* type, const char* pat, const char* icon, const char* sicon, const char* action) static TClass* Class() Bool_t GetAction(const char* filename, char* action) const const QIconSet* GetIcon(const char* filename) const const QIconSet* GetIcon(const TSystemFile* filename) const Bool_t GetType(const char* filename, char* type) const Bool_t HasChanged() const virtual TClass* IsA() const virtual void Print(Option_t* option = "") const void SaveMimes() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
TString fIconPath the path to the icon directory TString fFilename file name of mime type file Bool_t fChanged true if file has changed TOrdCollection* fList list of mime types QFileIconProvider fDefaultProvider Default provider of the system icons;

Class Description

                                                                      
 TQMimeTypes and TQMime                                               
                                                                      
 This class handles mime types, used by browsers to map file types    
 to applications and icons. TQMime is internally used by TQMimeType.  
 This class does allow the Qt-base gui to get the same Mime types     
 as ROOT mime defines                                                 
                                                                      


TQMimeTypes(const char *iconPath, const char *filename)
 Create a mime type cache. Read the mime types file "filename" and
 built a list of mime types.

~TQMimeTypes()
 Delete mime type pool.

TQMime* Find(const char *filename) const
 Given a filename find the matching mime type object.

const QIconSet* GetIcon(const char *filename) const
 Return icon belonging to mime type of filename.

const QIconSet* GetIcon(const TSystemFile *filename)
 Return icon belonging to mime type of TSystemFile extension

const QIconSet* AddType(const TSystemFile *filename)

Bool_t GetAction(const char *filename, char *action) const
 Return in action the mime action string belonging to filename.

Bool_t GetType(const char *filename, char *type) const
 Return in type the mime type belonging to filename.

void Print(Option_t *) const
 Print list of mime types.

void SaveMimes()
 Save mime types in user's mime type file.

void AddType(const char *type, const char *pattern, const char *icon, const char * /*sicon*/, const char *action)
 Add a mime type to the list of mime types.



Inline Functions


               void operator=(const TQMimeTypes&) const
               void operator=(const TQMimeTypes&)
        TQMimeTypes TQMimeTypes(const char* iconPath, const char* file)
             Bool_t HasChanged() const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)


Author: Valeri Fine 21/01/2003
Last update: root/qt:$Name: $:$Id: TQMimeTypes.cxx,v 1.3 2005/03/01 07:24:01 brun Exp $
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *


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.