VICI  0.11.815
Visual Chart Interpreter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
VICI::gth::Adaptor Class Referenceabstract

Defines an abstract base class for widget adaptors. More...

#include <vici/libgth.h>

Inheritance diagram for VICI::gth::Adaptor:
VICI::gth::AdaptorST< wt > VICI::gth::AdaptorT< wt, T >

Public Member Functions

 Adaptor (csr name, GTHTest *gth)
 Constructor.
 
virtual ~Adaptor ()
 Destructor.
 
virtual std::string action (csr tcname, csr cmnd, const ParamList &params)=0
 Interpreter function. More...
 
virtual VICI::gth::WidgetType getType ()=0
 Get the type of the adaptor. More...
 
csr getWidgetName ()
 Get the name of the widget.
 

Protected Member Functions

void mouseDoubleClick (QWidget *widget, Qt::MouseButton button, Qt::KeyboardModifiers stateKey=0, QPoint pos=QPoint(), int delay=-1)
 Utility functions.
 

Protected Attributes

GTHTestgthTest
 Reference to the owner.
 
std::string widgetName
 The name of the widget as set when it was registered.
 

Detailed Description

Defines an abstract base class for widget adaptors.

The adaptor objects contain simple command interpreters that modify or access the contained widget (or other object)

Member Function Documentation

virtual std::string VICI::gth::Adaptor::action ( csr  tcname,
csr  cmnd,
const ParamList params 
)
pure virtual

Interpreter function.

Parameters
tcnameThe name of the test case.
cmndThe type of action to perform
paramsAny additional parameters for the command
Returns
Either OK or some value extracted from the widget

Implemented in VICI::gth::AdaptorT< wt, T >.

virtual VICI::gth::WidgetType VICI::gth::Adaptor::getType ( )
pure virtual

Get the type of the adaptor.

Returns
The WidgetType

Implemented in VICI::gth::AdaptorT< wt, T >.


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