summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdrien BUSTANY <madcat@mymadcat.com>2008-05-24 22:39:26 +0200
committerAdrien BUSTANY <madcat@mymadcat.com>2008-05-24 22:39:26 +0200
commit52a406ba326b2dad12da3db9fed55d2070d1b959 (patch)
treeca93d93fde85bc6d5ce7b3fbc503023670aaf00b /lib
parentef9406c424a1c84c7652ff37a51030a3540b3787 (diff)
GetDepends
Diffstat (limited to 'lib')
-rw-r--r--lib/Transaction.cpp4
-rw-r--r--lib/Transaction.h1
-rw-r--r--lib/coverage-transaction.txt2
3 files changed, 6 insertions, 1 deletions
diff --git a/lib/Transaction.cpp b/lib/Transaction.cpp
index 9648807..d0610e9 100644
--- a/lib/Transaction.cpp
+++ b/lib/Transaction.cpp
@@ -50,6 +50,10 @@ void Transaction::getFiles(Package *p) {
proxy->GetFiles(p->id());
}
+void Transaction::getDepends (Package *p, const QString& filter, bool recursive) {
+ proxy->GetDepends(p->id(), filter, recursive);
+}
+
void Transaction::installPackages(const QList<Package*> &packages) {
QStringList pids;
for(int i = 0 ; i < packages.size() ; ++i) pids << packages.at(i)->id();
diff --git a/lib/Transaction.h b/lib/Transaction.h
index 8190e11..ba3d132 100644
--- a/lib/Transaction.h
+++ b/lib/Transaction.h
@@ -28,6 +28,7 @@ public:
void getPackages(const QString& filter);
void getDetails(Package *p);
void getFiles(Package *p);
+ void getDepends(Package *p, const QString &filter, bool recursive = true);
void installPackages(const QList<Package*> &packages);
void installPackage(Package *p);
diff --git a/lib/coverage-transaction.txt b/lib/coverage-transaction.txt
index 56d243c..ded3cd4 100644
--- a/lib/coverage-transaction.txt
+++ b/lib/coverage-transaction.txt
@@ -7,7 +7,7 @@ IF DONE
AcceptEula
X Cancel
GetAllowCancel
- GetDepends
+X GetDepends
X GetDetails
X GetFiles
GetOldTransactions