OTX-Runtime for C++  
OpenTestSystem::Otx::Runtime::Api::Custom::IBasicScreenImplementation Class Referenceabstract

Allows users to implement their own basic Screens, consisting of ConfirmDialog, InputDialog, ChoiceDialog and ShowDocumentDialog. More...

#include <IBasicScreenImplementation.h>

Public Member Functions

virtual int ChoiceDialog (const std::string &title, const std::string &message, const std::list< std::string > &options, const int &_default)=0
 Invoked when a ChoiceDialog occurs in OTX-Runtime. More...
 
virtual ConfirmationTypes ConfirmDialog (const std::string &title, const std::string &message, const MessageTypes &messageType)=0
 Invoked when a ConfirmDialog occurs in OTX-Runtime. More...
 
virtual std::string InputDialog (const std::string &title, const std::string &message, const std::string &initValue, const std::string &instruction, const std::string &restriction)=0
 Invoked when an InputDialog occurs in OTX-Runtime. More...
 
virtual void ShowDocumentDialog (const std::string &title, const std::string &message, const std::string &document)=0
 Invoked when a ShowDocumentDialog occurs in OTX-Runtime. More...
 

Detailed Description

Allows users to implement their own basic Screens, consisting of ConfirmDialog, InputDialog, ChoiceDialog and ShowDocumentDialog.

Member Function Documentation

◆ ChoiceDialog()

virtual int OpenTestSystem::Otx::Runtime::Api::Custom::IBasicScreenImplementation::ChoiceDialog ( const std::string &  title,
const std::string &  message,
const std::list< std::string > &  options,
const int &  _default 
)
pure virtual

Invoked when a ChoiceDialog occurs in OTX-Runtime.

Parameters
titleTitle of the dialog.
messageMessage of the dialog.
optionsOptions specifies a list of strings which contains the possible options that shall be displayed.
_defaultDefault represents the index of the option which shall be preselected in the dialog.
Returns
Selection from the user will be sent to OTX-Runtime.

◆ ConfirmDialog()

virtual ConfirmationTypes OpenTestSystem::Otx::Runtime::Api::Custom::IBasicScreenImplementation::ConfirmDialog ( const std::string &  title,
const std::string &  message,
const MessageTypes messageType 
)
pure virtual

Invoked when a ConfirmDialog occurs in OTX-Runtime.

Parameters
titleTitle of the dialog.
messageMessage of the dialog.
messageTypeType of message and the buttons that shall be shown to the user to confirm the action.
Returns
Selection from the user will be sent to OTX-Runtime.

◆ InputDialog()

virtual std::string OpenTestSystem::Otx::Runtime::Api::Custom::IBasicScreenImplementation::InputDialog ( const std::string &  title,
const std::string &  message,
const std::string &  initValue,
const std::string &  instruction,
const std::string &  restriction 
)
pure virtual

Invoked when an InputDialog occurs in OTX-Runtime.

Parameters
titleTitle of the dialog.
messageMessage of the dialog.
initialValueInitial value represents the string value that shall be used to initialize the dialog's input field.
instructionInstruction is an additional message to provide information regarding the expected value that should be introduced.
restrictionRestriction shall be formulated by a regular expression which validates the input data.
Returns
Returned value will be sent to OTX-Runtime.

◆ ShowDocumentDialog()

virtual void OpenTestSystem::Otx::Runtime::Api::Custom::IBasicScreenImplementation::ShowDocumentDialog ( const std::string &  title,
const std::string &  message,
const std::string &  document 
)
pure virtual

Invoked when a ShowDocumentDialog occurs in OTX-Runtime.

Parameters
titleTitle of the dialog.
messageMessage of the dialog.
documentThis identifies the external document that should be shown.

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