KNewStuff
knewstuff3/core/engine.cpp
Go to the documentation of this file.
81 connect(m_installation, SIGNAL(signalInstallationFinished()), this, SLOT(slotInstallationFinished()));
82 connect(m_installation, SIGNAL(signalInstallationFailed(QString)), this, SLOT(slotInstallationFailed(QString)));
142 connect(m_installation, SIGNAL(signalEntryChanged(KNS3::EntryInternal)), SLOT(slotEntryChanged(KNS3::EntryInternal)));
145 connect(this, SIGNAL(signalEntryChanged(KNS3::EntryInternal)), m_cache.data(), SLOT(registerChangedEntry(KNS3::EntryInternal)));
172 connect(m_atticaProviderManager, SIGNAL(providerAdded(Attica::Provider)), this, SLOT(atticaProviderLoaded(Attica::Provider)));
179 connect(loader, SIGNAL(signalLoaded(QDomDocument)), SLOT(slotProviderFileLoaded(QDomDocument)));
197 } else if (providers.tagName() != "ghnsproviders" && providers.tagName() != "knewstuffproviders") {
199 emit signalError(i18n("Could not load get hot new stuff providers from file: %1", m_providerFileUrl));
227 kDebug() << "Found provider: " << atticaProvider.baseUrl() << " but it does not support content";
238 connect(provider.data(), SIGNAL(providerInitialized(KNS3::Provider*)), SLOT(providerInitialized(KNS3::Provider*)));
239 connect(provider.data(), SIGNAL(loadingFinished(KNS3::Provider::SearchRequest,KNS3::EntryInternal::List)),
241 connect(provider.data(), SIGNAL(entryDetailsLoaded(KNS3::EntryInternal)), SLOT(slotEntryDetailsLoaded(KNS3::EntryInternal)));
242 connect(provider.data(), SIGNAL(payloadLinkLoaded(KNS3::EntryInternal)), SLOT(downloadLinkLoaded(KNS3::EntryInternal)));
244 connect(provider.data(), SIGNAL(signalInformation(QString)), this, SIGNAL(signalIdle(QString)));
271 void Engine::slotEntriesLoaded(const KNS3::Provider::SearchRequest& request, KNS3::EntryInternal::List entries)
362 kDebug() << "Get more data! current page: " << m_currentPage << " requested: " << m_currentRequest.page;
458 entry.setStatus(Entry::Deleted); //status for actual entry gets set in m_installation->uninstall()
473 connect(l, SIGNAL(signalPreviewLoaded(KNS3::EntryInternal,KNS3::EntryInternal::PreviewType)), this, SLOT(slotPreviewLoaded(KNS3::EntryInternal,KNS3::EntryInternal::PreviewType)));
479 void Engine::slotPreviewLoaded(const KNS3::EntryInternal& entry, EntryInternal::PreviewType type)
Definition: knewstuff3/entry.h:63
QString i18n(const char *text)
void signalUpdateableEntriesLoaded(const KNS3::EntryInternal::List &entries)
void becomeFan(const EntryInternal &entry)
Definition: knewstuff3/core/engine.cpp:520
void requestData(int page, int pageSize)
Definition: knewstuff3/core/engine.cpp:372
QString providerId() const
The id of the provider this entry belongs to.
Definition: entryinternal.cpp:144
void signalBusy(const QString &)
QString i18np(const char *sing, const char *plur, const A1 &a1)
int timeout
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
void loadDetails(const KNS3::EntryInternal &entry)
Definition: knewstuff3/core/engine.cpp:463
void setSearchTerm(const QString &searchString)
Definition: knewstuff3/core/engine.cpp:343
void contactAuthor(const EntryInternal &entry)
Try to contact the author of the entry by email or showing their homepage.
Definition: knewstuff3/core/engine.cpp:487
void load(const KUrl &url)
Starts asynchronously loading the xml document from the specified URL.
Definition: xmlloader.cpp:39
void signalEntryPreviewLoaded(const KNS3::EntryInternal &, KNS3::EntryInternal::PreviewType)
static QDebug kError(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
bool hasGroup(const QString &group) const
KConfigGroup group(const QByteArray &group)
static void invokeMailer(const QString &address, const QString &subject, const QByteArray &startup_id=QByteArray())
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
virtual QString name() const
Retrieves the common name of the provider.
Definition: knewstuff3/core/provider.cpp:48
void signalError(const QString &)
bool readConfig(const KConfigGroup &group)
Definition: knewstuff3/core/installation.cpp:57
void signalEntryDetailsLoaded(const KNS3::EntryInternal &entry)
used to keep track of a search
Definition: knewstuff3/core/provider.h:64
bool userCanVote(const EntryInternal &entry)
Definition: knewstuff3/core/engine.cpp:502
QStringList categoriesFilter() const
Definition: knewstuff3/core/engine.cpp:161
void signalProvidersLoaded()
void signalEntriesLoaded(const KNS3::EntryInternal::List &entries)
bool userCanBecomeFan(const EntryInternal &entry)
Definition: knewstuff3/core/engine.cpp:514
AccessMode accessMode() const
void uninstall(KNS3::EntryInternal entry)
Uninstalls an entry.
Definition: knewstuff3/core/installation.cpp:526
static QSharedPointer< Cache > getCache(const QString &appName)
Returns an instance of a shared cache for appName That way it is made sure, that there do not exist d...
Definition: cache.cpp:41
QString searchTerm
Definition: knewstuff3/core/provider.h:66
void setSortMode(Provider::SortMode mode)
Definition: knewstuff3/core/engine.cpp:334
void jobStarted(KJob *, const QString &)
bool init(const QString &configfile)
Initializes the engine.
Definition: knewstuff3/core/engine.cpp:96
void install(KNS3::EntryInternal entry, int linkId=1)
Installs an entry's payload file.
Definition: knewstuff3/core/engine.cpp:390
Definition: knewstuff3/entry.h:64
virtual QString id() const =0
A unique Id for this provider (the url in most cases)
void vote(const EntryInternal &entry, uint rating)
Definition: knewstuff3/core/engine.cpp:508
virtual void setCachedEntries(const KNS3::EntryInternal::List &cachedEntries)=0
QStringList categories
Definition: knewstuff3/core/provider.h:67
void setCategoriesFilter(const QStringList &categories)
Set the categories that will be included in searches.
Definition: knewstuff3/core/engine.cpp:328
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
Definition: knewstuff3/entry.h:65
void signalIdle(const QString &)
void signalResetView()
void setStatus(Entry::Status status)
Returns the checksum for the entry.
Definition: entryinternal.cpp:372
static void invokeBrowser(const QString &url, const QByteArray &startup_id=QByteArray())
T readEntry(const QString &key, const T &aDefault) const
void install(KNS3::EntryInternal entry)
Installs an entry's payload file.
Definition: knewstuff3/core/installation.cpp:149
void loadPreview(const KNS3::EntryInternal &entry, EntryInternal::PreviewType type)
Definition: knewstuff3/core/engine.cpp:469
QString email() const
Retrieve the author's email address.
Definition: knewstuff3/core/author.cpp:40
Definition: knewstuff3/entry.h:62
void uninstall(KNS3::EntryInternal entry)
Uninstalls an entry.
Definition: knewstuff3/core/engine.cpp:432
void signalEntryChanged(const KNS3::EntryInternal &entry)
QStringList list(const QString &fileClass)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.