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

#include <QtHostWindow.h>

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

Public Member Functions

 QtHostWindow (WindowType::Type type, HostWindowData *data, IpcClientHost *clientHost)
 
virtual ~QtHostWindow ()
 
- Public Member Functions inherited from CardHostWindow
 CardHostWindow (WindowType::Type type, HostWindowData *data, IpcClientHost *clientHost)
 
virtual ~CardHostWindow ()
 
virtual void resizeEvent (int w, int h)
 
virtual void resizeEventSync (int w, int h)
 
virtual void resizeWindowBufferEvent (int w, int h, QRect windowScreenBounds, bool forceSync)
 
virtual void focusEvent (bool enable)
 
virtual void aboutToFocusEvent (bool enable)
 
virtual bool isHost () const
 
virtual bool supportsPause () const
 
virtual void pause ()
 
bool paused () const
 
- Public Member Functions inherited from CardWindow
 CardWindow (WindowType::Type type, HostWindowData *data, IpcClientHost *clientHost=0)
 
virtual ~CardWindow ()
 
virtual QRectF boundingRect () const
 
void onMessageReceived (const PIpcMessage &msg)
 
bool fullScreen () const
 
bool isBlockScreenTimeout () const
 
bool isSubtleLightbar () const
 
bool activeTouchpanel () const
 
bool alsDisabled () const
 
bool gyroEvents () const
 
bool compassEvents () const
 
uint32_t overlayNotificationsPosition () const
 
bool suppressBannerMessages () const
 
bool suppressGestures () const
 
uint32_t dockBrightness () const
 
bool hasCustomStatusBarColor () const
 
unsigned int statusBarColor () const
 
virtual void inputEvent (Event *e)
 
virtual void resizeWindowBufferEvent (int w, int h, QRect windowScreenBounds, bool forceSync=false, bool ignoreFixedOrient=false)
 
virtual void flipEventSync (bool fromQueue=false)
 
virtual void queueUpWindowForFlip (QRect windowScreenBounds, bool sync)
 
virtual void queuedFlipCanceled (QRect windowScreenBounds)
 
virtual void flipEventAsync (QRect windowScreenBounds, bool fromQueue=false)
 
virtual void asynchFlipCompleted (int newWidth, int newHeight, int newScreenWidth, int newScreenHeight)
 
void queueFocusAction (bool focused)
 
void performPendingFocusAction ()
 
bool focused () const
 
void enableShadow ()
 
void disableShadow ()
 
virtual void setPrepareAddedToWindowManager ()
 
bool prepareAddedToWindowManager () const
 
virtual void setAddedToWindowManager ()
 
bool addedToWindowManager () const
 
virtual void setWindowProperties (const WindowProperties &props)
 
bool rotationLockMaximized () const
 
bool allowResizeOnPositiveSpaceChange () const
 
void adjustForPositiveSpaceSize (int width, int height) const
 
virtual Event::Orientation getCardFixedOrientation ()
 
bool delayPrepare ()
 
void stopLoadingOverlay ()
 
void setModalParent (CardWindow *parent)
 
void setCardIsModalParent (bool isParent)
 
bool isCardModalParent () const
 
void setModalAcceptInputState (ModalAcceptInputState state)
 
void setModalChild (CardWindow *w)
 
CardWindowgetModalChild () const
 
void setAppLaunchOptions (const AppLaunchOptionsEventWrapper &options)
 
const std::string & splashBackgroundName () const
 
void setLaunchInNewGroup (bool launchInNewGroup)
 
bool launchInNewGroup ()
 
void setPaintCompositionMode (QPainter::CompositionMode mode)
 
QPainterPath paintPath () const
 
CardWindow::Position position () const
 
void setPosition (const CardWindow::Position &pos)
 
CardGroupcardGroup () const
 
void setCardGroup (CardGroup *group)
 
bool attachedToGroup () const
 
void setAttachedToGroup (bool attached)
 
virtual void setMaximized (bool enable)
 
virtual bool isMaximized () const
 
virtual void positiveSpaceAboutToChange (const QRect &r, bool fullScreen)
 
virtual void positiveSpaceChanged (const QRect &r)
 
virtual void positiveSpaceChangeFinished (const QRect &r)
 
virtual void setMaxAndLoading (bool enable)
 
virtual bool isMaxAndLoading () const
 
void setBoundingRect (int width, int height)
 
void computeModalWindowPlacementInf (int newPosSpace)
 
virtual QRectF transitionBoundingRect ()
 
GhostCardcreateGhost ()
 
void allowUpdates (bool allow)
 
void setDimm (bool dimm)
 
float dimming () const
 
void setDimming (float dimming)
 
- Public Member Functions inherited from HostWindow
 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 resizeEventSync (int w, int h, bool forceSync=false)
 
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 bool mouseGrabbed () const
 
virtual void setMouseGrabbed (bool grabbed)
 
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 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 bool touchEvent (QTouchEvent *event)
 
- Protected Member Functions inherited from CardHostWindow
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 
virtual void paintBase (QPainter *painter, bool maximized)
 
virtual void paintOverlay (QPainter *painter, bool maximized)
 
virtual void fullScreenEnabled (bool enabled)
 
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
 
virtual void hoverMoveEvent (QGraphicsSceneHoverEvent *event)
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 
virtual void refreshAdjustmentAngle ()
 
virtual void onSetAppFixedOrientation (int orientation, bool isPortrait)
 
virtual void initializeRoundedCornerStage ()
 
- Protected Member Functions inherited from CardWindow
 CardWindow (WindowType::Type type, const QPixmap &pixmap)
 
