MimeType Class Reference
The MimeType class provides MIME type information. More...
#include <mimetype.h>
Collaboration diagram for MimeType:

Public Member Functions | |
| MimeType (const QString &ext_or_id) | |
| MimeType (const DocLnk &) | |
| QString | id () const |
| QString | description () const |
| QPixmap | pixmap () const |
| QPixmap | bigPixmap () const |
| const AppLnk * | application () const |
Static Public Member Functions | |
| QString | appsFolderName () |
| void | updateApplications () |
| void | clear () |
| void | registerApp (const AppLnk &) |
Detailed Description
The MimeType class provides MIME type information.A MimeType object is a light-weight value which provides information about a MIME type.
Definition at line 33 of file mimetype.h.
Constructor & Destructor Documentation
|
|
Constructs a MimeType. Normally, ext_or_id is a MIME type, but if ext_or_id starts with / or contains no /, it is interpretted as a filename and the extension (eg. .txt) is used as the MIME type. Definition at line 151 of file mimetype.cpp. |
|
|
Constructs a MimeType from the type() of lnk. Definition at line 159 of file mimetype.cpp. References AppLnk::type(). |
Member Function Documentation
|
|
Returns the MIME type identifier. Definition at line 167 of file mimetype.cpp. Referenced by AppLnk::type(). |
|
|
Returns a description of the MIME Type. This is usually based on the application() associated with the type. Definition at line 176 of file mimetype.cpp. |
|
|
Returns a small QPixmap appropriate for the MIME type. Definition at line 185 of file mimetype.cpp. |
|
|
Returns a larger QPixmap appropriate for the MIME type. Definition at line 214 of file mimetype.cpp. |
|
|
Returns the AppLnk defining the application associated with this MIME type, or 0 if none is associated. The caller must not retain the pointer, but of course you can dereference it to take a copy if needed.
Definition at line 229 of file mimetype.cpp. Referenced by DocLnk::exec(), and DocLnk::invoke(). |
|
|
Returns a Qtopia folder containing application definitions. Definition at line 350 of file mimetype.cpp. References QPEApplication::qpeDir(). Referenced by updateApplications(). |
|
|
Reloads application definitions. Definition at line 358 of file mimetype.cpp. References appsFolderName(). |
The documentation for this class was generated from the following files:
