summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrien BUSTANY <madcat@mymadcat.com>2008-06-09 00:51:30 +0200
committerAdrien BUSTANY <madcat@mymadcat.com>2008-06-09 00:51:30 +0200
commit987d8f6a7cb97a41d2dc3e90761bd11ecb365cba (patch)
tree9222ca85d98602bde67930c2a9adefa8e92c0534
parent03ed645373d01a74164b175a40c66d83a8e21dee (diff)
GetRepoList, RepoDetail signal
-rw-r--r--lib/Daemon.cpp2
-rw-r--r--lib/Transaction.cpp7
-rw-r--r--lib/Transaction.h2
-rw-r--r--lib/coverage-transaction.txt4
4 files changed, 12 insertions, 3 deletions
diff --git a/lib/Daemon.cpp b/lib/Daemon.cpp
index 326fa1a..e40a564 100644
--- a/lib/Daemon.cpp
+++ b/lib/Daemon.cpp
@@ -7,7 +7,7 @@ Daemon::Daemon(QObject *parent) : QObject(parent) {
proxy = new CentralProxy(PK_NAME, PK_PATH, QDBusConnection::systemBus(), this);
connect(proxy, SIGNAL(NetworkStateChanged(const QString&)), this, SLOT(NetworkStateChanged_cb(const QString&)));
connect(proxy, SIGNAL(Locked(bool)), this, SIGNAL(Locked(bool)));
- connect(proxy, SIGNAL(TransactionListChanged(const QStringList&)), this, SLOT(TransactionListChanged(const QStringList&)));
+ connect(proxy, SIGNAL(TransactionListChanged(const QStringList&)), this, SIGNAL(TransactionListChanged(const QStringList&)));
}
Daemon::~Daemon() {
diff --git a/lib/Transaction.cpp b/lib/Transaction.cpp
index 3c28df6..632376c 100644
--- a/lib/Transaction.cpp
+++ b/lib/Transaction.cpp
@@ -30,6 +30,7 @@ void Transaction::renewTid() {
connect(proxy, SIGNAL(ErrorCode(const QString&, const QString&)), this, SIGNAL(ErrorCode(const QString&, const QString&)));
connect(proxy, SIGNAL(Message(const QString&, const QString&)), this, SIGNAL(Message(const QString&, const QString&)));
connect(proxy, SIGNAL(StatusChanged(const QString&)), this, SLOT(StatusChanged_cb(const QString&)));
+ connect(proxy, SIGNAL(RepoDetail(const QString&, const QString&, bool)), this, SIGNAL(RepoDetail(const QString&, const QString&, bool)));
}
@@ -191,6 +192,11 @@ void Transaction::getProgress(uint &percentage, uint &subpercentage, uint &elaps
percentage = proxy->GetProgress(subpercentage, elapsed, remaining);
}
+void Transaction::getRepoList(const QString &filter) {
+ renewTid();
+ proxy->GetRepoList(filter);
+}
+
void Transaction::repoEnable(const QString &repo_id, bool enabled) {
renewTid();
proxy->RepoEnable(repo_id, enabled);
@@ -228,3 +234,4 @@ void Transaction::Finished_cb(const QString& exit, uint runtime) {
void Transaction::StatusChanged_cb(const QString &status) {
emit StatusChanged((Status::Value)EnumFromString<Status>(status));
}
+
diff --git a/lib/Transaction.h b/lib/Transaction.h
index be68e73..f76225e 100644
--- a/lib/Transaction.h
+++ b/lib/Transaction.h
@@ -59,6 +59,7 @@ public:
void refreshCache(bool force = false);
void getProgress(uint &percentage, uint &subpercentage, uint &elapsed, uint &remaining);
+ void getRepoList(const QString &filter);
void repoEnable(const QString &repo_id, bool enabled);
void repoSetData(const QString &repo_id, const QString &parameter, const QString &value);
bool isCallerActive();
@@ -75,6 +76,7 @@ signals:
void ErrorCode(const QString &code, const QString &details);
void Message(const QString &message, const QString &details);
void StatusChanged(Status::Value v);
+ void RepoDetail(const QString &repo_id, const QString &details, bool enabled);
private slots:
void Package_cb(const QString &info, const QString &package_id, const QString &summary);
diff --git a/lib/coverage-transaction.txt b/lib/coverage-transaction.txt
index adcde5c..6cbe5c3 100644
--- a/lib/coverage-transaction.txt
+++ b/lib/coverage-transaction.txt
@@ -14,7 +14,7 @@ X GetFiles
GetPackageLast
X GetPackages
X GetProgress
- GetRepoList
+X GetRepoList
X GetRequires
X GetRole
X GetStatus
@@ -48,7 +48,7 @@ X Finished
X Message
X Package
X ProgressChanged
- RepoDetail
+X RepoDetail
RepoSignatureRequired
EulaRequired
X RequireRestart