#include <ext/app/exttesttools/tasextensioninterface.h>
class TasExtensionInterface |
TasExtensionInterface provides additional services that can be provided for the qttasserver to perform.
Public Member Functions | |
---|---|
virtual | ~TasExtensionInterface() |
pure virtual bool | performCommand(TasCommandModel &, QByteArray &) |
pure virtual QByteArray | traverseApplication(TasCommandModel &) |
TasExtensionInterface implementations will be loaded by the qttasserver when ui state is requested. Implementing classes can add platform specific details such as the ui state.
~TasExtensionInterface | ( | ) | [inline, virtual] |
bool | performCommand | ( | TasCommandModel & | commandModel, |
QByteArray & | response | |||
) | [pure virtual] |
Perform the commands described ib the command model. The requester socket can be used to respond to the caller of the command. Returns false if the command is not handled. When handling a command return true and set the response message to the response QByteArray. Note that only on plugin is allowed to handle a command and respond. So a true returns value will have an affect that no other plugin get's after it.
QByteArray | traverseApplication | ( | TasCommandModel & | commandModel | ) | [pure virtual] |
Provide application ui details not provided by the qt traversers. If the QByteArray returned is null it will not be appended to the response message. Empty implementations should return a null QByteArray.