KNewStuff
enginebase.h
81 Q_PROPERTY(ContentWarningType contentWarningType READ contentWarningType NOTIFY contentWarningTypeChanged)
223 * TagFilter=ghns_excluded!=1,data##mimetype==application/cbr+zip,data##mimetype==application/cbr+rar
304 * @param rating A number from 0 to 100, 50 being neutral, 0 being most negative and 100 being most positive.
426 * @param metadata Any additional data which might be helpful to further work out the details of the error (see KNSCore::Entry::ErrorCode for the
431 void signalErrorCode(KNSCore::ErrorCode::ErrorCode errorCode, const QString &message, const QVariant &metadata);
A model which takes care of the comments for a single Entry.
Definition core/commentsmodel.h:46
bool uploadEnabled
Whether or not the configuration says that the providers are expected to support uploading.
Definition enginebase.h:71
@ Static
Content consists of static assets only Installation should not pose a security risk.
Definition enginebase.h:392
@ Executables
Content may contain scripts or other executable code Users should be warned to treat it like any othe...
Definition enginebase.h:397
void signalCategoriesMetadataLoded(const QList< Provider::CategoryMetadata > &categories)
QList< Provider::SearchPreset > searchPresets()
Definition enginebase.cpp:306
void signalErrorCode(KNSCore::ErrorCode::ErrorCode errorCode, const QString &message, const QVariant &metadata)
Fires in the case of any critical or serious errors, such as network or API problems.
void addTagFilter(const QString &filter)
Add a single filter entry to the entry tag filter.
Definition enginebase.cpp:438
bool userCanBecomeFan(const Entry &entry)
Whether or not the user is allowed to become a fan of a particular entry.
Definition enginebase.cpp:492
QStringList categories() const
The list of the server-side names of the categories handled by this engine instance.
Definition enginebase.cpp:284
virtual void addProvider(QSharedPointer< KNSCore::Provider > provider)
Add a provider and connect it to the right slots.
Definition enginebase.cpp:337
QList< QSharedPointer< Provider > > providers() const
Definition enginebase.cpp:553
void becomeFan(const Entry &entry)
This will mark the user who is currently authenticated as a fan of the entry passed to the function.
Definition enginebase.cpp:498
bool hasAdoptionCommand() const
Whether or not an adoption command exists for this engine.
Definition enginebase.cpp:526
QSharedPointer< Cache > cache() const
Get the entries cache for this engine (note that it may be null if the engine is not yet initialized)...
Definition enginebase.cpp:419
QList< SearchPreset > searchPresets2()
Definition enginebase.cpp:321
void setTagFilter(const QStringList &filter)
Set a filter for results, which filters out all entries which do not match the filter,...
Definition enginebase.cpp:425
Q_SIGNAL void contentWarningTypeChanged()
Emitted after the initial config load.
QSharedPointer< Provider > provider(const QString &providerId) const
The Provider instance with the passed ID.
Definition enginebase.cpp:505
Q_SIGNAL void uploadEnabledChanged()
Fired when the uploadEnabled property changes.
Q_SIGNAL void useLabelChanged()
Signal gets emitted when the useLabel property changes.
bool userCanVote(const Entry &entry)
Whether or not a user is able to vote on the passed entry.
Definition enginebase.cpp:480
static QStringList availableConfigFiles()
List of all available config files.
Definition enginebase.cpp:102
QStringList downloadTagFilter() const
Gets the current downloadlink tag filter list.
Definition enginebase.cpp:454
void providersChanged()
Fired whenever the list of providers changes.
void signalSearchPresetsLoaded(const QList< Provider::SearchPreset > &presets)
Fires when the engine has loaded search presets.
QString useLabel
Text that should be displayed for the adoption button, this defaults to "Use".
Definition enginebase.h:63
QList< CategoryMetadata > categoriesMetadata2()
The list of metadata for the categories handled by this engine instance.
Definition enginebase.cpp:300
void vote(const Entry &entry, uint rating)
Cast a vote on the passed entry.
Definition enginebase.cpp:486
QList< Attica::Provider * > atticaProviders() const
Definition enginebase.cpp:467
QList< Provider::CategoryMetadata > categoriesMetadata()
Definition enginebase.cpp:290
ResultsStream * search(const KNSCore::Provider::SearchRequest &request)
Returns a stream object that will fulfill the request.
Definition enginebase.cpp:541
void addDownloadTagFilter(const QString &filter)
Add a single filter entry to the download tag filter.
Definition enginebase.cpp:459
void signalSearchPresetsLoaded(const QList< KNSCore::SearchPreset > &presets)
Fires when the engine has loaded search presets.
QSharedPointer< Provider > defaultProvider() const
Return the first provider in the providers list (usually the default provider)
Definition enginebase.cpp:512
ContentWarningType contentWarningType
Definition enginebase.h:81
void setDownloadTagFilter(const QStringList &filter)
Sets a filter to be applied to the downloads for an entry.
Definition enginebase.cpp:446
void signalMessage(const QString &message)
Indicates a message to be added to the ui's log, or sent to a messagebox.
The ResultsStream is returned by EngineBase::search.
Definition resultsstream.h:34
Describes a search request that may come from the provider.
Definition searchpreset.h:25
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALQ_SIGNAL
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:50:44 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:50:44 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.