mmsinit.h File Reference

#include <stdlib.h>
#include <string>
#include <mmsbase/interfaces/immsswitcher.h>

Include dependency graph for mmsinit.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Defines

#define MMSINIT_NONE   0x00000000
 none
#define MMSINIT_WINDOWMANAGER   0x00000001
 initializing the window manager
#define MMSINIT_PLUGINMANAGER   0x00000002
 initializing the plugin manager (the configdb where the plugins are defined is required)
#define MMSINIT_EVENTS   0x00000004
 initializing the event manager
#define MMSINIT_GRAPHICS   0x00000008
 initializing the graphic backends (x11/dfb/fbdev/...)
#define MMSINIT_INPUTS   0x00000010
 initializing the input manager
#define MMSINIT_THEMEMANAGER   0x00000020
 initializing the theme manager
#define MMSINIT_WINDOWS   0x00000039
 initializing the graphic backends including the window, the input and the theme manager
#define MMSINIT_FULL   0x0000003f
 initializing all components
#define MMSINIT_SILENT   0x00000100
 silent mode (no output)
#define MMSINIT_NO_CONSOLE   0x00000200
 no virtual console will be opened and screen will not cleared during startup
#define MMSINIT_FLIP_FLUSH   0x00000400
 disko should trigger an pan event to frame buffer driver every time current read buffer has changed (e.g. due to flipping regions)

Typedefs

typedef int MMSINIT_FLAGS
 type of the init flags

Functions

bool mmsInit (MMSINIT_FLAGS flags, int argc=0, char *argv[]=NULL, string configfile="", string appl_name="Disko Application", string appl_icon_name="Disko Application", MMSConfigDataGlobal *global=NULL, MMSConfigDataDB *configdb=NULL, MMSConfigDataDB *datadb=NULL, MMSConfigDataGraphics *graphics=NULL, MMSConfigDataLanguage *language=NULL)
bool mmsRelease ()
bool registerSwitcher (IMMSSwitcher *switcher)
void setPluginRegisterCallback (void(*cb)(MMSPluginManager *))
IMMSWindowManagergetWindowManager ()
void setPluginManager (MMSPluginManager *pm)
MMSPluginManagergetPluginManager ()
MMSFBLayergetVideoLayer ()
 get access to the video layer
MMSFBLayergetGraphicsLayer ()
 get access to the graphics layer
void showBackgroundWindow ()
 show the background window

Define Documentation

#define MMSINIT_EVENTS   0x00000004

initializing the event manager

Definition at line 53 of file mmsinit.h.

#define MMSINIT_FLIP_FLUSH   0x00000400

disko should trigger an pan event to frame buffer driver every time current read buffer has changed (e.g. due to flipping regions)

Definition at line 69 of file mmsinit.h.

#define MMSINIT_FULL   0x0000003f

initializing all components

Definition at line 63 of file mmsinit.h.

#define MMSINIT_GRAPHICS   0x00000008

initializing the graphic backends (x11/dfb/fbdev/...)

Definition at line 55 of file mmsinit.h.

#define MMSINIT_INPUTS   0x00000010

initializing the input manager

Definition at line 57 of file mmsinit.h.

#define MMSINIT_NO_CONSOLE   0x00000200

no virtual console will be opened and screen will not cleared during startup

Definition at line 67 of file mmsinit.h.

#define MMSINIT_NONE   0x00000000

none

Definition at line 47 of file mmsinit.h.

#define MMSINIT_PLUGINMANAGER   0x00000002

initializing the plugin manager (the configdb where the plugins are defined is required)

Definition at line 51 of file mmsinit.h.

#define MMSINIT_SILENT   0x00000100

silent mode (no output)

Definition at line 65 of file mmsinit.h.

#define MMSINIT_THEMEMANAGER   0x00000020

initializing the theme manager

Definition at line 59 of file mmsinit.h.

#define MMSINIT_WINDOWMANAGER   0x00000001

initializing the window manager

Definition at line 49 of file mmsinit.h.

#define MMSINIT_WINDOWS   0x00000039

initializing the graphic backends including the window, the input and the theme manager

Definition at line 61 of file mmsinit.h.


Typedef Documentation

typedef int MMSINIT_FLAGS

type of the init flags

Definition at line 44 of file mmsinit.h.


Function Documentation

MMSFBLayer* getGraphicsLayer (  ) 

get access to the graphics layer

Returns:
pointer to the MMSFBLayer graphics layer object
Note:
If using only one layer, the graphics and video layer are the same.

Definition at line 479 of file mmsinit.cpp.

MMSPluginManager* getPluginManager (  ) 

Definition at line 471 of file mmsinit.cpp.

MMSFBLayer* getVideoLayer (  ) 

get access to the video layer

Returns:
pointer to the MMSFBLayer video layer object
Note:
If using only one layer, the graphics and video layer are the same.

Definition at line 475 of file mmsinit.cpp.

IMMSWindowManager* getWindowManager (  ) 

Definition at line 459 of file mmsinit.cpp.

bool mmsInit ( MMSINIT_FLAGS  flags,
int  argc = 0,
char *  argv[] = NULL,
string  configfile = "",
string  appl_name = "Disko Application",
string  appl_icon_name = "Disko Application",
MMSConfigDataGlobal global = NULL,
MMSConfigDataDB configdb = NULL,
MMSConfigDataDB datadb = NULL,
MMSConfigDataGraphics graphics = NULL,
MMSConfigDataLanguage language = NULL 
)

Definition at line 68 of file mmsinit.cpp.

bool mmsRelease (  ) 

Definition at line 423 of file mmsinit.cpp.

bool registerSwitcher ( IMMSSwitcher switcher  ) 

Definition at line 428 of file mmsinit.cpp.

void setPluginManager ( MMSPluginManager pm  ) 

Definition at line 463 of file mmsinit.cpp.

void setPluginRegisterCallback ( void(*)(MMSPluginManager *)  cb  ) 

Definition at line 455 of file mmsinit.cpp.

void showBackgroundWindow (  ) 

show the background window

Definition at line 483 of file mmsinit.cpp.