Changeset View
Changeset View
Standalone View
Standalone View
src/attica/atticaprovider_p.h
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 51 | public: | |||
---|---|---|---|---|---|
60 | bool setProviderXML(const QDomElement &xmldata) override; | 60 | bool setProviderXML(const QDomElement &xmldata) override; | ||
61 | 61 | | |||
62 | bool isInitialized() const override; | 62 | bool isInitialized() const override; | ||
63 | void setCachedEntries(const KNSCore::EntryInternal::List &cachedEntries) override; | 63 | void setCachedEntries(const KNSCore::EntryInternal::List &cachedEntries) override; | ||
64 | 64 | | |||
65 | void loadEntries(const KNSCore::Provider::SearchRequest &request) override; | 65 | void loadEntries(const KNSCore::Provider::SearchRequest &request) override; | ||
66 | void loadEntryDetails(const KNSCore::EntryInternal &entry) override; | 66 | void loadEntryDetails(const KNSCore::EntryInternal &entry) override; | ||
67 | void loadPayloadLink(const EntryInternal &entry, int linkId) override; | 67 | void loadPayloadLink(const EntryInternal &entry, int linkId) override; | ||
68 | /** | ||||
69 | * The slot which causes loading of comments for the Attica provider | ||||
70 | * @see Provider::loadComments(const EntryInternal &entry, int commentsPerPage, int page) | ||||
71 | */ | ||||
72 | Q_SLOT void loadComments(const EntryInternal &entry, int commentsPerPage, int page); | ||||
68 | 73 | | |||
69 | bool userCanVote() override | 74 | bool userCanVote() override | ||
70 | { | 75 | { | ||
71 | return true; | 76 | return true; | ||
72 | } | 77 | } | ||
73 | void vote(const EntryInternal &entry, uint rating) override; | 78 | void vote(const EntryInternal &entry, uint rating) override; | ||
74 | 79 | | |||
75 | bool userCanBecomeFan() override | 80 | bool userCanBecomeFan() override | ||
76 | { | 81 | { | ||
77 | return true; | 82 | return true; | ||
78 | } | 83 | } | ||
79 | void becomeFan(const EntryInternal &entry) override; | 84 | void becomeFan(const EntryInternal &entry) override; | ||
80 | 85 | | |||
81 | private Q_SLOTS: | 86 | private Q_SLOTS: | ||
82 | void providerLoaded(const Attica::Provider &provider); | 87 | void providerLoaded(const Attica::Provider &provider); | ||
83 | void listOfCategoriesLoaded(Attica::BaseJob *); | 88 | void listOfCategoriesLoaded(Attica::BaseJob *); | ||
84 | void categoryContentsLoaded(Attica::BaseJob *job); | 89 | void categoryContentsLoaded(Attica::BaseJob *job); | ||
85 | void downloadItemLoaded(Attica::BaseJob *job); | 90 | void downloadItemLoaded(Attica::BaseJob *job); | ||
86 | void accountBalanceLoaded(Attica::BaseJob *job); | 91 | void accountBalanceLoaded(Attica::BaseJob *job); | ||
87 | void authenticationCredentialsMissing(const Provider &); | 92 | void authenticationCredentialsMissing(const Provider &); | ||
88 | void votingFinished(Attica::BaseJob *); | 93 | void votingFinished(Attica::BaseJob *); | ||
89 | void becomeFanFinished(Attica::BaseJob *job); | 94 | void becomeFanFinished(Attica::BaseJob *job); | ||
90 | void detailsLoaded(Attica::BaseJob *job); | 95 | void detailsLoaded(Attica::BaseJob *job); | ||
96 | void loadedComments(Attica::BaseJob *job); | ||||
91 | 97 | | |||
92 | private: | 98 | private: | ||
93 | void checkForUpdates(); | 99 | void checkForUpdates(); | ||
94 | EntryInternal::List installedEntries() const; | 100 | EntryInternal::List installedEntries() const; | ||
95 | bool jobSuccess(Attica::BaseJob *job) const; | 101 | bool jobSuccess(Attica::BaseJob *job) const; | ||
96 | 102 | | |||
97 | Attica::Provider::SortMode atticaSortMode(const SortMode &sortMode); | 103 | Attica::Provider::SortMode atticaSortMode(const SortMode &sortMode); | ||
98 | 104 | | |||
Show All 31 Lines |