31#ifndef ACCOUNTS_SERVICE_H
32#define ACCOUNTS_SERVICE_H
34#include "Accounts/accountscommon.h"
38#include <QDomDocument>
43 typedef struct _AgService AgService;
65 bool hasTag(
const QString &tag)
const;
66 QSet<QString>
tags()
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;
89typedef QList<Service> ServiceList;
Account settings for a specific service.
Information on the client applications of libaccounts.
Manager of accounts, services and providers.
Representation of an account service.
QSet< QString > tags() const
Return all tags of the service as a set.
Service()
Construct an invalid service.
QString serviceType() const
Get the service type ID of the service.
bool isValid() const
Check whether this object represents a Service.
QString name() const
Get the name of the service.
QString iconName() const
Get the icon name for this service.
QString displayName() const
Get the display name of the service, untranslated.
QString description() const
Get the description of the service.
QString provider() const
Get the provider ID of the service.
bool hasTag(const QString &tag) const
Check if this service has a tag.
QString trCatalog() const
const QDomDocument domDocument() const
Get the contents of the service XML file.