Changeset View
Changeset View
Standalone View
Standalone View
src/downloadwidget_p.h
Context not available. | |||||
29 | #include <QScrollBar> | 29 | #include <QScrollBar> | ||
---|---|---|---|---|---|
30 | #include <QListView> | 30 | #include <QListView> | ||
31 | 31 | | |||
32 | #include "ui/itemsmodel_p.h" | 32 | #include "core/itemsmodel_p.h" | ||
33 | | ||||
33 | #include "ui/itemsviewbasedelegate_p.h" | 34 | #include "ui/itemsviewbasedelegate_p.h" | ||
34 | #include "ui/entrydetailsdialog_p.h" | 35 | #include "ui/entrydetailsdialog_p.h" | ||
35 | 36 | | |||
Context not available. | |||||
39 | { | 40 | { | ||
40 | class DownloadWidget; | 41 | class DownloadWidget; | ||
41 | 42 | | |||
42 | class DownloadWidgetPrivate | 43 | class DownloadWidgetPrivate : public QObject | ||
43 | { | 44 | { | ||
45 | Q_OBJECT | ||||
44 | public: | 46 | public: | ||
45 | DownloadWidget *q; | 47 | DownloadWidget *q; | ||
46 | EntryDetails *details; | 48 | EntryDetails *details; | ||
47 | 49 | | |||
48 | // The engine that does all the work | 50 | // The engine that does all the work | ||
49 | Engine *engine; | 51 | KNSCore::Engine *engine; | ||
50 | Ui::DownloadWidget ui; | 52 | Ui::DownloadWidget ui; | ||
51 | // Model to show the entries | 53 | // Model to show the entries | ||
52 | ItemsModel *model; | 54 | KNSCore::ItemsModel *model; | ||
53 | // Timeout for messge display | 55 | // Timeout for messge display | ||
54 | QTimer *messageTimer; | 56 | QTimer *messageTimer; | ||
55 | 57 | | |||
56 | ItemsViewBaseDelegate *delegate; | 58 | ItemsViewBaseDelegate *delegate; | ||
57 | 59 | | |||
58 | QString searchTerm; | 60 | QString searchTerm; | ||
59 | QSet<EntryInternal> changedEntries; | 61 | QSet<KNSCore::EntryInternal> changedEntries; | ||
60 | 62 | | |||
61 | QSet<QString> categories; | 63 | QSet<QString> categories; | ||
62 | QSet<QString> providers; | 64 | QSet<QString> providers; | ||
Context not available. | |||||
69 | ~DownloadWidgetPrivate(); | 71 | ~DownloadWidgetPrivate(); | ||
70 | 72 | | |||
71 | void init(const QString &configFile); | 73 | void init(const QString &configFile); | ||
74 | void slotShowMessage(const QString& msg); | ||||
72 | void displayMessage(const QString &msg, KTitleWidget::MessageType type, int timeOutMs = 0); | 75 | void displayMessage(const QString &msg, KTitleWidget::MessageType type, int timeOutMs = 0); | ||
73 | 76 | | |||
74 | void slotProvidersLoaded(); | 77 | void slotProvidersLoaded(); | ||
75 | void slotEntriesLoaded(const KNS3::EntryInternal::List &entries); | 78 | void slotEntriesLoaded(const KNSCore::EntryInternal::List &entries); | ||
76 | void slotEntryChanged(const KNS3::EntryInternal &entry); | 79 | void slotEntryChanged(const KNSCore::EntryInternal &entry); | ||
77 | 80 | | |||
78 | void slotShowDetails(const KNS3::EntryInternal &entry); | 81 | void slotShowDetails(const KNSCore::EntryInternal &entry); | ||
79 | void slotShowOverview(); | 82 | void slotShowOverview(); | ||
80 | 83 | | |||
81 | void slotPayloadFailed(const EntryInternal &entry); | 84 | void slotPayloadFailed(const KNSCore::EntryInternal &entry); | ||
82 | void slotPayloadLoaded(QUrl url); | 85 | void slotPayloadLoaded(QUrl url); | ||
83 | 86 | | |||
84 | void slotResetMessage(); | 87 | void slotResetMessage(); | ||
Context not available. |