summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdrien BUSTANY <madcat@mymadcat.com>2008-05-24 20:34:28 +0200
committerAdrien BUSTANY <madcat@mymadcat.com>2008-05-24 20:34:28 +0200
commitaf9e74ac7ed6f39d056f18663dc57340ac303a6a (patch)
tree2598d076675b4234df85aa8b034601825f112793 /lib
parentfe9e9bfb7d914e08e20ef654db34c3c626544520 (diff)
ProgressChanged signal
Diffstat (limited to 'lib')
-rw-r--r--lib/Transaction.cpp5
-rw-r--r--lib/Transaction.h2
-rw-r--r--lib/coverage-daemon.txt4
-rw-r--r--lib/coverage-transaction.txt2
4 files changed, 10 insertions, 3 deletions
diff --git a/lib/Transaction.cpp b/lib/Transaction.cpp
index 36b23e1..6eff063 100644
--- a/lib/Transaction.cpp
+++ b/lib/Transaction.cpp
@@ -12,6 +12,7 @@ Transaction::Transaction(QString tid, QObject *parent) : QObject(parent) {
connect(proxy, SIGNAL(Package(const QString&, const QString&, const QString&)), this, SLOT(Package_cb(const QString&, const QString&, const QString&)));
connect(proxy, SIGNAL(Details(const QString&, const QString&, const QString&, const QString&, const QString&, qulonglong)), this, SLOT(Details_cb(const QString&, const QString&, const QString&, const QString&, const QString&, qulonglong)));
connect(proxy, SIGNAL(Finished(const QString&, uint)), this, SLOT(Finished_cb(const QString&, uint)));
+ connect(proxy, SIGNAL(ProgressChanged(uint, uint, uint, uint)), this, SIGNAL(ProgressChanged(uint, uint, uint, uint)));
}
Transaction::~Transaction() {
@@ -26,6 +27,10 @@ void Transaction::searchName(const QString& filter, const QString& name) {
proxy->SearchName(filter, name);
}
+void Transaction::getDetails(Package *p) {
+ proxy->GetDetails(p->id());
+}
+
// Signal callbacks
void Transaction::Package_cb(const QString &info, const QString &package_id, const QString &summary) {
diff --git a/lib/Transaction.h b/lib/Transaction.h
index 9325a12..9e5ef80 100644
--- a/lib/Transaction.h
+++ b/lib/Transaction.h
@@ -21,11 +21,13 @@ public:
void cancel();
void searchName(const QString& filter, const QString& name);
+ void getDetails(Package *p);
signals:
void GotPackage(Package *p);
void Details(Package *p, const QString& license, const QString& group, const QString& detail, const QString& url, qulonglong size);
void Finished(Exit::Value status, uint runtime);
+ void ProgressChanged(uint percentage, uint subpercentage, uint elapsed, uint remaining);
private slots:
void Package_cb(const QString &info, const QString &package_id, const QString &summary);
diff --git a/lib/coverage-daemon.txt b/lib/coverage-daemon.txt
index 6b9c506..a16bc50 100644
--- a/lib/coverage-daemon.txt
+++ b/lib/coverage-daemon.txt
@@ -6,8 +6,8 @@ IF DONE
X GetActions
X GetBackendDetail
X GetFilters
- GetGroups
- GetTid
+X GetGroups
+X GetTid
GetTimeSinceAction
GetTransactionList
StateHasChanged
diff --git a/lib/coverage-transaction.txt b/lib/coverage-transaction.txt
index bb6c1fd..23d8ec3 100644
--- a/lib/coverage-transaction.txt
+++ b/lib/coverage-transaction.txt
@@ -8,7 +8,7 @@ IF DONE
X Cancel
GetAllowCancel
GetDepends
- GetDetails
+X GetDetails
GetFiles
GetOldTransactions
GetPackageLast