accounts-qt 1.16
|
Information on the client applications of libaccounts. More...
#include <Accounts/Application>
Public Member Functions | |
Application () | |
Construct an invalid application. | |
Application (const Application &other) | |
Copy constructor. | |
Application & | operator= (const Application &other) |
~Application () | |
Destructor. | |
bool | isValid () const |
Check whether this object represents an Application. | |
QString | name () const |
Get the unique ID of the application. | |
QString | displayName () const |
Get the display name of the application. | |
QString | description () const |
Get the description of the application. | |
QString | iconName () const |
Get the icon name of the application. | |
QString | desktopFilePath () const |
Get the .desktop file associated with this application. | |
QString | trCatalog () const |
Get the translation catalog for the texts returned by the methods of this class. | |
bool | supportsService (const Service &service) const |
Check whether the application supports the given service. | |
QString | serviceUsage (const Service &service) const |
Get the description from the application XML file, for the specified service; if not found, get the service-type description instead. |
Information on the client applications of libaccounts.
The Application structure holds information on the client applications registered with libaccounts. It is instantiated by Manager::application() and Manager::applicationList().
Definition at line 41 of file application.h.
Application | ( | ) |
Construct an invalid application.
Definition at line 53 of file application.cpp.
Referenced by Application().
Application | ( | const Application & | other | ) |
Copy constructor.
Copying an Application object is very cheap, because the data is shared among copies.
Definition at line 62 of file application.cpp.
References Application().
~Application | ( | ) |
Destructor.
Definition at line 83 of file application.cpp.
QString description | ( | ) | const |
Get the description of the application.
Definition at line 131 of file application.cpp.
QString desktopFilePath | ( | ) | const |
Get the .desktop file associated with this application.
Definition at line 160 of file application.cpp.
QString displayName | ( | ) | const |
Get the display name of the application.
Definition at line 115 of file application.cpp.
References name().
QString iconName | ( | ) | const |
Get the icon name of the application.
Definition at line 140 of file application.cpp.
References iconName().
Referenced by iconName().
bool isValid | ( | ) | const |
Check whether this object represents an Application.
Definition at line 95 of file application.cpp.
Referenced by name().
QString name | ( | ) | const |
Get the unique ID of the application.
This is the name of the .application file minus the .application suffix.
Definition at line 105 of file application.cpp.
References isValid().
Referenced by displayName().
Application & operator= | ( | const Application & | other | ) |
Definition at line 69 of file application.cpp.
QString serviceUsage | ( | const Service & | service | ) | const |
Get the description from the application XML file, for the specified service; if not found, get the service-type description instead.
Definition at line 198 of file application.cpp.
bool supportsService | ( | const Service & | service | ) | const |
Check whether the application supports the given service.
service | Instance of a Service. |
Definition at line 187 of file application.cpp.
QString trCatalog | ( | ) | const |
Get the translation catalog for the texts returned by the methods of this class.
Definition at line 177 of file application.cpp.