KMimeTypeValidator Class Reference
This validator allows you to validate mimetype names (e.g. A QValidator for mime types. More...
#include <kstringvalidator.h>
Inheritance diagram for KMimeTypeValidator:

Public Member Functions | |
KMimeTypeValidator (QObject *parent, const char *name=0) | |
virtual State | validate (QString &input, int &pos) const |
virtual void | fixup (QString &input) const |
Detailed Description
This validator allows you to validate mimetype names (e.g. A QValidator for mime types.text/plain, image/jpeg). Note that the validation is only syntactically. It will e.g. not reject "foo/bar", although that particular mime type isn't yet registered. It suffices for the name to adhere to the production
mime-type := token "/" token ; 'token' is defined in rfc2045
The fixup will simply remove all non-token characters.
- Author:
- Marc Mutz <mutz@kde.org>
Definition at line 115 of file kstringvalidator.h.
Member Function Documentation
|
Checks for well-formed mimetype. Returns
Definition at line 66 of file kstringvalidator.cpp. |
|
Removes all characters that are forbidden in mimetypes.
Definition at line 84 of file kstringvalidator.cpp. |
The documentation for this class was generated from the following files: