Wrapper class for D-Bus transactions to Package Manager interfaces. More...
#include <packagemanagerpendingcallwatcher.h>
Public Slots | |
void | callFinished (QDBusPendingCallWatcher *self) |
Signals | |
void | callFinished (PackageManagerPendingCallWatcher *watcher) |
void | dbusError (PackageManagerPendingCallWatcher *watcher) |
Public Member Functions | |
PackageManagerPendingCallWatcher (const QString &packageidentifier, QObject *parent=0) | |
Constructs Package Manager D-Bus transaction wrapper. | |
~PackageManagerPendingCallWatcher () | |
Destructs the object. | |
QString | packageidentifier () |
Returns package identifier or an empty string. | |
PackageManager::ErrorCode | errorCode () |
Returns an error code for the call. | |
QString | errorName () |
Returns a D-Bus error name or an empty string. | |
QString | errorMessage () |
Returns a D-Bus error message or an empty string. | |
bool | isFinished () |
Returns true if the call is finished. | |
Protected Attributes | |
QString | _packageidentifier |
QString | _errorName |
QString | _errorMessage |
QDBusError::ErrorType | _errorType |
bool | isError |
bool | finished |
Wrapper class for D-Bus transactions to Package Manager interfaces.
PackageManagerPendingCallWatcher pointer is returned when a D-Bus method is called through PackageManger class. The calling side should connect to the dbusError signal provided by this class.
PackageManagerPendingCallWatcher::PackageManagerPendingCallWatcher | ( | const QString & | packageidentifier, | |
QObject * | parent = 0 | |||
) |
Constructs Package Manager D-Bus transaction wrapper.
packageidentifier | Package name or file name with path. | |
parent | Owning component. |