ORE Studio 0.0.4
Loading...
Searching...
No Matches
Signals | Public Member Functions | List of all members
AccountHistoryDialog Class Reference

Widget for displaying account version history. More...

#include <AccountHistoryDialog.hpp>

Inherits QWidget.

Collaboration diagram for AccountHistoryDialog:
Collaboration graph

Signals

void statusChanged (const QString &message)
 
void errorOccurred (const QString &error_message)
 
void openVersionRequested (const iam::domain::account &account, int versionNumber)
 Emitted when user requests to open a version in read-only mode.
 
void revertVersionRequested (const iam::domain::account &account)
 Emitted when user requests to revert to a selected version.
 

Public Member Functions

 AccountHistoryDialog (QString username, ClientManager *clientManager, QWidget *parent=nullptr)
 
void loadHistory ()
 
QSize sizeHint () const override
 
void markAsStale ()
 Mark the history data as stale and reload.
 
QString username () const
 Returns the username of the account.
 

Detailed Description

Widget for displaying account version history.

Member Function Documentation

◆ markAsStale()

void markAsStale ( )

Mark the history data as stale and reload.

Called when a notification is received indicating this account has changed on the server. Automatically reloads the history data.

◆ openVersionRequested

void openVersionRequested ( const iam::domain::account account,
int  versionNumber 
)
signal

Emitted when user requests to open a version in read-only mode.

Parameters
accountThe account data at the selected version.
versionNumberThe version number being viewed.

◆ revertVersionRequested

void revertVersionRequested ( const iam::domain::account account)
signal

Emitted when user requests to revert to a selected version.

Parameters
accountThe account data to revert to.