library: libGui
#include "TGMimeTypes.h"

TGMimeTypes


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

class TGMimeTypes : public TObject

Inheritance Chart:
TObject
<-
TGMimeTypes

    protected:
TGMime* Find(const char* filename) public:
TGMimeTypes(TGClient* client, const char* file) TGMimeTypes(const TGMimeTypes&) virtual ~TGMimeTypes() 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 TGPicture* GetIcon(const char* filename, Bool_t small_icon) const Bool_t GetType(const char* filename, char* type) Bool_t HasChanged() const virtual TClass* IsA() const TGMimeTypes& operator=(const TGMimeTypes&) 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:
TGClient* fClient client to which mime types belong (display server) TString fFilename file name of mime type file Bool_t fChanged true if file has changed TOrdCollection* fList list of mime types

Class Description

                                                                      
 TGMimeTypes and TGMime                                               
                                                                      
 This class handles mime types, used by browsers to map file types    
 to applications and icons. TGMime is internally used by TGMimeType.  
                                                                      


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

~TGMimeTypes()
 Delete mime type pool.

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

const TGPicture* GetIcon(const char *filename, Bool_t small_icon)
 Return icon belonging to mime type of filename.

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

Bool_t GetType(const char *filename, char *type)
 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


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


Author: Fons Rademakers 18/01/98
Last update: root/gui:$Name: $:$Id: TGMimeTypes.cxx,v 1.5 2005/05/24 20:05:10 brun Exp $
Copyright (C) 1995-2000, 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.