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)));
271void 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)));
479void Engine::slotPreviewLoaded(const KNS3::EntryInternal& entry, EntryInternal::PreviewType type)
KConfigGroup group(const char *group)
bool hasGroup(const char *group) const
NoAccess
AccessMode accessMode() const
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
void requestData(int page, int pageSize)
Definition: knewstuff3/core/engine.cpp:372
bool userCanBecomeFan(const EntryInternal &entry)
Definition: knewstuff3/core/engine.cpp:514
void signalBusy(const QString &)
QStringList categoriesFilter() const
Definition: knewstuff3/core/engine.cpp:161
void signalProvidersLoaded()
void signalEntryDetailsLoaded(const KNS3::EntryInternal &entry)
void signalError(const QString &)
void vote(const EntryInternal &entry, uint rating)
Definition: knewstuff3/core/engine.cpp:508
void setCategoriesFilter(const QStringList &categories)
Set the categories that will be included in searches.
Definition: knewstuff3/core/engine.cpp:328
void signalIdle(const QString &)
void signalEntryChanged(const KNS3::EntryInternal &entry)
void signalEntryPreviewLoaded(const KNS3::EntryInternal &, KNS3::EntryInternal::PreviewType)
void install(KNS3::EntryInternal entry, int linkId=1)
Installs an entry's payload file.
Definition: knewstuff3/core/engine.cpp:390
void becomeFan(const EntryInternal &entry)
Definition: knewstuff3/core/engine.cpp:520
void jobStarted(KJob *, const QString &)
bool userCanVote(const EntryInternal &entry)
Definition: knewstuff3/core/engine.cpp:502
void setSearchTerm(const QString &searchString)
Definition: knewstuff3/core/engine.cpp:343
void signalUpdateableEntriesLoaded(const KNS3::EntryInternal::List &entries)
void loadDetails(const KNS3::EntryInternal &entry)
Definition: knewstuff3/core/engine.cpp:463
bool init(const QString &configfile)
Initializes the engine.
Definition: knewstuff3/core/engine.cpp:96
void uninstall(KNS3::EntryInternal entry)
Uninstalls an entry.
Definition: knewstuff3/core/engine.cpp:432
void loadPreview(const KNS3::EntryInternal &entry, EntryInternal::PreviewType type)
Definition: knewstuff3/core/engine.cpp:469
void signalEntriesLoaded(const KNS3::EntryInternal::List &entries)
void setSortMode(Provider::SortMode mode)
Definition: knewstuff3/core/engine.cpp:334
void signalResetView()
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 setStatus(Entry::Status status)
Returns the checksum for the entry.
Definition: entryinternal.cpp:372
QString providerId() const
The id of the provider this entry belongs to.
Definition: entryinternal.cpp:144
void install(KNS3::EntryInternal entry)
Installs an entry's payload file.
Definition: knewstuff3/core/installation.cpp:149
bool readConfig(const KConfigGroup &group)
Definition: knewstuff3/core/installation.cpp:57
void uninstall(KNS3::EntryInternal entry)
Uninstalls an entry.
Definition: knewstuff3/core/installation.cpp:531
virtual QString id() const =0
A unique Id for this provider (the url in most cases)
virtual void setCachedEntries(const KNS3::EntryInternal::List &cachedEntries)=0
virtual QString name() const
Retrieves the common name of the provider.
Definition: knewstuff3/core/provider.cpp:48
void load(const KUrl &url)
Starts asynchronously loading the xml document from the specified URL.
Definition: xmlloader.cpp:39
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
static void invokeMailer(const KUrl &mailtoURL, const QByteArray &startup_id=QByteArray(), bool allowAttachments=false)
static void invokeBrowser(const QString &url, const QByteArray &startup_id=QByteArray())
#define kDebug
#define kWarning
int timeout
QString i18n(const char *text)
QString i18np(const char *sing, const char *plur, const A1 &a1)
group
Definition: atticaprovider.cpp:36
QStringList list(const QString &fileClass)
used to keep track of a search
Definition: knewstuff3/core/provider.h:64
QString searchTerm
Definition: knewstuff3/core/provider.h:66
QStringList categories
Definition: knewstuff3/core/provider.h:67
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.