KUserFeedback
auditloguicontroller.cpp
113 d->path = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation) + QStringLiteral("/kuserfeedback/audit/");
116 connect(d->logEntryModel, &QAbstractItemModel::modelReset, this, &AuditLogUiController::logEntryCountChanged);
153 const QString fn = d->path + dt.toString(QStringLiteral("yyyyMMdd-hhmmss")) + QStringLiteral(".log");
183 e.mode = static_cast<Provider::TelemetryMode>(modeEnum.keyToValue(obj.value(QLatin1String("telemetryMode")).toString().toUtf8().constData()));
void logEntryCountChanged()
Change notification for the hasLogEntries property.
QAbstractItemModel * logEntryModel
Returns a model listing all log entries.
Definition auditloguicontroller.h:32
Q_INVOKABLE QString logEntry(const QDateTime &dt) const
Returns a formatted text for display of the specified log entry.
Definition auditloguicontroller.cpp:151
bool hasLogEntries
Returns true if there are log entries to display.
Definition auditloguicontroller.h:34
QString path(const QString &relativePath)
const QList< QKeySequence > & reload()
Classes for integrating telemetry collection, survey targeting, and contribution encouragenemt and co...
Definition surveytargetexpression.h:16
void beginResetModel()
void endResetModel()
void modelReset()
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
QDateTime fromString(QStringView string, QStringView format, QCalendar cal)
QString toString(QStringView format, QCalendar cal) const const
Files
bool open(FILE *fh, OpenMode mode, FileHandleFlags handleFlags)
iterator insert(const Key &key, const T &value)
QString errorString() const const
QByteArray readAll()
ReadOnly
QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error)
QByteArray toJson(JsonFormat format) const const
QString toString(QDate date, FormatType format) const const
int row() const const
Q_OBJECTQ_OBJECT
QObject * parent() const const
QString tr(const char *sourceText, const char *disambiguation, int n)
AppLocalDataLocation
QString writableLocation(StandardLocation type)
QString arg(Args &&... args) const const
QString fromUtf8(QByteArrayView str)
QString & remove(QChar ch, Qt::CaseSensitivity cs)
void reserve(qsizetype size)
DisplayRole
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.