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); | ||||
73 | /** | ||||
74 | * The slot which causes loading of a person's details | ||||
75 | * @see Provider::loadPerson(const QString &username) | ||||
76 | */ | ||||
77 | Q_SLOT void loadPerson(const QString &username); | ||||
68 | 78 | | |||
69 | bool userCanVote() override | 79 | bool userCanVote() override | ||
70 | { | 80 | { | ||
71 | return true; | 81 | return true; | ||
72 | } | 82 | } | ||
73 | void vote(const EntryInternal &entry, uint rating) override; | 83 | void vote(const EntryInternal &entry, uint rating) override; | ||
74 | 84 | | |||
75 | bool userCanBecomeFan() override | 85 | bool userCanBecomeFan() override | ||
76 | { | 86 | { | ||
77 | return true; | 87 | return true; | ||
78 | } | 88 | } | ||
79 | void becomeFan(const EntryInternal &entry) override; | 89 | void becomeFan(const EntryInternal &entry) override; | ||
80 | 90 | | |||
81 | private Q_SLOTS: | 91 | private Q_SLOTS: | ||
82 | void providerLoaded(const Attica::Provider &provider); | 92 | void providerLoaded(const Attica::Provider &provider); | ||
83 | void listOfCategoriesLoaded(Attica::BaseJob *); | 93 | void listOfCategoriesLoaded(Attica::BaseJob *); | ||
84 | void categoryContentsLoaded(Attica::BaseJob *job); | 94 | void categoryContentsLoaded(Attica::BaseJob *job); | ||
85 | void downloadItemLoaded(Attica::BaseJob *job); | 95 | void downloadItemLoaded(Attica::BaseJob *job); | ||
86 | void accountBalanceLoaded(Attica::BaseJob *job); | 96 | void accountBalanceLoaded(Attica::BaseJob *job); | ||
87 | void authenticationCredentialsMissing(const Provider &); | 97 | void authenticationCredentialsMissing(const Provider &); | ||
88 | void votingFinished(Attica::BaseJob *); | 98 | void votingFinished(Attica::BaseJob *); | ||
89 | void becomeFanFinished(Attica::BaseJob *job); | 99 | void becomeFanFinished(Attica::BaseJob *job); | ||
90 | void detailsLoaded(Attica::BaseJob *job); | 100 | void detailsLoaded(Attica::BaseJob *job); | ||
101 | void loadedComments(Attica::BaseJob *job); | ||||
102 | void loadedPerson(Attica::BaseJob *job); | ||||
91 | 103 | | |||
92 | private: | 104 | private: | ||
93 | void checkForUpdates(); | 105 | void checkForUpdates(); | ||
94 | EntryInternal::List installedEntries() const; | 106 | EntryInternal::List installedEntries() const; | ||
95 | bool jobSuccess(Attica::BaseJob *job) const; | 107 | bool jobSuccess(Attica::BaseJob *job) const; | ||
96 | 108 | | |||
97 | Attica::Provider::SortMode atticaSortMode(const SortMode &sortMode); | 109 | Attica::Provider::SortMode atticaSortMode(const SortMode &sortMode); | ||
98 | 110 | | |||
Show All 31 Lines |