accounts-qt
1.16
|
Representation of an account provider. More...
#include <Accounts/Provider>
Public Member Functions | |
Provider () | |
Construct an invalid provider. | |
Provider (const Provider &other) | |
Copy constructor. More... | |
Provider & | operator= (const Provider &other) |
bool | isValid () const |
Check whether this object represents a Provider. More... | |
QString | name () const |
Get the name of the provider. More... | |
QString | displayName () const |
Get the display name of the provider, untranslated. More... | |
QString | description () const |
Get the description of the provider, untranslated. More... | |
QString | pluginName () const |
Get the name of the account plugin associated with the provider. More... | |
QString | trCatalog () const |
QString | iconName () const |
QString | domainsRegExp () const |
bool | isSingleAccount () const |
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.
Copy constructor.
Copying a Provider object is very cheap, because the data is shared among copies.
Definition at line 65 of file provider.cpp.
QString description | ( | ) | const |
Get the description of the provider, untranslated.
Definition at line 124 of file provider.cpp.
QString displayName | ( | ) | const |
Get the display name of the provider, untranslated.
Definition at line 115 of file provider.cpp.
QString domainsRegExp | ( | ) | const |
Definition at line 161 of file provider.cpp.
const QDomDocument domDocument | ( | ) | const |
Definition at line 177 of file provider.cpp.
QString iconName | ( | ) | const |
Definition at line 152 of file provider.cpp.
bool isSingleAccount | ( | ) | const |
Definition at line 169 of file provider.cpp.
bool isValid | ( | ) | const |
Check whether this object represents a Provider.
Definition at line 95 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 105 of file provider.cpp.
References Provider::isValid().
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 135 of file provider.cpp.
QString trCatalog | ( | ) | const |
Definition at line 144 of file provider.cpp.