KNewStuff
quickengine.cpp
30 static KNSCore::EntryWrapper *getChangedEntry(QQmlListProperty<KNSCore::EntryWrapper>* property, int i)
102 connect(d->engine, &KNSCore::Engine::signalErrorCode, this, [=](const KNSCore::ErrorCode &errorCode, const QString &message, const QVariant &/*metadata*/) {
141 // 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
142 // nothing the user can do to fix it, and we just tell them so they're not wondering what's wrong)
143 Q_EMIT message(i18nc("An informational message which is shown to inform the user they are not authorized to use GetHotNewStuff functionality", "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."));
263 return QQmlListProperty<KNSCore::EntryWrapper>(this, d, &Private::getChangedEntriesCount, &Private::getChangedEntry);
A model which shows the categories found in an Engine.
Definition: categoriesmodel.h:19
QStringList categories() const
The list of the server-side names of the categories handled by this engine instance.
Definition: engine.cpp:289
void setSearchTerm(const QString &searchString)
Sets a string search term.
Definition: engine.cpp:545
bool hasAdoptionCommand() const
Whether or not an adoption command exists for this engine.
Definition: engine.cpp:934
ErrorCode
An enumeration of specific error conditions which might occur and which users of KNewStuff would want...
Definition: errorcode.h:25
virtual bool event(QEvent *e)
Q_SIGNAL void busyStateChanged()
Signal gets emitted when the busy state changes.
int count(const T &value) const const
QVariant property(const char *name) const const
void setCategoriesFilter(const QStringList &categories)
Set the categories that will be included in searches.
Definition: engine.cpp:497
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString searchTerm() const
The search term for the current search (empty if none is set)
Definition: engine.cpp:557
void signalMessage(const QString &message)
Indicates a message to be added to the ui's log, or sent to a messagebox.
Provider::Filter filter() const
The result filter set on the current request.
Definition: engine.cpp:526
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:517
QFuture< void > filter(Sequence &sequence, KeepFunctor filterFunction)
KCALUTILS_EXPORT QString errorMessage(const KCalendarCore::Exception &exception)
if(recurs()&&!first)
bool isLoading() const
Whether or not the engine is performing its initial loading operations.
KCONFIGCORE_EXPORT bool authorize(const QString &action)
QStringList categoriesFilter() const
The list of categories searches will actually show results from.
Definition: engine.cpp:294
TODO KF6 see above (in short, make this class irrelevant so it can be removed)
Definition: entrywrapper.h:35
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const const
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.
Q_EMITQ_EMIT
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 18 2021 22:43:50 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 18 2021 22:43:50 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.