OSFactory Class Reference

Abstract factory used to instantiate OS specific objects. More...

Inheritance diagram for OSFactory:

Inheritance graph
[legend]
Collaboration diagram for OSFactory:

Collaboration graph
[legend]

Public Types

enum  CursorType_t {
  kDefaultArrow, kResizeNS, kResizeWE, kResizeNWSE,
  kResizeNESW
}

Public Member Functions

virtual bool init ()
 Initialization method overloaded in derived classes.
virtual OSGraphicscreateOSGraphics (int width, int height)=0
 Instantiate an object OSGraphics.
virtual OSLoopgetOSLoop ()=0
 Get the instance of the singleton OSLoop.
virtual void destroyOSLoop ()=0
 Destroy the instance of OSLoop.
virtual void minimize ()=0
 Minimize all the windows.
virtual void restore ()=0
 Restore the minimized windows.
virtual void addInTray ()=0
 Add an icon in the system tray.
virtual void removeFromTray ()=0
 Remove the icon from the system tray.
virtual void addInTaskBar ()=0
 Show the task in the task bar.
virtual void removeFromTaskBar ()=0
 Remove the task from the task bar.
virtual OSTimercreateOSTimer (CmdGeneric &rCmd)=0
 Instantiate an OSTimer with the given command.
virtual OSWindowcreateOSWindow (GenericWindow &rWindow, bool dragDrop, bool playOnDrop, OSWindow *pParent)=0
 Instantiate an object OSWindow.
virtual OSTooltipcreateOSTooltip ()=0
 Instantiate an object OSTooltip.
virtual OSPopupcreateOSPopup ()=0
 Instantiate an object OSPopup.
virtual const string & getDirSeparator () const =0
 Get the directory separator.
virtual const list< string > & getResourcePath () const =0
 Get the resource path.
virtual int getScreenWidth () const =0
 Get the screen size.
virtual int getScreenHeight () const =0
virtual SkinsRect getWorkArea () const =0
 Get the work area (screen area without taskbars).
virtual void getMousePos (int &rXPos, int &rYPos) const =0
 Get the position of the mouse.
virtual void changeCursor (CursorType_t type) const =0
 Change the cursor.
virtual void rmDir (const string &rPath)=0
 Delete a directory recursively.

Static Public Member Functions

static OSFactoryinstance (intf_thread_t *pIntf)
 Get the right instance of OSFactory.
static void destroy (intf_thread_t *pIntf)
 Delete the instance of OSFactory.

Protected Member Functions

 OSFactory (intf_thread_t *pIntf)
virtual ~OSFactory ()

Detailed Description

Abstract factory used to instantiate OS specific objects.

Member Enumeration Documentation

Enumerator:
kDefaultArrow 
kResizeNS 
kResizeWE 
kResizeNWSE 
kResizeNESW 


Constructor & Destructor Documentation

OSFactory::OSFactory ( intf_thread_t pIntf  )  [inline, protected]

virtual OSFactory::~OSFactory (  )  [inline, protected, virtual]


Member Function Documentation

virtual bool OSFactory::init (  )  [inline, virtual]

Initialization method overloaded in derived classes.

It must return false if the init failed.

Reimplemented in MacOSXFactory, Win32Factory, and X11Factory.

Referenced by instance().

OSFactory * OSFactory::instance ( intf_thread_t pIntf  )  [static]

void OSFactory::destroy ( intf_thread_t pIntf  )  [static]

Delete the instance of OSFactory.

References intf_sys_t::p_osFactory, and intf_thread_t::p_sys.

Referenced by Run().

virtual OSGraphics* OSFactory::createOSGraphics ( int  width,
int  height 
) [pure virtual]

virtual OSLoop* OSFactory::getOSLoop (  )  [pure virtual]

Get the instance of the singleton OSLoop.

Implemented in MacOSXFactory, Win32Factory, and X11Factory.

Referenced by Run().

virtual void OSFactory::destroyOSLoop (  )  [pure virtual]

Destroy the instance of OSLoop.

Implemented in MacOSXFactory, Win32Factory, and X11Factory.

Referenced by Run().

virtual void OSFactory::minimize (  )  [pure virtual]

Minimize all the windows.

