KNewStuff
quickengine.cpp
39 static KNSCore::EntryWrapper *getChangedEntry(QQmlListProperty<KNSCore::EntryWrapper> *property, int i)
170 // This is not an error message in the proper sense, and the message is not intended to look like an error (as there is really
171 // nothing the user can do to fix it, and we just tell them so they're not wondering what's wrong)
173 i18nc("An informational message which is shown to inform the user they are not authorized to use GetHotNewStuff functionality",
174 "You are not authorized to Get Hot New Stuff. If you think this is in error, please contact the person in charge of your permissions."));
300 return QQmlListProperty<KNSCore::EntryWrapper>(this, d.get(), &EnginePrivate::getChangedEntriesCount, &EnginePrivate::getChangedEntry);
A model which shows the categories found in an Engine.
Definition: categoriesmodel.h:21
bool hasAdoptionCommand() const
Whether or not an adoption command exists for this engine.
Definition: engine.cpp:1052
void signalEntryEvent(const EntryInternal &entry, EntryInternal::EntryEvent event)
This is fired for any event related directly to a single EntryInternal instance.
Q_EMITQ_EMIT
int count(const T &value) const const
QString searchTerm() const
The search term for the current search (empty if none is set)
Definition: engine.cpp:660
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
bool isLoading
Whether or not the engine is performing its initial loading operations.
Definition: quickengine.h:40
ErrorCode
An enumeration of specific error conditions which might occur and which users of KNewStuff would want...
Definition: errorcode.h:24
KCALUTILS_EXPORT QString errorMessage(const KCalendarCore::Exception &exception)
Wraps a KNSCore::EntryInternal in a QObject for passing through Qt Quick.
Definition: entrywrapper.h:38
virtual bool event(QEvent *e)
void setCategoriesFilter(const QStringList &categories)
Set the categories that will be included in searches.
Definition: engine.cpp:579
Q_SIGNAL void busyStateChanged()
Signal gets emitted when the busy state changes.
KCONFIGCORE_EXPORT bool authorize(const QString &action)
void setFilter(Provider::Filter filter)
Set a filter for results (defaults to none), which will allow you to show only installed entries,...
Definition: engine.cpp:599
Provider::Filter filter() const
The result filter set on the current request.
Definition: engine.cpp:608
void signalMessage(const QString &message)
Indicates a message to be added to the ui's log, or sent to a messagebox.
bool isValid(QStringView ifopt)
void signalErrorCode(const KNSCore::ErrorCode &errorCode, const QString &message, const QVariant &metadata)
Fires in the case of any critical or serious errors, such as network or API problems.
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QStringList categories() const
The list of the server-side names of the categories handled by this engine instance.
Definition: engine.cpp:327
QStringList categoriesFilter() const
The list of categories searches will actually show results from.
Definition: engine.cpp:332
QString message
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 03:55:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 03:55:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.