summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdrien BUSTANY <madcat@mymadcat.com>2008-06-07 19:53:53 +0200
committerAdrien BUSTANY <madcat@mymadcat.com>2008-06-07 19:53:53 +0200
commit273acbbc69f2ea58c45d8fcd1ac28f575b503b21 (patch)
treecfb93d889fae8e45b6cf6cf7be2c1fb66237f77b /lib
parentf7c4f1460c835a6739a19c5d29bf88ea23ef29b2 (diff)
GetRequires
Diffstat (limited to 'lib')
-rw-r--r--lib/Transaction.cpp5
-rw-r--r--lib/Transaction.h1
-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 dde3314..deadc17 100644
--- a/lib/Transaction.cpp
+++ b/lib/Transaction.cpp
@@ -75,6 +75,11 @@ void Transaction::getDepends (Package *p, const QString& filter, bool recursive)
proxy->GetDepends(p->id(), filter, recursive);
}
+void Transaction::getRequires (Package *p, const QString& filter, bool recursive) {
+ renewTid();
+ proxy->GetDepends(p->id(), filter, recursive);
+}
+
void Transaction::installPackages(const QList<Package*> &packages) {
renewTid();
QStringList pids;
diff --git a/lib/Transaction.h b/lib/Transaction.h
index b4a5b2e..bac6b69 100644
--- a/lib/Transaction.h
+++ b/lib/Transaction.h
@@ -33,6 +33,7 @@ public:
void getDetails(Package *p);
void getFiles(Package *p);
void getDepends(Package *p, const QString &filter, bool recursive = true);
+ void getRequires(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 5f634aa..e8115e4 100644
--- a/lib/coverage-transaction.txt
+++ b/lib/coverage-transaction.txt
@@ -15,7 +15,7 @@ X GetFiles
X GetPackages
X GetProgress
GetRepoList
- GetRequires
+X GetRequires
X GetRole
X GetStatus
GetUpdateDetail