|
WD
|
#include <webdriver_view_factory.h>


Public Member Functions | |
| ViewCreator () | |
| virtual | ~ViewCreator () |
| template<class C > | |
| void | RegisterViewClass (const std::string &id) |
| virtual bool | CreateViewByClassName (const Logger &logger, const std::string &className, const Point *position, const Size *size, ViewHandle **view) const =0 |
| virtual bool | CreateViewForUrl (const Logger &logger, const std::string &url, const Point *position, const Size *size, ViewHandle **view) const =0 |
Protected Types | |
| typedef std::map< std::string, CreateViewMethod > | FactoryMap |
Protected Attributes | |
| FactoryMap | factory |
base class for custom view's creators
|
protected |
| webdriver::ViewCreator::ViewCreator | ( | ) |
|
inlinevirtual |
|
pure virtual |
creates new view of specified class
| [in] | logger | |
| [in] | className | requested class name |
| [in] | position | - desired position |
| [in] | size | - desired size |
| [out] | view | created view. |
Implemented in webdriver::QWebViewCreator, webdriver::QQmlViewCreator, webdriver::Quick2ViewCreator, and webdriver::QWidgetViewCreator.
|
pure virtual |
creates new view that can handle specified url
| [in] | logger | |
| [in] | url | url to handle |
| [in] | position | - desired position |
| [in] | size | - desired size |
| [out] | view | created view. |
Implemented in webdriver::QWebViewCreator, webdriver::QQmlViewCreator, webdriver::Quick2ViewCreator, and webdriver::QWidgetViewCreator.
|
inline |
register class for specific class name
| <C> | class for view |
| id | class name |
|
protected |