Changeset View
Changeset View
Standalone View
Standalone View
src/core/engine.h
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Line(s) | 59 | public: | |||
---|---|---|---|---|---|
126 | bool userCanVote(const EntryInternal &entry); | 126 | bool userCanVote(const EntryInternal &entry); | ||
127 | void vote(const EntryInternal &entry, uint rating); | 127 | void vote(const EntryInternal &entry, uint rating); | ||
128 | bool userCanBecomeFan(const EntryInternal &entry); | 128 | bool userCanBecomeFan(const EntryInternal &entry); | ||
129 | void becomeFan(const EntryInternal &entry); | 129 | void becomeFan(const EntryInternal &entry); | ||
130 | 130 | | |||
131 | QStringList categories() const; | 131 | QStringList categories() const; | ||
132 | QStringList categoriesFilter() const; | 132 | QStringList categoriesFilter() const; | ||
133 | 133 | | |||
134 | QList<Provider::CategoryMetadata> categoriesMetadata(); | ||||
135 | | ||||
134 | Q_SIGNALS: | 136 | Q_SIGNALS: | ||
135 | /** | 137 | /** | ||
136 | * Indicates a message to be added to the ui's log, or sent to a messagebox | 138 | * Indicates a message to be added to the ui's log, or sent to a messagebox | ||
137 | */ | 139 | */ | ||
138 | void signalMessage(const QString &message); | 140 | void signalMessage(const QString &message); | ||
139 | 141 | | |||
140 | void signalProvidersLoaded(); | 142 | void signalProvidersLoaded(); | ||
141 | void signalEntriesLoaded(const KNSCore::EntryInternal::List &entries); | 143 | void signalEntriesLoaded(const KNSCore::EntryInternal::List &entries); | ||
Show All 12 Lines | |||||
154 | 156 | | |||
155 | void signalDownloadDialogDone(KNSCore::EntryInternal::List); | 157 | void signalDownloadDialogDone(KNSCore::EntryInternal::List); | ||
156 | void jobStarted(KJob *, const QString &); | 158 | void jobStarted(KJob *, const QString &); | ||
157 | 159 | | |||
158 | void signalError(const QString &); | 160 | void signalError(const QString &); | ||
159 | void signalBusy(const QString &); | 161 | void signalBusy(const QString &); | ||
160 | void signalIdle(const QString &); | 162 | void signalIdle(const QString &); | ||
161 | 163 | | |||
164 | void signalCategoriesMetadataLoded(const QList<Provider::CategoryMetadata> &categories); | ||||
165 | | ||||
162 | private Q_SLOTS: | 166 | private Q_SLOTS: | ||
163 | // the .knsrc file was loaded | 167 | // the .knsrc file was loaded | ||
164 | void slotProviderFileLoaded(const QDomDocument &doc); | 168 | void slotProviderFileLoaded(const QDomDocument &doc); | ||
165 | // instead of getting providers from knsrc, use what was configured in ocs systemsettings | 169 | // instead of getting providers from knsrc, use what was configured in ocs systemsettings | ||
166 | void atticaProviderLoaded(const Attica::Provider &provider); | 170 | void atticaProviderLoaded(const Attica::Provider &provider); | ||
167 | 171 | | |||
168 | // loading the .knsrc file failed | 172 | // loading the .knsrc file failed | ||
169 | void slotProvidersFailed(); | 173 | void slotProvidersFailed(); | ||
Show All 25 Lines | 198 | /** | |||
195 | Add a provider and connect it to the right slots | 199 | Add a provider and connect it to the right slots | ||
196 | */ | 200 | */ | ||
197 | void addProvider(QSharedPointer<KNSCore::Provider> provider); | 201 | void addProvider(QSharedPointer<KNSCore::Provider> provider); | ||
198 | 202 | | |||
199 | void updateStatus(); | 203 | void updateStatus(); | ||
200 | 204 | | |||
201 | void doRequest(); | 205 | void doRequest(); | ||
202 | 206 | | |||
207 | //FIXME KF6: move all of this in EnginePrivate | ||||
203 | // handle installation of entries | 208 | // handle installation of entries | ||
204 | Installation *m_installation; | 209 | Installation *m_installation; | ||
205 | // read/write cache of entries | 210 | // read/write cache of entries | ||
206 | QSharedPointer<Cache> m_cache; | 211 | QSharedPointer<Cache> m_cache; | ||
207 | QTimer *m_searchTimer; | 212 | QTimer *m_searchTimer; | ||
208 | // The url of the file containing information about content providers | 213 | // The url of the file containing information about content providers | ||
209 | QString m_providerFileUrl; | 214 | QString m_providerFileUrl; | ||
210 | // Categories from knsrc file | 215 | // Categories from knsrc file | ||
Show All 15 Lines | |||||
226 | int m_pageSize; | 231 | int m_pageSize; | ||
227 | 232 | | |||
228 | int m_numDataJobs; | 233 | int m_numDataJobs; | ||
229 | int m_numPictureJobs; | 234 | int m_numPictureJobs; | ||
230 | int m_numInstallJobs; | 235 | int m_numInstallJobs; | ||
231 | // If the provider is ready to be used | 236 | // If the provider is ready to be used | ||
232 | bool m_initialized; | 237 | bool m_initialized; | ||
233 | 238 | | |||
234 | | ||||
235 | Q_DISABLE_COPY(Engine) | 239 | Q_DISABLE_COPY(Engine) | ||
236 | }; | 240 | }; | ||
237 | 241 | | |||
238 | } | 242 | } | ||
239 | 243 | | |||
240 | #endif | 244 | #endif |