Added extra call to ask for applications details
[meego-garage:garage-client-services.git] / src / packagekitapplicationdetailsjob.h
1 #ifndef PACKAGEKITAPPLICATIONDETAILSJOB_H
2 #define PACKAGEKITAPPLICATIONDETAILSJOB_H
3
4 #include <PackageKit/packagekit-qt/transaction.h>
5 #include "jobtypes.h"
6
7 namespace MeeGoGarage {
8
9 class PackageKitCatalog;
10
11 class PackageKitApplicationDetailsJob : public BaseJob
12 {
13
14     Q_OBJECT
15
16 public:
17
18     explicit PackageKitApplicationDetailsJob(QSharedPointer<PackageKit::Package> package);
19     virtual bool isCancellable();
20
21 private slots:
22
23     virtual void onErrorCode(PackageKit::Enum::Error error, QString msg);
24     virtual void onFinished(PackageKit::Enum::Exit code, uint runtime);
25     void onDetails(QSharedPointer<PackageKit::Package> p);
26
27 protected:
28
29     virtual bool doStart();
30     virtual bool doCancel();
31
32     PackageKit::Client * m_client;
33     PackageKit::Transaction * m_transaction;
34     QSharedPointer<PackageKit::Package> m_package;
35
36 };
37
38 } // namespace MeeGoGarage
39
40 #endif // PACKAGEKITAPPLICATIONDETAILSJOB_H