author | kergoth <kergoth> | 2002-06-07 18:53:14 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-06-07 18:53:14 (UTC) |
commit | 640d964cfdc7467f6cacb513087cd3acda2c04f0 (patch) (unidiff) | |
tree | 9a784686c1795f8b1f81eb344598f3b549d43467 /library/mimetype.h | |
parent | dfb9c76738bb68e235114c5ad43dbd26a59b98ab (diff) | |
download | opie-640d964cfdc7467f6cacb513087cd3acda2c04f0.zip opie-640d964cfdc7467f6cacb513087cd3acda2c04f0.tar.gz opie-640d964cfdc7467f6cacb513087cd3acda2c04f0.tar.bz2 |
Backing out unintentional merge from TT branch.
-rw-r--r-- | library/mimetype.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/library/mimetype.h b/library/mimetype.h index 58725d7..b6cca95 100644 --- a/library/mimetype.h +++ b/library/mimetype.h | |||
@@ -19,46 +19,51 @@ | |||
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #ifndef MIMETYPE_H | 20 | #ifndef MIMETYPE_H |
21 | #define MIMETYPE_H | 21 | #define MIMETYPE_H |
22 | 22 | ||
23 | #include <qstring.h> | 23 | #include <qstring.h> |
24 | #include <qpixmap.h> | 24 | #include <qpixmap.h> |
25 | 25 | ||
26 | class AppLnk; | 26 | class AppLnk; |
27 | class DocLnk; | 27 | class DocLnk; |
28 | class QStringList; | 28 | class QStringList; |
29 | class MimeTypeData; | 29 | class MimeTypeData; |
30 | class AppLnkSet; | 30 | class AppLnkSet; |
31 | 31 | ||
32 | class MimeType | 32 | class MimeType |
33 | { | 33 | { |
34 | public: | 34 | public: |
35 | MimeType( const QString& ext_or_id ); | 35 | MimeType( const QString& ext_or_id ); |
36 | MimeType( const DocLnk& ); | 36 | MimeType( const DocLnk& ); |
37 | 37 | ||
38 | QString id() const; | 38 | QString id() const; |
39 | QString description() const; | 39 | QString description() const; |
40 | QPixmap pixmap() const; | 40 | QPixmap pixmap() const; |
41 | QPixmap bigPixmap() const; | 41 | QPixmap bigPixmap() const; |
42 | 42 | ||
43 | // DON'T define this yourself! | ||
44 | #ifdef QTOPIA_INTERNAL_MIMEEXT | ||
45 | QString extension() const; | ||
46 | #endif | ||
47 | |||
43 | const AppLnk* application() const; | 48 | const AppLnk* application() const; |
44 | 49 | ||
45 | static QString appsFolderName(); | 50 | static QString appsFolderName(); |
46 | static void updateApplications(); | 51 | static void updateApplications(); |
47 | 52 | ||
48 | // These shouldn't be needed | 53 | // These shouldn't be needed |
49 | static void clear(); | 54 | static void clear(); |
50 | static void registerApp( const AppLnk& ); | 55 | static void registerApp( const AppLnk& ); |
51 | 56 | ||
52 | private: | 57 | private: |
53 | static void updateApplications(AppLnkSet* folder); | 58 | static void updateApplications(AppLnkSet* folder); |
54 | static void loadExtensions(); | 59 | static void loadExtensions(); |
55 | static void loadExtensions(const QString&); | 60 | static void loadExtensions(const QString&); |
56 | void init( const QString& ext_or_id ); | 61 | void init( const QString& ext_or_id ); |
57 | class Dict; | 62 | class Dict; |
58 | static Dict* d; | 63 | static Dict* d; |
59 | static Dict& dict(); | 64 | static Dict& dict(); |
60 | static MimeTypeData* data(const QString& id); | 65 | static MimeTypeData* data(const QString& id); |
61 | QString i; | 66 | QString i; |
62 | }; | 67 | }; |
63 | 68 | ||
64 | #endif | 69 | #endif |