summaryrefslogtreecommitdiff
path: root/lib/Transaction.h
diff options
context:
space:
mode:
authorAdrien BUSTANY <madcat@mymadcat.com>2008-05-24 00:55:13 +0200
committerAdrien BUSTANY <madcat@mymadcat.com>2008-05-24 00:55:13 +0200
commit10c6f047c0cd178b451c84064efd02e7e5974a43 (patch)
treea6e6ffc84bd27bd0c08764b3f6ec5b43580d1d8c /lib/Transaction.h
parent7f63cff063f170a383f7d203675a605c7898caab (diff)
Beginning of the real 0.2 API
Search works (as a showcase) Added some more tests
Diffstat (limited to 'lib/Transaction.h')
-rw-r--r--lib/Transaction.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/Transaction.h b/lib/Transaction.h
new file mode 100644
index 0000000..f52ec46
--- /dev/null
+++ b/lib/Transaction.h
@@ -0,0 +1,38 @@
+#ifndef TRANSACTION_H
+#define TRANSACTION_H
+
+#include <QtCore>
+
+#include "TransactionProxy.h"
+#include "Package.h"
+
+namespace PackageKit {
+
+class Transaction : public QObject {
+
+ Q_OBJECT
+
+public:
+ Transaction(QString tid, QObject *parent = 0);
+ ~Transaction();
+
+ // PackageKit functions
+ void cancel();
+
+ void searchName(const QString& filter, const QString& name);
+
+signals:
+ void gotPackage(Package *p);
+
+private slots:
+ void Package_cb(const QString &info, const QString &package_id, const QString &summary);
+
+private:
+ TransactionProxy *proxy;
+ QString _tid;
+
+};
+
+} // End namespace PackageKit
+
+#endif