accounts-qt 1.17
|
Representation of an account provider. More...
#include <Accounts/Provider>
Public Member Functions | |
Provider () | |
Construct an invalid provider. | |
Provider (const Provider &other) | |
Copy constructor. | |
Provider & | operator= (const Provider &other) |
bool | isValid () const |
Check whether this object represents a Provider. | |
QString | name () const |
Get the name of the provider. | |
QString | displayName () const |
Get the display name of the provider, untranslated. | |
QString | description () const |
Get the description of the provider, untranslated. | |
QString | pluginName () const |
Get the name of the account plugin associated with the provider. | |
QString | trCatalog () const |
QString | iconName () const |
QString | domainsRegExp () const |
bool | isSingleAccount () const |
bool | hasTag (const QString &tag) const |
Check if this provider has a tag. | |
QSet< QString > | tags () const |
Return all tags of the provider as a set. | |
const QDomDocument | domDocument () const |
Friends | |
bool | operator== (const Accounts::Provider &p1, const Accounts::Provider &p2) |
Representation of an account provider.
The Provider object represents an account provider. It can be used to retrieve some basic properties of the provider (such as the name) and to get access to the contents of the XML file which defines it.
Definition at line 48 of file provider.h.
Provider | ( | ) |
Construct an invalid provider.
Definition at line 57 of file provider.cpp.
Copy constructor.
Copying a Provider object is very cheap, because the data is shared among copies.
Definition at line 67 of file provider.cpp.
~Provider | ( | ) |
Definition at line 86 of file provider.cpp.
QString description | ( | ) | const |
Get the description of the provider, untranslated.
Definition at line 131 of file provider.cpp.
QString displayName | ( | ) | const |
Get the display name of the provider, untranslated.
Definition at line 122 of file provider.cpp.
QString domainsRegExp | ( | ) | const |
Definition at line 168 of file provider.cpp.
const QDomDocument domDocument | ( | ) | const |
Definition at line 222 of file provider.cpp.
bool hasTag | ( | const QString & | tag | ) | const |
Check if this provider has a tag.
tag | Tag to look for |
Definition at line 188 of file provider.cpp.
References Provider::tags().
QString iconName | ( | ) | const |
Definition at line 159 of file provider.cpp.
bool isSingleAccount | ( | ) | const |
Definition at line 176 of file provider.cpp.
bool isValid | ( | ) | const |
Check whether this object represents a Provider.
Definition at line 102 of file provider.cpp.
Referenced by Provider::name().
QString name | ( | ) | const |
Get the name of the provider.
This can be used as a unique identifier for this provider.
Definition at line 112 of file provider.cpp.
References Provider::isValid().
Definition at line 75 of file provider.cpp.
QString pluginName | ( | ) | const |
Get the name of the account plugin associated with the provider.
Some platforms might find it useful to store plugin names in the provider XML files, especially when the same plugin can work for different providers.
Definition at line 142 of file provider.cpp.
QSet< QString > tags | ( | ) | const |
Return all tags of the provider as a set.
Definition at line 203 of file provider.cpp.
Referenced by Provider::hasTag().
QString trCatalog | ( | ) | const |
Definition at line 151 of file provider.cpp.
|
friend |
Definition at line 70 of file provider.h.