KUserFeedback::AuditLogUiController Class
Widget/QtQuick-independent logic and data for the audit log browser UI. More...
- Header:
#include <KUserFeedback/AuditLogUiController> - CMake:
find_package(KF6 REQUIRED COMPONENTS UserFeedbackCore)
target_link_libraries(mytarget PRIVATE KF6::UserFeedbackCore) - Inherits: QObject
List of all members, including inherited members
Properties
Public Functions
- AuditLogUiController(QObject *parent = nullptr)
- bool hasLogEntries() const
- QString logEntry(const QDateTime &dt) const
- QAbstractItemModel *logEntryModel() const
Public Slots
Signals
Detailed Description
Property Documentation
[read-only] hasLogEntries : bool
Returns true if there are log entries to display.
Access functions:
boolhasLogEntries() const
Notifier signal:
voidlogEntryCountChanged()
[read-only] logEntryModel : QAbstractItemModel* const
Returns a model listing all log entries.
Access functions:
QAbstractItemModel*logEntryModel() const
Member Function Documentation
[explicit] AuditLogUiController::AuditLogUiController(QObject *parent = nullptr)
[slot] void AuditLogUiController::clear()
Delete all audit log entries.
bool AuditLogUiController::hasLogEntries() const
Returns true if there are log entries to display.
Note: Getter function for property hasLogEntries.
[invokable] QString AuditLogUiController::logEntry(const QDateTime &dt) const
Returns a formatted text for display of the specified log entry.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[signal] void AuditLogUiController::logEntryCountChanged()
Change notification for the hasLogEntries property.
Note: Notifier signal for property hasLogEntries.
QAbstractItemModel *AuditLogUiController::logEntryModel() const
Returns a model listing all telemetry data submission events.
Qt::UserRole contains the timestamp of the log entry for use in logEntry().
Note: Getter function for property logEntryModel.