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

#include <HostWindow.h>

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

Public Member Functions

 HostWindow (WindowType::Type type, int width, int height, bool hasAlpha)
 
 HostWindow (WindowType::Type type, HostWindowData *data, IpcClientHost *clientHost=0)
 
virtual ~HostWindow ()
 
int routingId () const
 
bool isIpcWindow () const
 
void channelRemoved ()
 
void setClientHost (IpcClientHost *clientHost)
 
virtual void close ()
 
virtual void setVisibleDimensions (int width, int height)
 
virtual void resizeEventSync (int w, int h, bool forceSync=false)
 
virtual void flipEventSync (bool fromQueue=false)
 
virtual void flipEventAsync (QRect windowScreenBounds, bool fromQueue=false)
 
virtual void asynchFlipCompleted (int newWidth, int newHeight, int newScreenWidth, int newScreenHeight)
 
virtual void queuedFlipCanceled (QRect windowScreenBounds)
 
virtual void onMessageReceived (const PIpcMessage &msg)
 
virtual void onDisconnected ()
 
virtual void onUpdateWindowRegion (int x, int y, int w, int h)
 
virtual void onUpdateFullWindow ()
 
virtual void onUpdateWindowRequest ()
 
void onAsynchFlipCompleted (int newWidth, int newHeight, int newScreenWidth, int newScreenHeight)
 
virtual const QPixmap * acquireScreenPixmap ()
 
virtual void setComposingText (const std::string &text)
 
virtual void commitComposingText ()
 
virtual void commitText (const std::string &text)
 
virtual void performEditorAction (PalmIME::FieldAction action)
 
virtual void removeInputFocus ()
 
virtual const HostWindowDatahostWindowData () const
 
- Public Member Functions inherited from Window
 Window (WindowType::Type type, const uint32_t bufWidth, const uint32_t bufHeight, bool hasAlpha=false)
 
 Window (WindowType::Type type, const QPixmap &pix)
 
virtual ~Window ()
 
virtual int type () const
 
virtual QRectF boundingRect () const
 
virtual bool mouseGrabbed () const
 
virtual void setMouseGrabbed (bool grabbed)
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 
void setName (const std::string &name)
 
std::string name () const
 
virtual void setAppId (const std::string &id)
 
std::string appId () const
 
void setProcessId (const std::string &id)
 
std::string processId () const
 
void setLaunchingAppId (const std::string &id)
 
std::string launchingAppId () const
 
void setLaunchingProcessId (const std::string &id)
 
std::string launchingProcessId () const
 
ApplicationDescriptionappDescription () const
 
void setRemoved ()
 
bool removed () const
 
void setDisableKeepAlive ()
 
bool disableKeepAlive () const
 
virtual void setWindowProperties (const WindowProperties &attr)
 
virtual void setVisibleDimensions (uint32_t width, uint32_t height)
 
virtual QSize getVisibleDimensions () const
 
virtual void resize (int w, int h)
 
int initialWidth () const
 
int initialHeight () const
 
- Public Member Functions inherited from InputClient
 InputClient ()
 
virtual bool inputFocus () const
 
virtual const
PalmIME::EditorState & 
inputState () const
 
void setInputFocus (bool focus)
 

Protected Member Functions

virtual void wheelEvent (QGraphicsSceneWheelEvent *event)
 
virtual void onEditorFocusChanged (bool focus, const PalmIME::EditorState &state)
 
void onAutoCapChanged (bool enabled)
 
virtual void onEnableTouchEvents (bool)
 
- Protected Member Functions inherited from Window
virtual void lock ()
 
virtual void unlock ()
 
 Window (const Window &)
 
Windowoperator= (const Window &)
 
- Protected Member Functions inherited from InputClient
void setInputState (const PalmIME::EditorState &state)
 

Protected Attributes

HostWindowDatam_data
 
bool m_isIpcWindow
 
IpcClientHostm_clientHost
 
- Protected Attributes inherited from Window
WindowType::Type m_type
 
std::string m_name
 
std::string m_appId
 
std::string m_processId
 
