webappmanager
|
#include <WebAppBase.h>
Public Member Functions | |
WebAppBase () | |
virtual | ~WebAppBase () |
virtual void | attach (SysMgrWebBridge *) |
virtual SysMgrWebBridge * | detach () |
virtual void | thawFromCache () |
virtual void | freezeInCache () |
bool | inCache () const |
void | markInCache (bool inCache) |
void | setKeepAlive (bool keepAlive) |
bool | keepAlive () |
SysMgrWebBridge * | page () const |
virtual bool | isWindowed () const |
virtual bool | isCardApp () const |
virtual bool | isChildApp () const |
virtual bool | isDashboardApp () const |
virtual bool | isAlertApp () const |
void | relaunch (const char *args, const char *launchingAppId, const char *launchingProcId) |
virtual void | stagePreparing () |
virtual void | stageReady () |
QString | appId () const |
QString | processId () const |
QString | url () const |
ApplicationDescription * | getAppDescription () |
void | setAppDescription (ApplicationDescription *) |
void | setManualEditorFocusEnabled (bool) |
virtual void | setManualEditorFocus (bool focused, const PalmIME::EditorState &) |
virtual void | setExplicitEditorFocus (bool focused, const PalmIME::EditorState &editorState) |
virtual void | suspendAppRendering () |
virtual void | resumeAppRendering () |
virtual void | resizeWebPage (uint32_t width, uint32_t height) |
Protected Slots | |
virtual void | uriChanged (const QUrl &) |
Protected Member Functions | |
virtual int | getKey () const |
virtual void | focus () |
virtual void | unfocus () |
virtual void | close () |
virtual void | windowSize (int &width, int &height) |
virtual void | screenSize (int &width, int &height) |
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) |
virtual void | loadFinished () |
virtual void | editorFocusChanged (bool focused, const PalmIME::EditorState &state) |
virtual void | autoCapEnabled (bool enabled) |
void | createActivity () |
void | destroyActivity () |
void | focusActivity () |
void | blurActivity () |
void | cleanResources () |
void | setAppId (const QString &appId) |
Friends | |
class | PalmSystem |
class | SysMgrWebBridge |
Base class for different types of app containers to derive from.
WebAppBase::WebAppBase | ( | ) |
Initializes this app container
Just initializes things to blank values. DOES NOT report to WebAppManager that we've launched.
|
virtual |
Cleans up this app container
This cleans up any resources allocated within this app container. It does not detach from or clean up the WebPage it's attached to - that is expected to be handled by the caller.
Implementation details:
|
inline |
Gets this app's app ID
This is set up when this instance is attached to a page and gets the app ID of the page it's attached to.
|
virtual |
Attaches to a WebPage instance to allow us to manage it
This method sets up the content to display for this app.
In detail, this method:
It's assumed that this WebPage instance will either already have a URL loaded or it will be loaded by the caller after calling this. In other words, this attaches a WebPage, but does not load anything into it.
page | WebPage of content for this app. |
Reimplemented in WindowedWebApp, AlertWebApp, and DashboardWebApp.
|
inlineprotectedvirtual |
Enables/disables auto-capitalization in fields in this app
enabled | true to enable auto-capitalization, false to disable it. |
Reimplemented in WindowedWebApp.
|
protected |
Asks the Activity Manager service to unfocus our app
|
protected |
Cleans up this app
Implementation details:
|
protectedvirtual |
|
protected |
Asks the Activity Manager service to create an activity for us
|
protected |
Destroys our activity
|
virtual |
Detaches this instance from the WebPage it was previously managing
This essentially removes the content from this app.
In detail, this method:
|
protectedvirtual |
|
inlineprotectedvirtual |
Reimplemented in WindowedWebApp.
|
inlineprotectedvirtual |
Reimplemented in WindowedWebApp, and CardWebApp.
|
protected |
|
inlinevirtual |
Reimplemented in CardWebApp.
|
inline |
|
inlineprotectedvirtual |
Reimplemented in WindowedWebApp.
|
inline |
|
inlinevirtual |
Reimplemented in AlertWebApp.
|
inlinevirtual |
Reimplemented in WindowedWebApp, CardWebApp, and DockWebApp.
|
inlinevirtual |
Reimplemented in CardWebApp.
|
inlinevirtual |
Reimplemented in WindowedWebApp, and DashboardWebApp.
|
inlinevirtual |
Reimplemented in WindowedWebApp.
|
inline |
|
inlineprotectedvirtual |
Reimplemented in WindowedWebApp.
|
inline |
|
inline |
|
inline |
void WebAppBase::relaunch | ( | const char * | args, |
const char * | launchingAppId, | ||
const char * | launchingProcId | ||
) |
|
protectedvirtual |
|
virtual |
Reimplemented in CardWebApp.
|
inlinevirtual |
Reimplemented in CardWebApp.
|
protectedvirtual |
Reimplemented in CardWebApp, and WindowedWebApp.
|
protectedvirtual |
void WebAppBase::setAppDescription | ( | ApplicationDescription * | appDesc | ) |
|
inlineprotected |
|
virtual |
|
inline |
|
virtual |
void WebAppBase::setManualEditorFocusEnabled | ( | bool | enable | ) |
|
virtual |
Reimplemented in WindowedWebApp.
|
virtual |
Reimplemented in WindowedWebApp, and AlertWebApp.
|
protectedvirtual |
|
inlinevirtual |
Reimplemented in CardWebApp.
|
inlinevirtual |
Reimplemented in CardWebApp.
|
protectedvirtual |
|
inlineprotectedvirtual |
Reimplemented in WindowedWebApp.
|
protectedvirtual |
|
protectedvirtualslot |
|
inline |
|
inlineprotectedvirtual |
Reimplemented in WindowedWebApp.
|
protectedvirtual |
|
friend |
|
friend |