summaryrefslogtreecommitdiff
path: root/library/mimetype.h
Unidiff
Diffstat (limited to 'library/mimetype.h') (more/less context) (show whitespace changes)
-rw-r--r--library/mimetype.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/library/mimetype.h b/library/mimetype.h
index b6cca95..94bfe4e 100644
--- a/library/mimetype.h
+++ b/library/mimetype.h
@@ -1,10 +1,10 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of Qtopia Environment. 4** This file is part of the Qtopia Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
@@ -17,14 +17,15 @@
17** not clear to you. 17** not clear to you.
18** 18**
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 <qstringlist.h>
24#include <qpixmap.h> 24#include <qpixmap.h>
25#include <qlist.h>
25 26
26class AppLnk; 27class AppLnk;
27class DocLnk; 28class DocLnk;
28class QStringList; 29class QStringList;
29class MimeTypeData; 30class MimeTypeData;
30class AppLnkSet; 31class AppLnkSet;
@@ -40,12 +41,14 @@ public:
40 QPixmap pixmap() const; 41 QPixmap pixmap() const;
41 QPixmap bigPixmap() const; 42 QPixmap bigPixmap() const;
42 43
43// DON'T define this yourself! 44// DON'T define this yourself!
44#ifdef QTOPIA_INTERNAL_MIMEEXT 45#ifdef QTOPIA_INTERNAL_MIMEEXT
45 QString extension() const; 46 QString extension() const;
47 QStringList extensions() const;
48 QList<AppLnk> applications() const;
46#endif 49#endif
47 50
48 const AppLnk* application() const; 51 const AppLnk* application() const;
49 52
50 static QString appsFolderName(); 53 static QString appsFolderName();
51 static void updateApplications(); 54 static void updateApplications();
@@ -56,14 +59,14 @@ public:
56 59
57private: 60private:
58 static void updateApplications(AppLnkSet* folder); 61 static void updateApplications(AppLnkSet* folder);
59 static void loadExtensions(); 62 static void loadExtensions();
60 static void loadExtensions(const QString&); 63 static void loadExtensions(const QString&);
61 void init( const QString& ext_or_id ); 64 void init( const QString& ext_or_id );
62 class Dict; 65 class Private;
63 static Dict* d; 66 static Private* d;
64 static Dict& dict(); 67 static Private& data();
65 static MimeTypeData* data(const QString& id); 68 static MimeTypeData* data(const QString& id);
66 QString i; 69 QString i;
67}; 70};
68 71
69#endif 72#endif