webappmanager
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CardWebApp Class Reference

#include <CardWebApp.h>

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

Public Member Functions

 CardWebApp (WindowType::Type winType, PIpcChannel *channel, ApplicationDescription *desc=0)
 
 ~CardWebApp ()
 
virtual void thawFromCache ()
 
virtual void freezeInCache ()
 
virtual bool isCardApp () const
 
virtual bool isChildApp () const
 
virtual void paint ()
 
virtual void inputEvent (sptr< Event > e)
 
virtual void keyEvent (QKeyEvent *e)
 
virtual void focusedEvent (bool focused)
 
virtual int resizeEvent (int newWidth, int newHeight, bool resizeBuffer)
 
virtual void flipEvent (int newWidth, int newHeight)
 
virtual void asyncFlipEvent (int newWidth, int newHeight, int newScreenWidth, int newScreenHeight)
 
virtual void setOrientation (Event::Orientation orient)
 
Event::Orientation orientation () const
 
void setFixedOrientation (Event::Orientation orient)
 
void setAllowOrientationChange (bool value)
 
bool allowsOrientationChange () const
 
virtual void enableFullScreenMode (bool enable)
 
void receivePageUpDownInLandscape (bool val)
 
virtual void invalidate ()
 
virtual void displayOn ()
 
virtual void displayOff ()
 
void allowResizeOnPositiveSpaceChange (bool allowResize)
 
bool isRenderingSuspended ()
 
CardWebAppparentWebApp () const
 
void resizeWebPage (uint32_t width, uint32_t height)
 
virtual void suspendAppRendering ()
 
virtual void resumeAppRendering ()
 
- Public Member Functions inherited from WindowedWebApp
 WindowedWebApp (int width, int height, WindowType::Type type, PIpcChannel *channel=0)
 
virtual ~WindowedWebApp ()
 
virtual bool isDashboardApp () const
 
virtual WindowType::Type windowType () const
 
virtual bool isFocused () const
 
virtual void applyLaunchFeedback (int cx, int cy)
 
int windowWidth () const
 
int windowHeight () const
 
virtual void onMessageReceived (const PIpcMessage &msg)
 
virtual void onDisconnected ()
 
virtual int getKey () const
 
int routingId () const
 
int metadataId () const
 
virtual void onResize (int width, int height, bool resizeBuffer)
 
virtual void onFlip (int newWidth, int newHeight)
 
virtual void onAsyncFlip (int newWidth, int newHeight, int newScreenWidth, int newScreenHeight)
 
virtual void onSyncResize (int width, int height, bool resizeBuffer, int *newKey)
 
virtual void onAdjustForPositiveSpace (int width, int height)
 
virtual void onKeyboardShow (bool val)
 
virtual void onClose (bool disableKeepAlive)
 
virtual void onKeyEvent (const SysMgrKeyEvent &keyEvent)
 
virtual void onTouchEvent (const SysMgrTouchEvent &touchEvent)
 
virtual void onClipboardEvent_Cut ()
 
virtual void onClipboardEvent_Copy ()
 
virtual void onClipboardEvent_Paste ()
 
virtual void onSelectAll ()
 
virtual void windowSize (int &width, int &height)
 
virtual void setWindowProperties (WindowProperties &winProp)
 
- Public Member Functions inherited from WebAppBase
 WebAppBase ()
 
virtual ~WebAppBase ()
 
bool inCache () const
 
void markInCache (bool inCache)
 
void setKeepAlive (bool keepAlive)
 
bool keepAlive ()
 
SysMgrWebBridgepage () const
 
virtual bool isAlertApp () const
 
void relaunch (const char *args, const char *launchingAppId, const char *launchingProcId)
 
QString appId () const
 
QString processId () const
 
QString url () const
 
ApplicationDescriptiongetAppDescription ()
 
void setAppDescription (ApplicationDescription *)
 
void setManualEditorFocusEnabled (bool)
 
virtual void setManualEditorFocus (bool focused, const PalmIME::EditorState &)
 
virtual void setExplicitEditorFocus (bool focused, const PalmIME::EditorState &editorState)
 

Protected Member Functions

int angleForOrientation (Event::Orientation orient) const
 
void updateWindowProperties ()
 
void animationFinished ()
 
virtual void setVisibleDimensions (int width, int height)
 
virtual void onDirectRenderingChanged ()
 
virtual void directRenderingChanged (bool directRendering, int renderX, int renderY, SysMgrEvent::Orientation angle)
 
virtual void directRenderingAllowed ()
 
virtual void directRenderingDisallowed ()
 
virtual void focus ()
 
virtual void screenSize (int &width, int &height)
 
void forcePaint ()
 
void applyCardOrientation ()
 Rotates the card according to the card orientation in case of direct rendering. More...
 
void paintEvent (QPaintEvent *event)
 
- Protected Member Functions inherited from WindowedWebApp
void init ()
 
virtual void unfocus ()
 
virtual void scrollContents (int newContentsX, int newContentsY)
 
virtual void stagePreparing ()
 
virtual void stageReady ()
 
