Software and Services, Portable Libraries  2019.Mar.01
A library for managing digital certificates
MainWindow Class Reference

MainWindow - Window object for the SaSPasswordSafe application. More...

#include </home/doug/src/SoftwareAndServices/libSaSSecure/Qt/Qt5/SaSPasswordSafe/MainWindow.hpp>

+ Inheritance diagram for MainWindow:
+ Collaboration diagram for MainWindow:

Public Slots

void _AddEmptyRow ()
 _AddNewItem() - Call to add a new empty row in the table. More...
 
void _LoadTable ()
 _LoadTable() - Load the table with the values. More...
 
void _OpenSafe ()
 _OpenSafe - Ask for, and open a safe. More...
 
void _RemoveExistingItem ()
 _RemoveExistingItem() - Remove the currently selected row and its entries from the password safe. More...
 
void _Save ()
 _Save() - Save the view to the password safe. More...
 
void AboutClicked ()
 AboutClicked User pressed the ABOUT menu item. More...
 
void AddUpnsForRealm (RealmTree &ParentItem, const char *RealmName)
 AddUpnsForRealm Add the UPNs to Item in the RealmUpnTree. More...
 
void closeEvent (QCloseEvent *Event)
 MainWindow::closeEvent Attempt to catch the user exiting the app by pressing 'X' on window frame. More...
 
void ExitApplication ()
 ExitApplication - Exit the application. More...
 
bool FillRealmTree ()
 FillRealmTree - Fill the RealmUpnTree with the values accessable to the currently logged in UPN. More...
 
void HelpClicked ()
 HelpClicked User pressed the HELP menu item. More...
 
bool LoginApp ()
 LoginApp - Login the application to the UPN-DB. More...
 
void SwitchUpnDb ()
 SwitchUpnDb - Disconnects UPN-DB, then prompts for new connection details, then calls SwitchUser(). More...
 
void SwitchUser ()
 SwitchUser - Logout the current user, and prompt for login. More...
 
void TreeItemWasClicked (QTreeWidgetItem *Item, int Col)
 ItemWasClicked - Called when any item is clicked. More...
 

Public Member Functions

 MainWindow (QWidget *parent=nullptr)
 
 MainWindow (QWidget *parent=0)
 
 MainWindow (QWidget *parent=0)
 
 MainWindow (QWidget *Parent=NULL)
 MainWindow - Constructor. More...
 
 MainWindow (QWidget *Parent=NULL)
 MainWindow Main window object. More...
 
void retranslateUi (QMainWindow *SaSAdminMainWindow)
 
void retranslateUi (QMainWindow *SaSAdminMainWindow)
 
void setupUi (QMainWindow *SaSAdminMainWindow)
 
void setupUi (QMainWindow *SaSAdminMainWindow)
 
void ViewRealm (RealmTree *RelmRec)
 ViewRealm View the Realm in the detail pane. More...
 
void ViewUpn (UpnListItem *UpnRec)
 ViewUpn View the UPN in the detail pane. More...
 

Public Attributes

QAction * ActionAbout
 
QAction * ActionExit
 
QAction * ActionHelp
 
QAction * ActionLogin_Settings
 
QAction * ActionServer_Settings
 
QAction * ActionUser_Settings
 
QFrame * DetailFrame
 
QFormLayout * DetailLayout
 
QMenu * HelpMenu
 
QLabel * LoginLabel
 
QHBoxLayout * MainLayout
 
QMenuBar * MainMenuBar
 
QStatusBar * MainStatusBar
 
QToolBar * MainToolBar
 
QWidget * MainWidget
 
QMenu * menuSettings
 
QTreeWidget * RealmUpnTree
 
QAction * ServerMenuItem
 
QMenu * SettingsMenu
 
QAction * SwitchUpnDbMenuItem
 
QAction * SwitchUserMenuItem
 
QVBoxLayout * verticalLayout
 

Private Member Functions

void retranslateUi (QMainWindow *PwMainWindow)
 
void setupUi (QMainWindow *PwMainWindow)
 

Private Attributes

QAction * actionOpen_Default_Safe
 
QPushButton * AddButton
 
QHBoxLayout * ButtonLayout
 
QWidget * CentralWidget
 
QFormLayout * formLayout
 
QVBoxLayout * MainLayout
 
