summaryrefslogtreecommitdiffstats
path: root/src/mimetypes/qmimetype_p.h
blob: 5252280a4145436530963c5e0c353b20253213a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef MIME_TYPE_P_H_INCLUDED
#define MIME_TYPE_P_H_INCLUDED

#include <QtCore/QList>
#include <QtCore/QString>

// ------------------------------------------------------------------------------------------------

struct QMimeTypePrivate
{
    QMimeTypePrivate(const QMimeTypeName &theName,
                     const QString &theDisplayName,
                     const QString &theIconUrl,
                     const QList<QString> &theFileExtentions) :
            m_Name(theName),
            m_DisplayName(theDisplayName),
            m_IconUrl(theIconUrl),
            m_FileExtentions(theFileExtentions)
    {}

    bool operator==(const QMimeTypePrivate &other) const
    {
        return m_Name == other.m_Name &&
               m_DisplayName == other.m_DisplayName &&
               m_IconUrl == other.m_IconUrl &&
               m_FileExtentions == other.m_FileExtentions;
    }

    QMimeTypeName m_Name;
    QString m_DisplayName;
    QString m_IconUrl;
    QList<QString> m_FileExtentions;
};

#endif