OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ManageOwner Class Referenceabstract

#include "ManageOwner.h"

Inheritance diagram for ManageOwner:
ot::Dialog ot::QWidgetInterface ManageGroupOwner ManageProjectOwner

Public Slots

void slotShowGroupsWithAccessOnly (void)
 
void slotGroupsFilter (void)
 
void slotGroupsSelection (void)
 
virtual void slotGroupCheckBoxChanged (bool state, int row)=0
 
- Public Slots inherited from ot::Dialog
void close (DialogResult _result)
 
void closeOk (void)
 
void closeYes (void)
 
void closeNo (void)
 
void closeRetry (void)
 
void closeCancel (void)
 

Public Member Functions

 ManageOwner (const std::string &authServerURL, const std::string &assetType, const std::string &assetName, const std::string &ownerName)
 
virtual ~ManageOwner ()
 
- Public Member Functions inherited from ot::Dialog
 Dialog (QWidget *_parent=(QWidget *) nullptr)
 
 Dialog (const DialogCfg &_config, QWidget *_parent=(QWidget *) nullptr)
 
virtual ~Dialog ()
 
virtual QWidget * getQWidget (void) override
 Returns a pointer to the root widget of this object.
 
virtual const QWidget * getQWidget (void) const override
 
DialogResult showDialog (const ShowFlags &_showFlags=ShowFlags(IdealFit))
 Center the dialog on parent and call exec.
 
void setDialogFlag (DialogCfg::DialogFlag _flag, bool _active=true)
 
void setDialogFlags (DialogCfg::DialogFlags _flags)
 
DialogCfg::DialogFlags dialogFlags (void) const
 
DialogResult dialogResult (void) const
 
void setDialogName (const std::string &_name)
 
const std::string & dialogName (void) const
 
const DialogStateFlagsgetDialogState (void) const
 
- Public Member Functions inherited from ot::QWidgetInterface
 QWidgetInterface ()
 
virtual ~QWidgetInterface ()
 
void setOTWidgetFlags (const WidgetFlags &_flags)
 
const WidgetFlagsotWidgetFlags (void) const
 

Protected Member Functions

void fillOwnerList (void)
 
std::string tolower (std::string s)
 
bool hasSuccessful (const std::string &response)
 
bool hasError (const std::string &response)
 
void readUserList (void)
 
 ManageOwner ()=delete
 
 ManageOwner (ManageOwner &)=delete
 
ManageOwneroperator= (ManageOwner &)=delete
 
- Protected Member Functions inherited from ot::Dialog
virtual void keyPressEvent (QKeyEvent *_event) override
 
virtual void mousePressEvent (QMouseEvent *_event) override
 
virtual void mouseMoveEvent (QMouseEvent *_event) override
 
virtual void mouseReleaseEvent (QMouseEvent *_event) override
 
virtual void closeEvent (QCloseEvent *_event) override
 
virtual bool mayCloseDialogWindow (void) const
 
- Protected Member Functions inherited from ot::QWidgetInterface
virtual void otWidgetFlagsChanged (const WidgetFlags &_flags)
 

Protected Attributes

ot::LineEditm_filterGroups
 
ManageOwnerTablem_ownersList
 
std::string m_authServerURL
 
std::string m_assetType
 
std::string m_assetName
 
std::string m_assetOwner
 
ot::CheckBoxm_ownerCheckBox
 
std::list< std::string > m_userList
 

Additional Inherited Members

- Public Types inherited from ot::Dialog
enum  DialogResult {
  Ok , Yes , No , Retry ,
  Cancel
}
 
enum  ShowFlag { DefaultShow = 0 << 0 , CenterOnParent = 1 << 0 , FitOnScreen = 1 << 1 , IdealFit = CenterOnParent | FitOnScreen }
 
enum class  DialogState { NoState = 0 << 0 , MousePressed = 1 << 0 , Closing = 1 << 1 }
 
typedef Flags< ShowFlagShowFlags
 
typedef Flags< DialogStateDialogStateFlags
 

Constructor & Destructor Documentation

◆ ManageOwner() [1/3]

ManageOwner::ManageOwner ( const std::string & authServerURL,
const std::string & assetType,
const std::string & assetName,
const std::string & ownerName )

◆ ~ManageOwner()

ManageOwner::~ManageOwner ( )
virtual

◆ ManageOwner() [2/3]

ManageOwner::ManageOwner ( )
protecteddelete

◆ ManageOwner() [3/3]

ManageOwner::ManageOwner ( ManageOwner & )
protecteddelete

Member Function Documentation

◆ fillOwnerList()

void ManageOwner::fillOwnerList ( void )
protected

◆ hasError()

bool ManageOwner::hasError ( const std::string & response)
protected

◆ hasSuccessful()

bool ManageOwner::hasSuccessful ( const std::string & response)
protected

◆ operator=()

ManageOwner & ManageOwner::operator= ( ManageOwner & )
protecteddelete

◆ readUserList()

void ManageOwner::readUserList ( void )
protected

◆ slotGroupCheckBoxChanged

virtual void ManageOwner::slotGroupCheckBoxChanged ( bool state,
int row )
pure virtualslot

Implemented in ManageGroupOwner, and ManageProjectOwner.

◆ slotGroupsFilter

void ManageOwner::slotGroupsFilter ( void )
slot

◆ slotGroupsSelection

void ManageOwner::slotGroupsSelection ( void )
slot

◆ slotShowGroupsWithAccessOnly

void ManageOwner::slotShowGroupsWithAccessOnly ( void )
slot

◆ tolower()

std::string ManageOwner::tolower ( std::string s)
protected

Member Data Documentation

◆ m_assetName

std::string ManageOwner::m_assetName
protected

◆ m_assetOwner

std::string ManageOwner::m_assetOwner
protected

◆ m_assetType

std::string ManageOwner::m_assetType
protected

◆ m_authServerURL

std::string ManageOwner::m_authServerURL
protected

◆ m_filterGroups

ot::LineEdit* ManageOwner::m_filterGroups
protected

◆ m_ownerCheckBox

ot::CheckBox* ManageOwner::m_ownerCheckBox
protected

◆ m_ownersList

ManageOwnerTable* ManageOwner::m_ownersList
protected

◆ m_userList

std::list<std::string> ManageOwner::m_userList
protected

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