diff options
Diffstat (limited to 'src/mimeparser.cpp')
| -rw-r--r-- | src/mimeparser.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mimeparser.cpp b/src/mimeparser.cpp index b5f5fc3..e76f372 100644 --- a/src/mimeparser.cpp +++ b/src/mimeparser.cpp @@ -2,6 +2,11 @@ +bool MimeType::is(const QString &type) const +{ + return (this->type == type); +} + bool MimeType::is(const QString &type, const QString &sub_type) const { return (this->type == type) and (this->subtype == sub_type); |
