accounts-qt
1.14
|
Representation of an account service type. More...
#include <Accounts/ServiceType>
Public Member Functions | |
ServiceType () | |
Construct an invalid serviceType. | |
ServiceType (const ServiceType &other) | |
Copy constructor. More... | |
ServiceType & | operator= (const ServiceType &other) |
bool | isValid () const |
Check whether this object represents a ServiceType. More... | |
QString | name () const |
Returns the name (ID) of the service type. | |
QString | displayName () const |
QString | trCatalog () const |
QString | iconName () const |
bool | hasTag (const QString &tag) const |
Check if this service type has a tag. More... | |
QSet< QString > | tags () const |
Return all tags of the service type as a set. More... | |
const QDomDocument | domDocument () const |
Friends | |
bool | operator== (const Accounts::ServiceType &s1, const Accounts::ServiceType &s2) |
Representation of an account service type.
The ServiceType object represents an account service type. It can be used to retrieve some basic properties of the service type (such as name and icon) and to get access to the contents of the XML file which defines it.
Definition at line 49 of file service-type.h.
ServiceType | ( | const ServiceType & | other | ) |
Copy constructor.
Copying a ServiceType object is very cheap, because the data is shared among copies.
Definition at line 73 of file service-type.cpp.
QString displayName | ( | ) | const |
The library attempts to translate this string by passing it to the qtTrId() function; in order for this to work you must make sure that the translation catalogue has been loaded before, if needed.
Definition at line 130 of file service-type.cpp.
const QDomDocument domDocument | ( | ) | const |
Definition at line 196 of file service-type.cpp.
bool hasTag | ( | const QString & | tag | ) | const |
Check if this service type has a tag.
tag | Tag to look for |
Definition at line 167 of file service-type.cpp.
QString iconName | ( | ) | const |
Definition at line 155 of file service-type.cpp.
bool isValid | ( | ) | const |
Check whether this object represents a ServiceType.
Definition at line 108 of file service-type.cpp.
Referenced by ServiceType::name().
QSet< QString > tags | ( | ) | const |
Return all tags of the service type as a set.
Definition at line 177 of file service-type.cpp.
QString trCatalog | ( | ) | const |
Definition at line 147 of file service-type.cpp.