summaryrefslogtreecommitdiff
path: root/library/mimetype.cpp
Unidiff
Diffstat (limited to 'library/mimetype.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--library/mimetype.cpp64
1 files changed, 64 insertions, 0 deletions
diff --git a/library/mimetype.cpp b/library/mimetype.cpp
index ef5d619..d0a578e 100644
--- a/library/mimetype.cpp
+++ b/library/mimetype.cpp
@@ -132,2 +132,20 @@ MimeType::Private& MimeType::data()
132 132
133/*!
134 \class MimeType mimetype.h
135 \brief The MimeType class provides MIME type information.
136
137 A MimeType object is a light-weight value which
138 provides information about a MIME type.
139
140 \ingroup qtopiaemb
141*/
142
143/*!
144 Constructs a MimeType.
145 Normally, \a ext_or_id is a MIME type,
146 but if \a ext_or_id starts with / or contains no /,
147 it is interpretted as a filename and the
148 extension (eg. .txt) is used as the
149 MIME type.
150*/
133MimeType::MimeType( const QString& ext_or_id ) 151MimeType::MimeType( const QString& ext_or_id )
@@ -137,2 +155,5 @@ MimeType::MimeType( const QString& ext_or_id )
137 155
156/*!
157 Constructs a MimeType from the type() of \a lnk.
158*/
138MimeType::MimeType( const DocLnk& lnk ) 159MimeType::MimeType( const DocLnk& lnk )
@@ -142,2 +163,5 @@ MimeType::MimeType( const DocLnk& lnk )
142 163
164/*!
165 Returns the MIME type identifier.
166*/
143QString MimeType::id() const 167QString MimeType::id() const
@@ -147,2 +171,6 @@ QString MimeType::id() const
147 171
172/*!
173 Returns a description of the MIME Type. This is usually based
174 on the application() associated with the type.
175*/
148QString MimeType::description() const 176QString MimeType::description() const
@@ -153,2 +181,5 @@ QString MimeType::description() const
153 181
182/*!
183 Returns a small QPixmap appropriate for the MIME type.
184*/
154QPixmap MimeType::pixmap() const 185QPixmap MimeType::pixmap() const
@@ -159,2 +190,6 @@ QPixmap MimeType::pixmap() const
159 190
191/*!
192 \internal
193 This function is not generally available.
194*/
160QString MimeType::extension() const 195QString MimeType::extension() const
@@ -164,2 +199,7 @@ QString MimeType::extension() const
164 199
200
201/*!
202 \internal
203 This function is not generally available.
204*/
165QStringList MimeType::extensions() const 205QStringList MimeType::extensions() const
@@ -170,2 +210,5 @@ QStringList MimeType::extensions() const
170 210
211/*!
212 Returns a larger QPixmap appropriate for the MIME type.
213*/
171QPixmap MimeType::bigPixmap() const 214QPixmap MimeType::bigPixmap() const
@@ -176,2 +219,11 @@ QPixmap MimeType::bigPixmap() const
176 219
220/*!
221 Returns the AppLnk defining the application associated
222 with this MIME type, or 0 if none is associated.
223
224 The caller must not retain the pointer,
225 but of course you can dereference it to take a copy if needed.
226
227 \sa Service::binding()
228*/
177const AppLnk* MimeType::application() const 229const AppLnk* MimeType::application() const
@@ -191,2 +243,5 @@ static QString serviceBinding(const QString& service)
191 243
244/*!
245 \internal
246*/
192void MimeType::registerApp( const AppLnk& lnk ) 247void MimeType::registerApp( const AppLnk& lnk )
@@ -215,2 +270,5 @@ void MimeType::registerApp( const AppLnk& lnk )
215 270
271/*!
272 \internal
273*/
216void MimeType::clear() 274void MimeType::clear()
@@ -288,2 +346,5 @@ MimeTypeData* MimeType::data(const QString& id)
288 346
347/*!
348 Returns a Qtopia folder containing application definitions.
349*/
289QString MimeType::appsFolderName() 350QString MimeType::appsFolderName()
@@ -293,2 +354,5 @@ QString MimeType::appsFolderName()
293 354
355/*!
356 Reloads application definitions.
357*/
294void MimeType::updateApplications() 358void MimeType::updateApplications()