virtual void editorFocusChanged (bool focused, const PalmIME::EditorState &state)
 
virtual void autoCapEnabled (bool enabled)
 
virtual void needTouchEvents (bool needTouchEvents)
 
virtual void getWindowPropertiesString (WindowProperties &winProp, std::string &propString) const
 
void startPaintTimer ()
 
void stopPaintTimer ()
 
void renderPageStatistics (int offsetX=0, int offsetY=0)
 
void renderMetaHint (int offsetX=0, int offsetY=0)
 
bool showWindowTimeout ()
 
bool appLoaded () const
 
bool isTransparent () const
 
- Protected Member Functions inherited from WebAppBase
virtual void close ()
 
virtual void resizedContents (int contentsWidth, int contentsHeight)
 
virtual void zoomedContents (double scaleFactor, int contentsWidth, int contentsHeight, int newScrollOffsetX, int newScrollOffsetY)
 
virtual void scrolledContents (int newContentsX, int newContentsY)
 
virtual void uriChanged (const char *url)
 
virtual void titleChanged (const char *title)
 
virtual void statusMessage (const char *msg)
 
virtual void dispatchFailedLoad (const char *domain, int errorCode, const char *failingURL, const char *localizedDescription)
 
void createActivity ()
 
void destroyActivity ()
 
void focusActivity ()
 
void blurActivity ()
 
void cleanResources ()
 
void setAppId (const QString &appId)
 

Protected Attributes

CardWebAppm_parentWebApp
 
CardWebAppm_childWebApp
 
int m_appBufWidth
 
int m_appBufHeight
 
Event::Orientation m_CardOrientation
 
Event::Orientation m_orientation
 
Event::Orientation m_fixedOrientation
 
bool m_allowsOrientationChange
 
int m_currAngleForAnim
 
int m_targAngleForAnim
 
int m_pendingResizeWidth
 
int m_pendingResizeHeight
 
Event::Orientation m_pendingOrientation
 
int m_pendingFullScreenMode
 
int m_setWindowWidth
 
int m_setWindowHeight
 
bool m_enableFullScreen
 
bool m_doPageUpDownInLandscape
 
bool m_directRendering
 
int m_renderOffsetX
 
int m_renderOffsetY
 
SysMgrEvent::Orientation m_renderOrientation
 
bool m_paintingDisabled
 
bool m_renderingSuspended
 
QGraphicsWebView * m_webview
 
QGLWidget * m_glw
 
bool m_lastPaintIPCBuffer
 
- Protected Attributes inherited from WindowedWebApp
RemoteWindowDatam_data
 
PIpcBuffer * m_metaDataBuffer
 
WindowMetaDatam_metaData
 
WindowType::Type m_winType
 
int m_width
 
int m_height
 
bool m_beingDeleted
 
bool m_stagePreparing
 
bool m_stageReady
 
bool m_addedToWindowMgr
 
uint32_t m_windowWidth
 
uint32_t m_windowHeight
 
QRect m_paintRect
 
int m_blockCount
 
bool m_blockPenEvents
 
uint32_t m_lastGestureEndTime
 
bool m_showPageStats
 
bool m_focused
 
PendingFocus m_pendingFocus
 
Timer< WindowedWebAppm_showWindowTimer
 
bool m_generateMouseClick
 
WindowProperties m_winProps
 

Additional Inherited Members

- Public Slots inherited from WindowedWebApp
void closeWindowRequest ()
 
- Protected Types inherited from WindowedWebApp
enum  PendingFocus { PendingFocusNone = 0, PendingFocusTrue, PendingFocusFalse }
 
- Protected Slots inherited from WindowedWebApp
void slotInvalidateRect (const QRect &)
 
void slotResizeContent (const QSize &)
 
void slotGeometryChanged (const QRect &)
 
void PrvCbPaintTimeout ()
 

Constructor & Destructor Documentation

CardWebApp::CardWebApp ( WindowType::Type  winType,
PIpcChannel *  channel,
ApplicationDescription desc = 0 
)
CardWebApp::~CardWebApp ( )

Member Function Documentation

void CardWebApp::allowResizeOnPositiveSpaceChange ( bool  allowResize)
bool CardWebApp::allowsOrientationChange ( ) const
int CardWebApp::angleForOrientation ( Event::Orientation  orient) const
protected
void CardWebApp::animationFinished ( )
protected
void CardWebApp::applyCardOrientation ( )
protected

Rotates the card according to the card orientation in case of direct rendering.

This method only performs the card rotation for direct rendering. Otherwise the window manager handles the rotation transformation.

void CardWebApp::asyncFlipEvent ( int  newWidth,
int  newHeight,
int  newScreenWidth,
int  newScreenHeight 
)
virtual

Reimplemented from WindowedWebApp.

void CardWebApp::directRenderingAllowed ( )
protectedvirtual
void CardWebApp::directRenderingChanged ( bool  directRendering,
int  renderX,
int  renderY,
SysMgrEvent::Orientation  angle 
)
protectedvirtual
void CardWebApp::directRenderingDisallowed ( )
protectedvirtual
void CardWebApp::displayOff ( )
virtual

