31 #ifndef ACCOUNTS_SERVICE_H
32 #define ACCOUNTS_SERVICE_H
34 #include "Accounts/accountscommon.h"
38 #include <QDomDocument>
39 #include <QStringList>
43 typedef struct _AgService AgService;
59 QString description()
const;
60 QString displayName()
const;
61 QString trCatalog()
const;
62 QString serviceType()
const;
63 QString provider()
const;
64 QString iconName()
const;
65 bool hasTag(
const QString &tag)
const;
66 QSet<QString> tags()
const;
68 const QDomDocument domDocument()
const;
72 return s1.m_service == s2.m_service || s1.
name() == s2.
name();
79 friend class AccountServicePrivate;
82 Service(AgService *service, ReferenceMode mode = AddReference);
83 AgService *service()
const;
85 mutable QSet<QString> *m_tags;
89 typedef QList<Service> ServiceList;
93 #endif // ACCOUNTS_SERVICE_H