OTX-Runtime for C++  
ICustomScreenImplementation.h
1 #ifndef OpenTestSystem_Otx_Runtime_Api_Custom_ICustomScreenImplementation_H
2 #define OpenTestSystem_Otx_Runtime_Api_Custom_ICustomScreenImplementation_H
3 
4 #include "ApiDefs.h"
5 #include <string>
6 #include <vector>
7 #include <memory>
8 #include <list>
9 #include <map>
10 
11 namespace OpenTestSystem { namespace Otx { namespace Runtime { namespace Api { namespace DataTypes {
12  class Object;
13 }}}}}
14 
15 namespace OpenTestSystem { namespace Otx { namespace Runtime { namespace Api {
16  class IRuntimeContext;
17 }}}}
18 using namespace OpenTestSystem::Otx::Runtime::Api;
19 
20 namespace OpenTestSystem { namespace Otx { namespace Runtime { namespace Api { namespace Custom { namespace CustomScreenImplementation {
21  class IScreenParameter;
22  class IScreenHandle;
23 }}}}}}
24 
25 namespace OpenTestSystem { namespace Otx { namespace Runtime { namespace Api { namespace Custom {
26 
33  class API_EXPORTS ICustomScreenImplementation {
34  public:
35  virtual ~ICustomScreenImplementation() {}
43  virtual void OpenScreen(std::shared_ptr<IRuntimeContext> runtimeContext, std::shared_ptr<CustomScreenImplementation::IScreenHandle> screen, std::vector<std::shared_ptr<CustomScreenImplementation::IScreenParameter>> parameters, bool modal) = 0;
44 
49  virtual void HighlightScreen(std::shared_ptr<CustomScreenImplementation::IScreenHandle> screen) = 0;
50 
55  virtual void CloseScreen(std::shared_ptr<CustomScreenImplementation::IScreenHandle> screen) = 0;
56 
61  virtual bool ScreenIsOpen(std::shared_ptr<CustomScreenImplementation::IScreenHandle> screen) = 0;
62 
69  virtual void UpdateScreenParameterValues(std::shared_ptr<CustomScreenImplementation::IScreenHandle> screen, std::vector<std::string> parameterNames, std::shared_ptr<DataTypes::Object> value) = 0;
70 
75  virtual void CloseAll(std::shared_ptr<IRuntimeContext> runtimeContext) = 0;
76  };
77 }}}}}
78 
79 #endif
Represents an handle to an OTX screen instance.
Definition: IScreenHandle.h:22
Base of ScreenParameters.
Definition: IScreenParameter.h:19
Allows users to implement their own Screens.
Definition: ICustomScreenImplementation.h:33
virtual void CloseScreen(std::shared_ptr< CustomScreenImplementation::IScreenHandle > screen)=0
Invoked when a CloseScreen occurs in OTX-Runtime.
virtual bool ScreenIsOpen(std::shared_ptr< CustomScreenImplementation::IScreenHandle > screen)=0
Invoked when a ScreenIsOpen occurs in OTX-Runtime.
virtual void HighlightScreen(std::shared_ptr< CustomScreenImplementation::IScreenHandle > screen)=0
Invoked when a HighlightScreen occurs in OTX-Runtime.
virtual void UpdateScreenParameterValues(std::shared_ptr< CustomScreenImplementation::IScreenHandle > screen, std::vector< std::string > parameterNames, std::shared_ptr< DataTypes::Object > value)=0
Invoked when one ore more ScreenParameters was changed in OTX-Runtime to the same value.
virtual void OpenScreen(std::shared_ptr< IRuntimeContext > runtimeContext, std::shared_ptr< CustomScreenImplementation::IScreenHandle > screen, std::vector< std::shared_ptr< CustomScreenImplementation::IScreenParameter >> parameters, bool modal)=0
Invoked when an OpenScreen occurs in OTX-Runtime.
virtual void CloseAll(std::shared_ptr< IRuntimeContext > runtimeContext)=0
The log file related to the IRuntimeContext should be closed
Contains information of a Runner instance.
Definition: IRuntimeContext.h:30
Namespace containing the programming interface for browsing and execution of OTX procedures in own ap...
Definition: ClampState.h:7
Namespace containing all objects related to testing inside automotive industry