Implemented in MacOSXFactory, Win32Factory, and X11Factory.

Referenced by CmdMinimize::execute().

virtual void OSFactory::restore (  )  [pure virtual]

Restore the minimized windows.

Implemented in MacOSXFactory, Win32Factory, and X11Factory.

Referenced by CmdRestore::execute().

virtual void OSFactory::addInTray (  )  [pure virtual]

Add an icon in the system tray.

Implemented in MacOSXFactory, Win32Factory, and X11Factory.

Referenced by CmdAddInTray::execute().

virtual void OSFactory::removeFromTray (  )  [pure virtual]

Remove the icon from the system tray.

Implemented in MacOSXFactory, Win32Factory, and X11Factory.

Referenced by CmdRemoveFromTray::execute().

virtual void OSFactory::addInTaskBar (  )  [pure virtual]

Show the task in the task bar.

Implemented in MacOSXFactory, Win32Factory, and X11Factory.

Referenced by CmdAddInTaskBar::execute().

virtual void OSFactory::removeFromTaskBar (  )  [pure virtual]

Remove the task from the task bar.

Implemented in MacOSXFactory, Win32Factory, and X11Factory.

Referenced by CmdRemoveFromTaskBar::execute().

virtual OSTimer* OSFactory::createOSTimer ( CmdGeneric rCmd  )  [pure virtual]

Instantiate an OSTimer with the given command.

Implemented in MacOSXFactory, Win32Factory, and X11Factory.

Referenced by AnimBitmap::AnimBitmap(), CtrlText::CtrlText(), Tooltip::Tooltip(), and VlcProc::VlcProc().

virtual OSWindow* OSFactory::createOSWindow ( GenericWindow rWindow,
bool  dragDrop,
bool  playOnDrop,
OSWindow pParent 
) [pure virtual]

Instantiate an object OSWindow.

Implemented in MacOSXFactory, Win32Factory, and X11Factory.

Referenced by GenericWindow::GenericWindow().

virtual OSTooltip* OSFactory::createOSTooltip (  )  [pure virtual]

Instantiate an object OSTooltip.

Implemented in MacOSXFactory, Win32Factory, and X11Factory.

Referenced by Tooltip::Tooltip().

virtual OSPopup* OSFactory::createOSPopup (  )  [pure virtual]

Instantiate an object OSPopup.

Implemented in MacOSXFactory, Win32Factory, and X11Factory.

Referenced by Popup::Popup().

virtual const string& OSFactory::getDirSeparator (  )  const [pure virtual]

Get the directory separator.

Implemented in MacOSXFactory, Win32Factory, and X11Factory.

Referenced by CmdUpdateItem::execute(), and Run().

virtual const list<string>& OSFactory::getResourcePath (  )  const [pure virtual]

Get the resource path.

Implemented in MacOSXFactory, Win32Factory, and X11Factory.

Referenced by Run(), and ThemeRepository::ThemeRepository().

virtual int OSFactory::getScreenWidth (  )  const [pure virtual]

Get the screen size.

Implemented in MacOSXFactory, Win32Factory, and X11Factory.

virtual int OSFactory::getScreenHeight (  )  const [pure virtual]

Implemented in MacOSXFactory, Win32Factory, and X11Factory.

virtual SkinsRect OSFactory::getWorkArea (  )  const [pure virtual]

Get the work area (screen area without taskbars).

Implemented in MacOSXFactory, Win32Factory, and X11Factory.

Referenced by WindowManager::maximize().

virtual void OSFactory::getMousePos ( int &  rXPos,
int &  rYPos 
) const [pure virtual]

Get the position of the mouse.

Implemented in MacOSXFactory, Win32Factory, and X11Factory.

Referenced by CmdShowPopup::execute().

virtual void OSFactory::changeCursor ( CursorType_t  type  )  const [pure virtual]

Change the cursor.

Implemented in MacOSXFactory, Win32Factory, and X11Factory.

virtual void OSFactory::rmDir ( const string &  rPath  )  [pure virtual]

Delete a directory recursively.

Implemented in MacOSXFactory, Win32Factory, and X11Factory.


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

Generated on Sat Nov 21 08:06:26 2009 for VLC by  doxygen 1.5.6