|
Wt examples
3.3.8
|
A chat application widget. More...

Public Member Functions | |
| ChatWidget (const WEnvironment &env, SimpleChatServer &server) | |
Public Member Functions inherited from Wt::WApplication | |
| WApplication (const WEnvironment &environment) | |
| ~WApplication () | |
| const WEnvironment & | environment () const |
| WContainerWidget * | root () const |
| WWidget * | findWidget (const std::string &name) |
| void | setTitle (const WString &title) |
| const WString & | title () const |
| const WString & | closeMessage () const |
| WLocalizedStrings * | localizedStrings () |
| void | setLocalizedStrings (WLocalizedStrings *stringResolver) |
| WMessageResourceBundle & | messageResourceBundle () |
| void | setLocale (const WLocale &locale) |
| const WLocale & | locale () const |
| virtual void | refresh () |
| void | bindWidget (WWidget *widget, const std::string &domId) |
| std::string | docRoot () const |
| void | setConnectionMonitor (const std::string &jsObject) |
| std::string | sessionId () const |
| void | changeSessionId () |
| void | processEvents () |
| virtual void | waitForEvent () |
| void | setAjaxMethod (AjaxMethod method) |
| AjaxMethod | ajaxMethod () const |
| virtual void | initialize () |
| virtual void | finalize () |
| void | setTwoPhaseRenderingThreshold (int size) |
| void | setCookie (const std::string &name, const std::string &value, int maxAge, const std::string &domain="", const std::string &path="", bool secure=false) |
| void | removeCookie (const std::string &name, const std::string &domain="", const std::string &path="") |
| void | addMetaLink (const std::string &href, const std::string &rel, const std::string &media, const std::string &hreflang, const std::string &type, const std::string &sizes, bool disabled) |
| void | removeMetaLink (const std::string &href) |
| void | addMetaHeader (const std::string &name, const WString &content, const std::string &lang="") |
| void | addMetaHeader (MetaHeaderType type, const std::string &name, const WString &content, const std::string &lang="") |
| WString | metaHeader (MetaHeaderType type, const std::string &name) const |
| void | removeMetaHeader (MetaHeaderType type, const std::string &name="") |
| WLogEntry | log (const std::string &type) const |
| void | setLoadingIndicator (WLoadingIndicator *indicator) |
| WLoadingIndicator * | loadingIndicator () const |
| void | quit () |
| void | quit (const WString &restartMessage) |
| bool | isQuited () const |
| bool | hasQuit () const |
| ::int64_t | maximumRequestSize () const |
| Signal< ::int64_t > & | requestTooLarge () |
| void | setConfirmCloseMessage (const WString &message) |
| void | enableInternalPaths () |
| void | deferRendering () |
| void | resumeRendering () |
| boost::function< void()> | bind (const F &f) |
| std::string | encodeUntrustedUrl (const std::string &url) const |
| void | pushExposedConstraint (WWidget *w) |
| WCssStyleSheet & | styleSheet () |
| void | useStyleSheet (const WLink &link, const std::string &media="all") |
| void | useStyleSheet (const WLink &link, const std::string &condition, const std::string &media) |
| void | useStyleSheet (const WCssStyleSheet &styleSheet, const std::string &condition="") |
| void | removeStyleSheet (const WLink &link) |
| void | setTheme (const WTheme *theme) |
| const WTheme * | theme () const |
| void | setCssTheme (const std::string &name) |
| void | setLayoutDirection (LayoutDirection direction) |
| LayoutDirection | layoutDirection () const |
| void | setBodyClass (const std::string &styleClass) |
| std::string | bodyClass () const |
| void | setHtmlClass (const std::string &styleClass) |
| std::string | htmlClass () const |
| std::string | url (const std::string &internalPath=std::string()) const |
| virtual std::string | makeAbsoluteUrl (const std::string &url) const |
| std::string | resolveRelativeUrl (const std::string &url) const |
| std::string | bookmarkUrl () const |
| std::string | bookmarkUrl (const std::string &internalPath) const |
| void | setInternalPath (const std::string &path, bool emitChange=false) |
| void | setInternalPathDefaultValid (bool valid) |
| bool | internalPathDefaultValid () const |
| void | setInternalPathValid (bool valid) |
| bool | internalPathValid () const |
| std::string | internalPath () const |
| std::string | internalPathNextPart (const std::string &path) const |
| std::string | internalSubPath (const std::string &path) const |
| bool | internalPathMatches (const std::string &path) const |
| Signal< std::string > & | internalPathChanged () |
| Signal< std::string > & | internalPathInvalid () |
| void | redirect (const std::string &url) |
| void | enableUpdates (bool enabled=true) |
| bool | updatesEnabled () const |
| void | triggerUpdate () |
| UpdateLock | getUpdateLock () |
| void | attachThread (bool attach=true) |
| void | doJavaScript (const std::string &javascript, bool afterLoaded=true) |
| void | addAutoJavaScript (const std::string &javascript) |
| void | declareJavaScriptFunction (const std::string &name, const std::string &function) |
| bool | require (const std::string &url, const std::string &symbol=std::string()) |
| bool | requireJQuery (const std::string &url) |
| bool | customJQuery () const |
| void | setJavaScriptClass (const std::string &className) |
| std::string | javaScriptClass () |
| EventSignal< WKeyEvent > & | globalKeyWentDown () |
| EventSignal< WKeyEvent > & | globalKeyPressed () |
| EventSignal< WKeyEvent > & | globalKeyWentUp () |
| EventSignal & | globalEnterPressed () |
| EventSignal & | globalEscapePressed () |
| WCssStyleSheet & | styleSheet () |
| void | useStyleSheet (const WLink &link, const std::string &media="all") |
| void | useStyleSheet (const WLink &link, const std::string &condition, const std::string &media) |
| void | useStyleSheet (const WCssStyleSheet &styleSheet, const std::string &condition="") |
| void | removeStyleSheet (const WLink &link) |
| void | setTheme (const WTheme *theme) |
| const WTheme * | theme () const |
| void | setCssTheme (const std::string &name) |
| void | setLayoutDirection (LayoutDirection direction) |
| LayoutDirection | layoutDirection () const |
| void | setBodyClass (const std::string &styleClass) |
| std::string | bodyClass () const |
| void | setHtmlClass (const std::string &styleClass) |
| std::string | htmlClass () const |
| std::string | url (const std::string &internalPath=std::string()) const |
| virtual std::string | makeAbsoluteUrl (const std::string &url) const |
| std::string | resolveRelativeUrl (const std::string &url) const |
| std::string | bookmarkUrl () const |
| std::string | bookmarkUrl (const std::string &internalPath) const |
| void | setInternalPath (const std::string &path, bool emitChange=false) |
| void | setInternalPathDefaultValid (bool valid) |
| bool | internalPathDefaultValid () const |
| void | setInternalPathValid (bool valid) |
| bool | internalPathValid () const |
| std::string | internalPath () const |
| std::string | internalPathNextPart (const std::string &path) const |
| std::string | internalSubPath (const std::string &path) const |
| bool | internalPathMatches (const std::string &path) const |
| Signal< std::string > & | internalPathChanged () |
| Signal< std::string > & | internalPathInvalid () |
| void | redirect (const std::string &url) |
| void | enableUpdates (bool enabled=true) |
| bool | updatesEnabled () const |
| void | triggerUpdate () |
| UpdateLock | getUpdateLock () |
| void | attachThread (bool attach=true) |
| void | doJavaScript (const std::string &javascript, bool afterLoaded=true) |
| void | addAutoJavaScript (const std::string &javascript) |
| void | declareJavaScriptFunction (const std::string &name, const std::string &function) |
| bool | require (const std::string &url, const std::string &symbol=std::string()) |
| bool | requireJQuery (const std::string &url) |
| bool | customJQuery () const |
| void | setJavaScriptClass (const std::string &className) |
| std::string | javaScriptClass () |
| EventSignal< WKeyEvent > & | globalKeyWentDown () |
| EventSignal< WKeyEvent > & | globalKeyPressed () |
| EventSignal< WKeyEvent > & | globalKeyWentUp () |
| EventSignal & | globalEnterPressed () |
| EventSignal & | globalEscapePressed () |
Public Member Functions inherited from Wt::WObject | |
| WObject (WObject *parent=0) | |
| virtual | ~WObject () |
| virtual const std::string | id () const |
| virtual void | setObjectName (const std::string &name) |
| virtual std::string | objectName () const |
| void | resetLearnedSlots () |
| void | resetLearnedSlot (void(T::*method)()) |
| WStatelessSlot * | implementStateless (void(T::*method)()) |
| WStatelessSlot * | implementStateless (void(T::*method)(), void(T::*undoMethod)()) |
| void | isNotStateless () |
| WStatelessSlot * | implementJavaScript (void(T::*method)(), const std::string &jsCode) |
| void | addChild (WObject *child) |
| virtual void | removeChild (WObject *child) |
| const std::vector< WObject * > & | children () const |
| WObject * | parent () const |
Private Attributes | |
| JSignal< WString > | login_ |
Additional Inherited Members | |
Public Types inherited from Wt::WApplication | |
| enum | AjaxMethod |
| typedef Wt::ApplicationCreator | ApplicationCreator |
| typedef boost::function< WApplication *(const WEnvironment &)> | ApplicationCreator |
Public Types inherited from Wt::WObject | |
| typedef void(WObject::* | Method) () |
Static Public Member Functions inherited from Wt::WApplication | |
| static WApplication * | instance () |
| static std::string | resourcesUrl () |
| static std::string | relativeResourcesUrl () |
| static std::string | appRoot () |
| static bool | readConfigurationProperty (const std::string &name, std::string &value) |
Public Attributes inherited from Wt::WApplication | |
| XMLHttpRequest | |
| DynamicScriptTag | |
Protected Member Functions inherited from Wt::WApplication | |
| virtual void | notify (const WEvent &e) |
| virtual bool | isExposed (WWidget *w) const |
| virtual void | enableAjax () |
| virtual void | unload () |
| virtual void | handleJavaScriptError (const std::string &errorText) |
Protected Member Functions inherited from Wt::WObject | |
| virtual WStatelessSlot * | getStateless (Method method) |
Static Protected Member Functions inherited from Wt::WObject | |
| static WObject * | sender () |
A chat application widget.
Definition at line 98 of file simpleChat.C.
Definition at line 104 of file simpleChat.C.
1.8.11