KUserFeedback::AuditLogUiController Class
class KUserFeedback::AuditLogUiControllerWidget/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 |
Properties
- hasLogEntries : const bool
- logEntryModel : QAbstractItemModel* const
Public Functions
AuditLogUiController(QObject *parent = nullptr) | |
bool | hasLogEntries() const |
QString | logEntry(const QDateTime &dt) const |
QAbstractItemModel * | logEntryModel() const |
Public Slots
void | clear() |
Signals
void | logEntryCountChanged() |
Detailed Description
Property Documentation
[read-only]
hasLogEntries : const bool
Returns true
if there are log entries to display.
Access functions:
bool | hasLogEntries() const |
Notifier signal:
void | logEntryCountChanged() |
[read-only]
logEntryModel : QAbstractItemModel* const
Returns a model listing all log entries.
Access functions:
QAbstractItemModel * | logEntryModel() const |
Member Function Documentation
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.