Reimplemented from WindowedWebApp.

void CardWebApp::displayOn ( )
virtual

Reimplemented from WindowedWebApp.

void CardWebApp::enableFullScreenMode ( bool  enable)
virtual

Reimplemented in DockWebApp.

void CardWebApp::flipEvent ( int  newWidth,
int  newHeight 
)
virtual

This event happens when the device was rotated 90 degrees and the long and short edge have flipped. It is similar to rotate and resize events. Maybe this was intended as an optimization because you don't have to reallocate the IPC draw buffers as their effective byte size doesn't change when rotating by 90 degrees

Reimplemented from WindowedWebApp.

void CardWebApp::focus ( )
protectedvirtual

Reimplemented from WindowedWebApp.

void CardWebApp::focusedEvent ( bool  focused)
virtual

Reimplemented from WindowedWebApp.

void CardWebApp::forcePaint ( )
protected
void CardWebApp::freezeInCache ( )
virtual

Reimplemented from WebAppBase.

void CardWebApp::inputEvent ( sptr< Event e)
virtual

Reimplemented from WindowedWebApp.

void CardWebApp::invalidate ( )
virtual

Reimplemented from WindowedWebApp.

virtual bool CardWebApp::isCardApp ( ) const
inlinevirtual

Reimplemented from WindowedWebApp.

Reimplemented in DockWebApp.

bool CardWebApp::isChildApp ( ) const
virtual

Reimplemented from WebAppBase.

bool CardWebApp::isRenderingSuspended ( )
inline
void CardWebApp::keyEvent ( QKeyEvent *  e)
virtual

Reimplemented from WindowedWebApp.

void CardWebApp::onDirectRenderingChanged ( )
protectedvirtual

Reimplemented from WindowedWebApp.

Event::Orientation CardWebApp::orientation ( ) const
void CardWebApp::paint ( )
virtual

Reimplemented from WindowedWebApp.

void CardWebApp::paintEvent ( QPaintEvent *  event)
protected
CardWebApp * CardWebApp::parentWebApp ( ) const
void CardWebApp::receivePageUpDownInLandscape ( bool  val)
int CardWebApp::resizeEvent ( int  newWidth,
int  newHeight,
bool  resizeBuffer 
)
virtual

Reimplemented from WindowedWebApp.

void CardWebApp::resizeWebPage ( uint32_t  width,
uint32_t  height 
)
virtual

overloaded from WebAppBase::resizeWebPage

Reimplemented from WebAppBase.

void CardWebApp::resumeAppRendering ( )
virtual

Reimplemented from WebAppBase.

void CardWebApp::screenSize ( int &  width,
int &  height 
)
protectedvirtual

Reimplemented from WindowedWebApp.

void CardWebApp::setAllowOrientationChange ( bool  value)
void CardWebApp::setFixedOrientation ( Event::Orientation  orient)
void CardWebApp::setOrientation ( Event::Orientation  orient)
virtual

Reimplemented from WindowedWebApp.

Reimplemented in DockWebApp.

void CardWebApp::setVisibleDimensions ( int  width,
int  height 
)
protectedvirtual

Reimplemented in DockWebApp.

void CardWebApp::suspendAppRendering ( )
virtual

Reimplemented from WebAppBase.

void CardWebApp::thawFromCache ( )
virtual

Reimplemented from WebAppBase.

void CardWebApp::updateWindowProperties ( )
protected

Member Data Documentation

bool CardWebApp::m_allowsOrientationChange
protected
int CardWebApp::m_appBufHeight
protected
int CardWebApp::m_appBufWidth
protected
Event::Orientation CardWebApp::m_CardOrientation
protected
CardWebApp* CardWebApp::m_childWebApp
protected
int CardWebApp::m_currAngleForAnim
protected
bool CardWebApp::m_directRendering
protected
bool CardWebApp::m_doPageUpDownInLandscape
protected
bool CardWebApp::m_enableFullScreen
protected
Event::Orientation CardWebApp::m_fixedOrientation
protected
QGLWidget* CardWebApp::m_glw
protected
bool CardWebApp::m_lastPaintIPCBuffer
protected
Event::Orientation CardWebApp::m_orientation
protected
bool CardWebApp::m_paintingDisabled
protected
CardWebApp* CardWebApp::m_parentWebApp
protected
int CardWebApp::m_pendingFullScreenMode
protected
Event::Orientation CardWebApp::m_pendingOrientation
protected
int CardWebApp::m_pendingResizeHeight
protected
int CardWebApp::m_pendingResizeWidth
protected
bool CardWebApp::m_renderingSuspended
protected
int CardWebApp::m_renderOffsetX
protected
int CardWebApp::m_renderOffsetY
protected
SysMgrEvent::Orientation CardWebApp::m_renderOrientation
protected
int CardWebApp::m_setWindowHeight
protected
int CardWebApp::m_setWindowWidth
protected
int CardWebApp::m_targAngleForAnim
protected
QGraphicsWebView* CardWebApp::m_webview
protected

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