QToolBar * MainToolBar
 
QMenu * Menu_File
 
QAction * MenuAction_Exit
 
QAction * MenuAction_New
 
QAction * MenuAction_Open
 
QAction * MenuAction_Save
 
QAction * MenuActionSave_As
 
QMenuBar * MenuBar
 
QTableWidget * PwTable
 
QPushButton * RemoveButton
 
QPushButton * SaveButton
 
QStatusBar * StatusBar
 
QLabel * TableLabel
 

Detailed Description

MainWindow - Window object for the SaSPasswordSafe application.

The MainWindow class.

Definition at line 49 of file libSaSSecure/Qt/Qt5/SaSPasswordSafe/MainWindow.hpp.

Constructor & Destructor Documentation

◆ MainWindow() [1/2]

MainWindow::MainWindow ( QWidget *  Parent = NULL)
explicit

MainWindow - Constructor.

Parameters
ParentParent object or NULL.

◆ MainWindow() [2/2]

MainWindow::MainWindow ( QWidget *  Parent = NULL)
explicit

MainWindow Main window object.

Parameters
parentThe partent object, or NULL.

Member Function Documentation

◆ _AddEmptyRow

void MainWindow::_AddEmptyRow ( )
slot

_AddNewItem() - Call to add a new empty row in the table.

When there is already an empty row, this method will return without adding a new row.

◆ _LoadTable

void MainWindow::_LoadTable ( )
slot

_LoadTable() - Load the table with the values.

◆ _OpenSafe

void MainWindow::_OpenSafe ( )
slot

_OpenSafe - Ask for, and open a safe.

◆ _RemoveExistingItem

void MainWindow::_RemoveExistingItem ( )
slot

_RemoveExistingItem() - Remove the currently selected row and its entries from the password safe.

◆ _Save

void MainWindow::_Save ( )
slot

_Save() - Save the view to the password safe.

◆ AboutClicked

void MainWindow::AboutClicked ( )
slot

AboutClicked User pressed the ABOUT menu item.

◆ AddUpnsForRealm

void MainWindow::AddUpnsForRealm ( RealmTree ParentItem,
const char *  RealmName 
)
slot

AddUpnsForRealm Add the UPNs to Item in the RealmUpnTree.

Parameters
ParentItemThe RealmTree item parent.
RealmNameThe name of the realm this new item is for.

◆ closeEvent

void MainWindow::closeEvent ( QCloseEvent *  Event)
slot

MainWindow::closeEvent Attempt to catch the user exiting the app by pressing 'X' on window frame.

Parameters
EventThe event caught.

◆ ExitApplication

void MainWindow::ExitApplication ( )
slot

ExitApplication - Exit the application.

◆ FillRealmTree

bool MainWindow::FillRealmTree ( )
slot

FillRealmTree - Fill the RealmUpnTree with the values accessable to the currently logged in UPN.

Returns
true if anything found.

◆ HelpClicked

void MainWindow::HelpClicked ( )
slot

HelpClicked User pressed the HELP menu item.

◆ LoginApp

bool MainWindow::LoginApp ( )
slot

LoginApp - Login the application to the UPN-DB.

This logs in the 'application' admin (if any for this app).

Returns
true when sucessful, else returns false.

◆ SwitchUpnDb

void MainWindow::SwitchUpnDb ( )
slot

SwitchUpnDb - Disconnects UPN-DB, then prompts for new connection details, then calls SwitchUser().

◆ SwitchUser

void MainWindow::SwitchUser ( )
slot

SwitchUser - Logout the current user, and prompt for login.

◆ TreeItemWasClicked

void MainWindow::TreeItemWasClicked ( QTreeWidgetItem *  Item,
int  Col 
)
slot

ItemWasClicked - Called when any item is clicked.

Parameters
ItemThe item that was clicked.
ColThe column that was clicked.

◆ ViewRealm()

void MainWindow::ViewRealm ( RealmTree RelmRec)

ViewRealm View the Realm in the detail pane.

Parameters
RelmRecThe item clicked.

◆ ViewUpn()

void MainWindow::ViewUpn ( UpnListItem UpnRec)

ViewUpn View the UPN in the detail pane.

Parameters
ItemThe item clicked.

The documentation for this class was generated from the following files: