OTX-Runtime for C++  
IBasicScreenImplementation.h
1 #ifndef OpenTestSystem_Otx_Runtime_Api_Custom_IBasicScreenImplementation_H
2 #define OpenTestSystem_Otx_Runtime_Api_Custom_IBasicScreenImplementation_H
3 
4 #include "ApiDefs.h"
5 #include <string>
6 #include <list>
7 
8 namespace OpenTestSystem { namespace Otx { namespace Runtime { namespace Api {
12  namespace Custom {
17  {
38  };
39 
44  {
57  };
58 
62  class API_EXPORTS IBasicScreenImplementation
63  {
64  public:
65  virtual ~IBasicScreenImplementation(){}
73  virtual ConfirmationTypes ConfirmDialog(const std::string &title, const std::string &message, const MessageTypes &messageType) = 0;
74 
84  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;
85 
94  virtual int ChoiceDialog(const std::string &title, const std::string &message, const std::list<std::string> &options,const int &_default) = 0;
95 
102  virtual void ShowDocumentDialog(const std::string &title, const std::string &message, const std::string &document) = 0;
103  };
104 }}}}}
105 #endif
Allows users to implement their own basic Screens, consisting of ConfirmDialog, InputDialog,...
Definition: IBasicScreenImplementation.h:63
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.
virtual void ShowDocumentDialog(const std::string &title, const std::string &message, const std::string &document)=0
Invoked when a ShowDocumentDialog occurs in OTX-Runtime.
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.
virtual ConfirmationTypes ConfirmDialog(const std::string &title, const std::string &message, const MessageTypes &messageType)=0
Invoked when a ConfirmDialog occurs in OTX-Runtime.
ConfirmationTypes
Enumeration of ConfirmationTypes, see ConfirmDialog
Definition: IBasicScreenImplementation.h:44
@ YesConfirm
Identical to an enumeration element in the OTX standard ISO 13209. A detailed specification can be fo...
Definition: IBasicScreenImplementation.h:48
@ NoConfirm
Identical to an enumeration element in the OTX standard ISO 13209. A detailed specification can be fo...
Definition: IBasicScreenImplementation.h:52
@ CancelConfirm
Identical to an enumeration element in the OTX standard ISO 13209. A detailed specification can be fo...
Definition: IBasicScreenImplementation.h:56
MessageTypes
Enumeration of MessageTypes, see ConfirmDialog
Definition: IBasicScreenImplementation.h:17
@ ErrorMessage
Identical to an enumeration element in the OTX standard ISO 13209. A detailed specification can be fo...
Definition: IBasicScreenImplementation.h:29
@ WarningMessage
Identical to an enumeration element in the OTX standard ISO 13209. A detailed specification can be fo...
Definition: IBasicScreenImplementation.h:25
@ InfoMessage
Identical to an enumeration element in the OTX standard ISO 13209. A detailed specification can be fo...
Definition: IBasicScreenImplementation.h:21
@ YesNoCancelQuestionMessage
Identical to an enumeration element in the OTX standard ISO 13209. A detailed specification can be fo...
Definition: IBasicScreenImplementation.h:37
@ YesNoQuestionMessage
Identical to an enumeration element in the OTX standard ISO 13209. A detailed specification can be fo...
Definition: IBasicScreenImplementation.h:33
Namespace containing all objects related to testing inside automotive industry