std::string m_launchingAppId
 
std::string m_launchingProcId
 
ApplicationDescriptionm_appDesc
 
bool m_removed
 
bool m_disableKeepAlive
 
uint32_t m_bufWidth
 
uint32_t m_bufHeight
 
int m_initialWidth
 
int m_initialHeight
 
QRectF m_visibleBounds
 
QPixmap m_screenPixmap
 

Additional Inherited Members

- Properties inherited from Window
bool grabMouse
 

Constructor & Destructor Documentation

HostWindow::HostWindow ( WindowType::Type  type,
int  width,
int  height,
bool  hasAlpha 
)
HostWindow::HostWindow ( WindowType::Type  type,
HostWindowData data,
IpcClientHost clientHost = 0 
)
HostWindow::~HostWindow ( )
virtual

Member Function Documentation

const QPixmap * HostWindow::acquireScreenPixmap ( )
virtual

Reimplemented from Window.

void HostWindow::asynchFlipCompleted ( int  newWidth,
int  newHeight,
int  newScreenWidth,
int  newScreenHeight 
)
virtual

Reimplemented in CardWindow.

void HostWindow::channelRemoved ( )
void HostWindow::close ( )
virtual

Reimplemented in VolumeControlAlertWindow, and QmlAlertWindow.

void HostWindow::commitComposingText ( )
virtual

Reimplemented from InputClient.

void HostWindow::commitText ( const std::string &  text)
virtual

Reimplemented from InputClient.

void HostWindow::flipEventAsync ( QRect  windowScreenBounds,
bool  fromQueue = false 
)
virtual

Reimplemented in CardWindow.

void HostWindow::flipEventSync ( bool  fromQueue = false)
virtual

Reimplemented in CardWindow.

virtual const HostWindowData* HostWindow::hostWindowData ( ) const
inlinevirtual
bool HostWindow::isIpcWindow ( ) const
inlinevirtual

Reimplemented from Window.

void HostWindow::onAsynchFlipCompleted ( int  newWidth,
int  newHeight,
int  newScreenWidth,
int  newScreenHeight 
)
void HostWindow::onAutoCapChanged ( bool  enabled)
protected
void HostWindow::onDisconnected ( )
virtual
void HostWindow::onEditorFocusChanged ( bool  focus,
const PalmIME::EditorState &  state 
)
protectedvirtual
virtual void HostWindow::onEnableTouchEvents ( bool  )
inlineprotectedvirtual

Reimplemented in CardWindow.

void HostWindow::onMessageReceived ( const PIpcMessage &  msg)
virtual

Reimplemented in CardWindow, DashboardWindow, and AlertWindow.

void HostWindow::onUpdateFullWindow ( )
virtual

Reimplemented in AlertWindow.

void HostWindow::onUpdateWindowRegion ( int  x,
int  y,
int  w,
int  h 
)
virtual

Reimplemented in AlertWindow.

void HostWindow::onUpdateWindowRequest ( )
virtual
void HostWindow::performEditorAction ( PalmIME::FieldAction  action)
virtual

Reimplemented from InputClient.

void HostWindow::queuedFlipCanceled ( QRect  windowScreenBounds)
virtual

Reimplemented in CardWindow.

void HostWindow::removeInputFocus ( )
virtual

Reimplemented from InputClient.

void HostWindow::resizeEventSync ( int  w,
int  h,
bool  forceSync = false 
)
virtual
int HostWindow::routingId ( ) const
void HostWindow::setClientHost ( IpcClientHost clientHost)
void HostWindow::setComposingText ( const std::string &  text)
virtual

Reimplemented from InputClient.

virtual void HostWindow::setVisibleDimensions ( int  width,
int  height 
)
inlinevirtual

Reimplemented in CardWindow.

void HostWindow::wheelEvent ( QGraphicsSceneWheelEvent *  event)
protectedvirtual

Member Data Documentation

IpcClientHost* HostWindow::m_clientHost
protected
HostWindowData* HostWindow::m_data
protected
bool HostWindow::m_isIpcWindow
protected

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