accounts-qt
1.2
|
Representation of an account service. More...
#include <Accounts/Service>
Public Member Functions | |
Service () | |
Construct an invalid service. | |
Service (const Service &other) | |
Copy constructor. | |
Service & | operator= (const Service &other) |
bool | isValid () const |
Check whether this object represents a Service. | |
QString | name () const |
Get the name of the service. | |
QString | displayName () const |
Get the display name of the service, untranslated. | |
QString | trCatalog () const |
QString | serviceType () const |
Get the service type ID of the service. | |
QString | provider () const |
Get the provider ID of the service. | |
QString | iconName () const |
Get the icon name for this service. | |
bool | hasTag (const QString &tag) const |
Check if this service has a tag. | |
QSet< QString > | tags () const |
Return all tags of the service as a set. | |
const QDomDocument | domDocument () const |
Get the contents of the service XML file. |
Friends | |
bool | operator== (const Accounts::Service &s1, const Accounts::Service &s2) |
Representation of an account service.
The Service object represents an account service. It can be used to retrieve some basic properties of the service (such as name, type and provider) and to get access to the contents of the XML file which defines it.
Copy constructor.
Copying a Service object is very cheap, because the data is shared among copies.
Definition at line 69 of file service.cpp.
QString displayName | ( | ) | const |
Get the display name of the service, untranslated.
Definition at line 125 of file service.cpp.
const QDomDocument domDocument | ( | ) | const |
Get the contents of the service XML file.
Definition at line 202 of file service.cpp.
bool hasTag | ( | const QString & | tag | ) | const |
Check if this service has a tag.
tag | Tag to look for |
Definition at line 172 of file service.cpp.
QString iconName | ( | ) | const |
Get the icon name for this service.
Definition at line 160 of file service.cpp.
bool isValid | ( | ) | const |
Check whether this object represents a Service.
Definition at line 106 of file service.cpp.
Referenced by Account::credentialsId(), and Account::selectService().
QString name | ( | ) | const |
Get the name of the service.
This can be used as a unique identifier for this service.
Definition at line 116 of file service.cpp.
QString provider | ( | ) | const |
Get the provider ID of the service.
Definition at line 151 of file service.cpp.
QString serviceType | ( | ) | const |
Get the service type ID of the service.
Definition at line 134 of file service.cpp.
QSet< QString > tags | ( | ) | const |
Return all tags of the service as a set.
Definition at line 182 of file service.cpp.
QString trCatalog | ( | ) | const |
Definition at line 142 of file service.cpp.