diff options
Diffstat (limited to 'lib/Transaction.h')
-rw-r--r-- | lib/Transaction.h | 38 |
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 |