mimetype.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef MIMETYPE_H
00021 #define MIMETYPE_H
00022
00023 #include <qstringlist.h>
00024 #include <qpixmap.h>
00025 #include <qlist.h>
00026
00027 class AppLnk;
00028 class DocLnk;
00029 class QStringList;
00030 class MimeTypeData;
00031 class AppLnkSet;
00032
00033 class MimeType
00034 {
00035 public:
00036 MimeType( const QString& ext_or_id );
00037 MimeType( const DocLnk& );
00038
00039 QString id() const;
00040 QString description() const;
00041 QPixmap pixmap() const;
00042 QPixmap bigPixmap() const;
00043
00044
00045 #ifdef QTOPIA_INTERNAL_MIMEEXT
00046 QString extension() const;
00047 QStringList extensions() const;
00048 QList<AppLnk> applications() const;
00049 #endif
00050
00051 const AppLnk* application() const;
00052
00053 static QString appsFolderName();
00054 static void updateApplications();
00055
00056
00057 static void clear();
00058 static void registerApp( const AppLnk& );
00059
00060 private:
00061 static void updateApplications(AppLnkSet* folder);
00062 static void loadExtensions();
00063 static void loadExtensions(const QString&);
00064 void init( const QString& ext_or_id );
00065 class Private;
00066 static Private* d;
00067 static Private& data();
00068 static MimeTypeData* data(const QString& id);
00069 QString i;
00070 };
00071
00072 #endif
This file is part of the documentation for OPIE Version 1.5.5.