LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
IpcClientHost Class Reference

#include <IpcClientHost.h>

Inheritance diagram for IpcClientHost:
[legend]
Collaboration diagram for IpcClientHost:
[legend]

Public Member Functions

 IpcClientHost ()
 
 IpcClientHost (int pid, const std::string &name, PIpcChannel *channel)
 
virtual ~IpcClientHost ()
 
void windowDeleted (Window *w)
 
virtual void relaunch (char *const argv[])
 
virtual void closeWindow (Window *w)
 
virtual void replaceWindowKey (Window *win, int oldKey, int newKey)
 
int pid () const
 
std::string name () const
 
bool hasWindows () const
 

Protected Types

typedef std::map< int, Window * > WindowMap
 
typedef std::set< Window * > WindowSet
 

Protected Slots

void slotMaximizedCardWindowChanged (Window *w)
 

Protected Member Functions

virtual void onMessageReceived (const PIpcMessage &msg)
 
virtual void onDisconnected ()
 
virtual void onReturnedInputEvent (const SysMgrKeyEvent &event)
 
virtual void onPrepareAddWindow (int key, int type, int width, int height)
 
virtual void onAddWindow (int key)
 
virtual void onRemoveWindow (int key)
 
virtual void onSetWindowProperties (int key, const std::string &winProps)
 
virtual void onFocusWindow (int key)
 
virtual void onUnfocusWindow (int key)
 
virtual WindowfindWindow (int key) const
 

Protected Attributes

int m_pid
 
int m_processPriority
 
std::string m_name
 
WindowMap m_winMap
 
WindowSet m_winSet
 
WindowSet m_closedWinSet
 
bool m_clearing
 
GSource * m_idleDestroySrc
 

Member Typedef Documentation

typedef std::map<int, Window*> IpcClientHost::WindowMap
protected
typedef std::set<Window*> IpcClientHost::WindowSet
protected

Constructor & Destructor Documentation

IpcClientHost::IpcClientHost ( )
IpcClientHost::IpcClientHost ( int  pid,
const std::string &  name,
PIpcChannel *  channel 
)
IpcClientHost::~IpcClientHost ( )
virtual

Member Function Documentation

void IpcClientHost::closeWindow ( Window w)
virtual

Reimplemented in WebAppMgrProxy.

Window * IpcClientHost::findWindow ( int  key) const
protectedvirtual
bool IpcClientHost::hasWindows ( ) const
std::string IpcClientHost::name ( ) const
inline
void IpcClientHost::onAddWindow ( int  key)
protectedvirtual
void IpcClientHost::onDisconnected ( )
protectedvirtual

Reimplemented in WebAppMgrProxy.

void IpcClientHost::onFocusWindow ( int  key)
protectedvirtual
void IpcClientHost::onMessageReceived ( const PIpcMessage &  msg)
protectedvirtual
void IpcClientHost::onPrepareAddWindow ( int  key,
int  type,
int  width,
int  height 
)
protectedvirtual
void IpcClientHost::onRemoveWindow ( int  key)
protectedvirtual
void IpcClientHost::onReturnedInputEvent ( const SysMgrKeyEvent &  event)
protectedvirtual

Reimplemented in WebAppMgrProxy.

void IpcClientHost::onSetWindowProperties ( int  key,
const std::string &  winProps 
)
protectedvirtual
void IpcClientHost::onUnfocusWindow ( int  key)
protectedvirtual
int IpcClientHost::pid ( ) const
inline
void IpcClientHost::relaunch ( char *const  argv[])
virtual
void IpcClientHost::replaceWindowKey ( Window win,
int  oldKey,
int  newKey 
)
virtual
void IpcClientHost::slotMaximizedCardWindowChanged ( Window w)
protectedslot
void IpcClientHost::windowDeleted ( Window w)

Member Data Documentation

bool IpcClientHost::m_clearing
protected
WindowSet IpcClientHost::m_closedWinSet
protected
GSource* IpcClientHost::m_idleDestroySrc
protected
std::string IpcClientHost::m_name
protected
int IpcClientHost::m_pid
protected
int IpcClientHost::m_processPriority
protected
WindowMap IpcClientHost::m_winMap
protected
WindowSet IpcClientHost::m_winSet
protected

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