-rw-r--r-- | library/mimetype.cpp | 64 |
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 | */ | ||
133 | MimeType::MimeType( const QString& ext_or_id ) | 151 | MimeType::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 | */ | ||
138 | MimeType::MimeType( const DocLnk& lnk ) | 159 | MimeType::MimeType( const DocLnk& lnk ) |
@@ -142,2 +163,5 @@ MimeType::MimeType( const DocLnk& lnk ) | |||
142 | 163 | ||
164 | /*! | ||
165 | Returns the MIME type identifier. | ||
166 | */ | ||
143 | QString MimeType::id() const | 167 | QString 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 | */ | ||
148 | QString MimeType::description() const | 176 | QString 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 | */ | ||
154 | QPixmap MimeType::pixmap() const | 185 | QPixmap MimeType::pixmap() const |
@@ -159,2 +190,6 @@ QPixmap MimeType::pixmap() const | |||
159 | 190 | ||
191 | /*! | ||
192 | \internal | ||
193 | This function is not generally available. | ||
194 | */ | ||
160 | QString MimeType::extension() const | 195 | QString 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 | */ | ||
165 | QStringList MimeType::extensions() const | 205 | QStringList 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 | */ | ||
171 | QPixmap MimeType::bigPixmap() const | 214 | QPixmap 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 | */ | ||
177 | const AppLnk* MimeType::application() const | 229 | const AppLnk* MimeType::application() const |
@@ -191,2 +243,5 @@ static QString serviceBinding(const QString& service) | |||
191 | 243 | ||
244 | /*! | ||
245 | \internal | ||
246 | */ | ||
192 | void MimeType::registerApp( const AppLnk& lnk ) | 247 | void MimeType::registerApp( const AppLnk& lnk ) |
@@ -215,2 +270,5 @@ void MimeType::registerApp( const AppLnk& lnk ) | |||
215 | 270 | ||
271 | /*! | ||
272 | \internal | ||
273 | */ | ||
216 | void MimeType::clear() | 274 | void MimeType::clear() |
@@ -288,2 +346,5 @@ MimeTypeData* MimeType::data(const QString& id) | |||
288 | 346 | ||
347 | /*! | ||
348 | Returns a Qtopia folder containing application definitions. | ||
349 | */ | ||
289 | QString MimeType::appsFolderName() | 350 | QString MimeType::appsFolderName() |
@@ -293,2 +354,5 @@ QString MimeType::appsFolderName() | |||
293 | 354 | ||
355 | /*! | ||
356 | Reloads application definitions. | ||
357 | */ | ||
294 | void MimeType::updateApplications() | 358 | void MimeType::updateApplications() |