31#ifndef ACCOUNTS_SERVICE_TYPE_H
32#define ACCOUNTS_SERVICE_TYPE_H
34#include "Accounts/accountscommon.h"
39#include <QDomDocument>
43 typedef struct _AgServiceType AgServiceType;
64 bool hasTag(
const QString &tag)
const;
65 QSet<QString>
tags()
const;
71 return s1.m_serviceType == s2.m_serviceType || s1.
name() == s2.
name();
77 ServiceType(AgServiceType *serviceType, ReferenceMode mode = AddReference);
78 AgServiceType *m_serviceType;
79 mutable QSet<QString> *m_tags;
Manager of accounts, services and providers.
Representation of an account service type.
QSet< QString > tags() const
Return all tags of the service type as a set.
ServiceType()
Construct an invalid serviceType.
bool isValid() const
Check whether this object represents a ServiceType.
QString name() const
Returns the name (ID) of the service type.
QString displayName() const
QString description() const
bool hasTag(const QString &tag) const
Check if this service type has a tag.
QString trCatalog() const
const QDomDocument domDocument() const