summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Transaction.cpp4
-rw-r--r--lib/Transaction.h2
-rw-r--r--lib/coverage-transaction.txt2
3 files changed, 7 insertions, 1 deletions
diff --git a/lib/Transaction.cpp b/lib/Transaction.cpp
index ed6b484..858c7c0 100644
--- a/lib/Transaction.cpp
+++ b/lib/Transaction.cpp
@@ -29,6 +29,10 @@ Role::Value Transaction::getRole(Package *p) {
return role;
}
+Status::Value Transaction::getStatus() {
+ return (Status::Value)EnumFromString<Status>(proxy->GetStatus());
+}
+
void Transaction::searchName(const QString& filter, const QString& name) {
qDebug() << "search for " << name;
proxy->SearchName(filter, name);
diff --git a/lib/Transaction.h b/lib/Transaction.h
index 7898ecd..94107c2 100644
--- a/lib/Transaction.h
+++ b/lib/Transaction.h
@@ -7,6 +7,7 @@
#include "Package.h"
#include "Exit.h"
#include "Role.h"
+#include "Status.h"
namespace PackageKit {
@@ -21,6 +22,7 @@ public:
// PackageKit functions
void cancel();
Role::Value getRole(Package *p = NULL);
+ Status::Value getStatus();
void searchName(const QString& filter, const QString& name);
void getDetails(Package *p);
diff --git a/lib/coverage-transaction.txt b/lib/coverage-transaction.txt
index c4921e7..4cbe5c6 100644
--- a/lib/coverage-transaction.txt
+++ b/lib/coverage-transaction.txt
@@ -17,7 +17,7 @@ X GetDetails
GetRepoList
GetRequires
X GetRole
- GetStatus
+X GetStatus
GetUpdateDetail
GetUpdates
InstallFiles