WD
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
webdriver::ViewFactory Class Reference

#include <webdriver_view_factory.h>

Public Member Functions

void CreateViewByClassName (const Logger &logger, const std::string &className, ViewHandle **view) const
 
void CreateViewByClassName (const Logger &logger, const std::string &className, const Point *position, const Size *size, ViewHandle **view) const
 
void CreateViewForUrl (const Logger &logger, const std::string &url, ViewHandle **view) const
 
void CreateViewForUrl (const Logger &logger, const std::string &url, const Point *position, const Size *size, ViewHandle **view) const
 
void AddViewCreator (ViewCreator *creator)
 

Static Public Member Functions

static ViewFactoryGetInstance ()
 

Detailed Description

This class used for creating new views.

Member Function Documentation

void webdriver::ViewFactory::AddViewCreator ( ViewCreator creator)

add new view's creator

Parameters
creatorpointer to custom creator. No need to delete object
void webdriver::ViewFactory::CreateViewByClassName ( const Logger logger,
const std::string &  className,
ViewHandle **  view 
) const

creates new view of specified class

Parameters
[in]logger
[in]classNamerequested class name
[out]viewcreated view.
void webdriver::ViewFactory::CreateViewByClassName ( const Logger logger,
const std::string &  className,
const Point position,
const Size size,
ViewHandle **  view 
) const

creates new view of specified class

Parameters
[in]logger
[in]classNamerequested class name
[in]positiondesired window position
[in]sizedesired window size
[out]viewcreated view.
void webdriver::ViewFactory::CreateViewForUrl ( const Logger logger,
const std::string &  url,
ViewHandle **  view 
) const

creates new view that can handle specified url with specified window sixe and position

Parameters
[in]logger
[in]urlurl to handle
[out]viewcreated view.
void webdriver::ViewFactory::CreateViewForUrl ( const Logger logger,
const std::string &  url,
const Point position,
const Size size,
ViewHandle **  view 
) const

creates new view that can handle specified url with specified window sixe and position

Parameters
[in]logger
[in]urlurl to handle
[in]positiondesired window position
[in]sizedesired window size
[out]viewcreated view.
static ViewFactory* webdriver::ViewFactory::GetInstance ( )
static

Returns the singleton instance.


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