KNewStuff
atticaprovider.cpp
Go to the documentation of this file.
46 connect(&m_providerManager, SIGNAL(providerAdded(Attica::Provider)), SLOT(providerLoaded(Attica::Provider)));
86 kDebug() << "base url of attica provider:" << m_providerManager.providers().last().baseUrl().toString();
107 connect(job, SIGNAL(finished(Attica::BaseJob*)), SLOT(listOfCategoriesLoaded(Attica::BaseJob*)));
117 Attica::ListJob<Attica::Category>* job = static_cast<Attica::ListJob<Attica::Category>*>(listJob);
169 ListJob<Content>* job = m_provider.searchContents(categoriesToSearch, request.searchTerm, sorting, request.page, request.pageSize);
170 connect(job, SIGNAL(finished(Attica::BaseJob*)), SLOT(categoryContentsLoaded(Attica::BaseJob*)));
262 ItemJob<DownloadItem>* job = m_provider.downloadLink(entry.uniqueId(), QString::number(linkId));
289 ItemJob<DownloadItem>* job = m_provider.downloadLink(entry.uniqueId(), QString::number(pair.second));
300 KMessageBox::information(0, i18n("Your account balance is too low:\nYour balance: %1\nPrice: %2",
345 connect(job, SIGNAL(finished(Attica::BaseJob*)), this, SLOT(becomeFanFinished(Attica::BaseJob*)));
361 kDebug() << "job error: " << job->metadata().error() << " status code: " << job->metadata().statusCode() << job->metadata().message();
370 emit signalError(i18n("Unknown Open Collaboration Service API error. (%1)", job->metadata().statusCode()));
390 if (((cacheEntry.status() == Entry::Installed) || (cacheEntry.status() == Entry::Updateable)) &&
391 ((cacheEntry.version() != entry.version()) || (cacheEntry.releaseDate() != entry.releaseDate()))) {
QString i18n(const char *text)
void setChangelog(const QString &changelog)
The user written changelog.
Definition: entryinternal.cpp:204
void setRating(int rating)
Sets the rating between 0 (worst) and 100 (best).
Definition: entryinternal.cpp:289
void setProviderId(const QString &id)
Definition: entryinternal.cpp:149
Definition: entryinternal.h:66
void signalInformation(const QString &) const
static void information(QWidget *parent, const QString &text, const QString &caption=QString(), const QString &dontShowAgainName=QString(), Options options=Notify)
virtual QString id() const
A unique Id for this provider (the url in most cases)
Definition: atticaprovider.cpp:62
static QDebug kError(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
virtual bool isInitialized() const
Definition: atticaprovider.cpp:130
virtual void loadEntries(const KNS3::Provider::SearchRequest &request)
load the given search and return given page
Definition: atticaprovider.cpp:135
virtual bool setProviderXML(const QDomElement &xmldata)
set the provider data xml, to initialize the provider
Definition: atticaprovider.cpp:73
void setKnowledgebaseLink(const QString &link)
Definition: entryinternal.cpp:337
virtual void loadEntryDetails(const KNS3::EntryInternal &entry)
Definition: atticaprovider.cpp:187
void setName(const QString &name)
Sets the full name of the author.
Definition: knewstuff3/core/author.cpp:25
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void setAuthor(const Author &author)
Sets the author of the object.
Definition: entryinternal.cpp:179
void appendDownloadLinkInformation(const DownloadLinkInformation &info)
Definition: entryinternal.cpp:407
QString distributionType
Definition: entryinternal.h:82
QString i18nc(const char *ctxt, const char *text)
void payloadLinkLoaded(const KNS3::EntryInternal &)
QString priceAmount
Definition: entryinternal.h:81
void setReleaseDate(const QDate &releasedate)
Sets the release date.
Definition: entryinternal.cpp:229
used to keep track of a search
Definition: knewstuff3/core/provider.h:64
AtticaProvider(const QStringList &categories)
Definition: atticaprovider.cpp:38
void setPreviewUrl(const QString &url, PreviewType type=PreviewSmall1)
Sets the object's preview file, if available.
Definition: entryinternal.cpp:269
void providerInitialized(KNS3::Provider *)
void setNumberKnowledgebaseEntries(int num)
Definition: entryinternal.cpp:328
void setSource(Source source)
The source of this entry can be Cache, Registry or Online -.
Definition: entryinternal.cpp:362
void setSummary(const QString &summary)
Sets a short description on what the object is all about.
Definition: entryinternal.cpp:199
Definition: knewstuff3/entry.h:61
void setLicense(const QString &license)
Sets the license (abbreviation) applicable to the object.
Definition: entryinternal.cpp:189
QString searchTerm
Definition: knewstuff3/core/provider.h:66
void clearDownloadLinkInformation()
Definition: entryinternal.cpp:412
void setUpdateVersion(const QString &version)
Sets the version number that is available as update.
Definition: entryinternal.cpp:259
virtual void loadPayloadLink(const EntryInternal &entry, int linkId)
Definition: atticaprovider.cpp:248
Definition: knewstuff3/entry.h:60
QDate releaseDate() const
Retrieve the date of the object's publication.
Definition: entryinternal.cpp:224
static int questionYesNo(QWidget *parent, const QString &text, const QString &caption=QString(), const KGuiItem &buttonYes=KStandardGuiItem::yes(), const KGuiItem &buttonNo=KStandardGuiItem::no(), const QString &dontAskAgainName=QString(), Options options=Notify)
void setDonationLink(const QString &link)
Definition: entryinternal.cpp:319
QString version() const
Retrieve the version string of the object.
Definition: entryinternal.cpp:214
void setName(const QString &name)
Sets the name for this data object.
Definition: entryinternal.cpp:129
void loadingFinished(const KNS3::Provider::SearchRequest &, const KNS3::EntryInternal::List &) const
void setUniqueId(const QString &id)
Definition: entryinternal.cpp:139
virtual void setCachedEntries(const KNS3::EntryInternal::List &cachedEntries)
Definition: atticaprovider.cpp:94
void signalError(const QString &) const
QString descriptionLink
Definition: entryinternal.h:83
QStringList categories
Definition: knewstuff3/core/provider.h:67
void setHomepage(const QString &homepage)
Sets the homepage of the author.
Definition: knewstuff3/core/author.cpp:55
virtual void vote(const EntryInternal &entry, uint rating)
Definition: atticaprovider.cpp:328
void setStatus(Entry::Status status)
Returns the checksum for the entry.
Definition: entryinternal.cpp:372
QString hashForRequest() const
Definition: knewstuff3/core/provider.cpp:33
Definition: atticaprovider.cpp:35
void entryDetailsLoaded(const KNS3::EntryInternal &)
virtual void becomeFan(const EntryInternal &entry)
Definition: atticaprovider.cpp:342
bool isDownloadtypeLink
Definition: entryinternal.h:85
void setUpdateReleaseDate(const QDate &releasedate)
Sets the release date that is available as update.
Definition: entryinternal.cpp:249
Definition: atticaprovider.h:28
Definition: knewstuff3/entry.h:62
This file is part of the KDE documentation.
Documentation copyright © 1996-2016 The KDE developers.
Generated on Wed May 11 2016 01:55:35 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2016 The KDE developers.
Generated on Wed May 11 2016 01:55:35 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.