void init ()
 
virtual void setVisibleDimensions (int width, int height)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual bool sceneEvent (QEvent *event)
 
bool mouseFlickEvent (QGestureEvent *event)
 
bool pinchEvent (QGestureEvent *event)
 
bool mouseSingleClickEvent (QGestureEvent *singleClick)
 
bool coversScreenFully () const
 
void enableFullScreen ()
 
void disableFullScreen ()
 
void updateDirectRenderingPosition ()
 
void startLoadingOverlay ()
 
bool loadingAnimTimerTicked ()
 
void startLoadingTimer (int duration)
 
void stopLoadingTimer ()
 
bool hasLoadingTimer () const
 
virtual void onEnableTouchEvents (bool enableTouchEvents)
 
virtual void mapCoordinates (qreal &x, qreal &y)
 
virtual void mapFlickVelocities (qreal &x, qreal &y)
 
virtual void onSetAppOrientation (int orientation)
 
virtual void onSetAppFreeOrientation (bool free)
 
bool isInValidOrientation ()
 
virtual void customEvent (QEvent *event)
 
- Protected Member Functions inherited from HostWindow
virtual void wheelEvent (QGraphicsSceneWheelEvent *event)
 
virtual void onEditorFocusChanged (bool focus, const PalmIME::EditorState &state)
 
void onAutoCapChanged (bool enabled)
 
- 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)
 

Additional Inherited Members

- Public Types inherited from CardWindow
enum  ModalAcceptInputState { NoModalWindow = 0, ModalLaunchedNotAcceptingInput, ModalLaunchedAcceptingInput }
 
- Protected Types inherited from CardWindow
enum  PendingFocus { PendingFocusNone = 0, PendingFocusTrue, PendingFocusFalse }
 
enum  CapturedEvents { CapturedNone = 0, CapturedPen = 1 << 0, CapturedGesture = 1 << 1, CapturedInvalid = 1 << 31 }
 
enum  ModalCardResizeState {
  Invalid =0, CardHeightNotChanged, HeightAndPositionUnchanged, HeightUnchangedAnimatedUp,
  HeightUnchangedAnimatedDown, ReduceCardHeight, IncreaseCardHeight
}
 
enum  ParentWindowHandleEvent { ParentHandleEvent =0, ForwardEventToChild, WaitForChildToAcceptEvents }
 
enum  PositiveSpaceChangeNotificationState { Unknown = 0, GotPositiveSpaceAboutToChangeNotification, GotPositiveSpaceChangeNotification }
 
- Protected Slots inherited from CardWindow
void slotLoadingFinished ()
 
void slotDisplayStateChanged (int state)
 
virtual void slotUiRotated ()
 
void slotShowIME ()
 
void slotHideIME ()
 
- Static Protected Member Functions inherited from CardWindow
static gboolean loadingTimeout (gpointer data)
 
- Protected Attributes inherited from CardWindow
bool m_prepareAddedToWm
 
bool m_addedToWm
 
uint32_t m_capturedEvents
 
bool m_fullScreenEnabled
 
bool m_fullScreenModeSuppressed
 
bool m_maximized
 
bool m_maxAndLoading
 
Event::Orientation m_appFixedOrientation
 
Event::Orientation m_appPendingFixedOrientation
 
qreal m_adjustmentAngle
 
bool m_focusPendingRotation
 
bool m_keyboardShownMessageSent
 
bool m_isResizing
 
int m_flipsQueuedUp
 
bool m_pendingDirectRenderingEnable
 
int m_pendingRotationRequests
 
int m_ignorePendingRotationRequests
 
QBrush m_tempRotatedBrush
 
QRectF m_preFlipBoundingRect
 
bool m_forceFocus
 
bool m_focused
 
bool m_touchEventsEnabled
 
QRectF m_boundingRect
 
PendingFocus m_pendingFocus
 
WindowProperties m_winProps
 
CardLoadingm_loadingAnim
 
guint m_loadingTimerId
 
std::string m_splashBackgroundName
 
QPainterPath m_paintPath
 
QPainter::CompositionMode m_compMode
 
Position m_position
 
QPointer< CardGroupm_group
 
bool m_attachedToGroup
 
bool m_launchInNewGroup
 
CardRoundedCornerShaderStage * m_roundedCornerShaderStage
 
QPropertyAnimation * m_activeAnimation
 
float m_dimming
 
ModalAcceptInputState m_modalAcceptInputState
 
ModalWindowPlacementInfo m_initMWindPlacementInf
 
PositiveSpaceChangeNotificationState m_posSpChangeNotificationState
 
int m_ModalWindowEndY
 
int m_modalWindowShrinkHeight
 
int m_maxEndingPositionForOrientation
 
bool m_fRecomputeInitPositionsValues
 
bool m_isCardModalParent
 
QPropertyAnimation * m_ModalPositionAnimation
 
- Static Protected Attributes inherited from CardWindow
static int sStartSpaceChangeValue = -1
 
static int sLastKnownPositiveSpace = 0
 
static float sBoundingRectYBeforeResize = 0
 
static QPointF sModalWindowYBeforeResize
 
- Properties inherited from CardWindow
CardWindow::Position position
 
float dimming
 

Constructor & Destructor Documentation

QtHostWindow::QtHostWindow ( WindowType::Type  type,
HostWindowData data,
IpcClientHost clientHost 
)
QtHostWindow::~QtHostWindow ( )
virtual

Member Function Documentation

bool QtHostWindow::touchEvent ( QTouchEvent *  event)
protectedvirtual

Reimplemented from CardWindow.


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