API documentation  2.0rc1
Public Member Functions | List of all members
client::ServiceWorkerContainer Class Reference

#include <clientlib.h>

Inherits client::EventTarget.

Public Member Functions

ServiceWorkerget_controller ()
 
EventListenerget_oncontrollerchange ()
 
void set_oncontrollerchange (EventListener *)
 
EventListenerget_onmessage ()
 
void set_onmessage (EventListener *)
 
EventListenerget_onmessageerror ()
 
void set_onmessageerror (EventListener *)
 
Promiseget_ready ()
 
PromisegetRegistration ()
 
PromisegetRegistration (const String &clientURL)
 
PromisegetRegistrations ()
 
Promise_register (const String &scriptURL)
 
Promise_register (const String &scriptURL, RegistrationOptions *options)
 
void startMessages ()
 
void addEventListener (const String &type, EventListener *listener)
 
void addEventListener (const String &type, EventListener *listener, bool options)
 
void addEventListener (const String &type, EventListener *listener, AddEventListenerOptions *options)
 
void addEventListener (const String &type, EventListenerObject *listener)
 
void addEventListener (const String &type, EventListenerObject *listener, AddEventListenerOptions *options)
 
void removeEventListener (const String &type, EventListener *listener)
 
void removeEventListener (const String &type, EventListener *listener, bool options)
 
void removeEventListener (const String &type, EventListener *listener, EventListenerOptions *options)
 
void removeEventListener (const String &type, EventListenerObject *listener)
 
void removeEventListener (const String &type, EventListenerObject *listener, EventListenerOptions *options)
 
ServiceWorkerContainerget_prototype ()
 
void set_prototype (ServiceWorkerContainer *)
 
 ServiceWorkerContainer ()
 
- Public Member Functions inherited from client::EventTarget
void addEventListener (const String &type, EventListener *listener)
 
void addEventListener (const String &type, EventListener *listener, bool options)
 
void addEventListener (const String &type, EventListener *listener, AddEventListenerOptions *options)
 
void addEventListener (const String &type, EventListenerObject *listener)
 
void addEventListener (const String &type, EventListenerObject *listener, AddEventListenerOptions *options)
 
bool dispatchEvent (Event *evt)
 
void removeEventListener (const String &type)
 
void removeEventListener (const String &type, EventListener *listener)
 
void removeEventListener (const String &type, EventListener *listener, EventListenerOptions *options)
 
void removeEventListener (const String &type, EventListener *listener, bool options)
 
void removeEventListener (const String &type, EventListenerObject *listener)
 
void removeEventListener (const String &type, EventListenerObject *listener, bool options)
 
EventTargetget_prototype ()
 
void set_prototype (EventTarget *)
 
 EventTarget ()
 
- Public Member Functions inherited from client::Object
 Object ()
 
template<typename T >
valueOf ()
 
 operator double () const
 
Objectoperator[] (const client::String &name) const
 
void set_ (const client::String &name, Object *v)
 
template<typename T , typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
void set_ (const client::String &name, T v)
 
bool hasOwnProperty (const client::String &name)
 

Constructor & Destructor Documentation

◆ ServiceWorkerContainer()

client::ServiceWorkerContainer::ServiceWorkerContainer ( )

Member Function Documentation

◆ _register() [1/2]

Promise* client::ServiceWorkerContainer::_register ( const String scriptURL)

◆ _register() [2/2]

Promise* client::ServiceWorkerContainer::_register ( const String scriptURL,
RegistrationOptions options 
)

◆ addEventListener() [1/5]

void client::ServiceWorkerContainer::addEventListener ( const String type,
EventListener listener 
)

◆ addEventListener() [2/5]

void client::ServiceWorkerContainer::addEventListener ( const String type,
EventListener listener,
bool  options 
)

◆ addEventListener() [3/5]

void client::ServiceWorkerContainer::addEventListener ( const String type,
EventListener listener,
AddEventListenerOptions options 
)

◆ addEventListener() [4/5]

void client::ServiceWorkerContainer::addEventListener ( const String type,
EventListenerObject listener 
)

◆ addEventListener() [5/5]

void client::ServiceWorkerContainer::addEventListener ( const String type,
EventListenerObject listener,
AddEventListenerOptions options 
)

◆ get_controller()

ServiceWorker* client::ServiceWorkerContainer::get_controller ( )

◆ get_oncontrollerchange()

EventListener* client::ServiceWorkerContainer::get_oncontrollerchange ( )

◆ get_onmessage()

EventListener* client::ServiceWorkerContainer::get_onmessage ( )

◆ get_onmessageerror()

EventListener* client::ServiceWorkerContainer::get_onmessageerror ( )

◆ get_prototype()

ServiceWorkerContainer* client::ServiceWorkerContainer::get_prototype ( )

◆ get_ready()

Promise* client::ServiceWorkerContainer::get_ready ( )

◆ getRegistration() [1/2]

Promise* client::ServiceWorkerContainer::getRegistration ( )

◆ getRegistration() [2/2]

Promise* client::ServiceWorkerContainer::getRegistration ( const String clientURL)

◆ getRegistrations()

Promise* client::ServiceWorkerContainer::getRegistrations ( )

◆ removeEventListener() [1/5]

void client::ServiceWorkerContainer::removeEventListener ( const String type,
EventListener listener 
)

◆ removeEventListener() [2/5]

void client::ServiceWorkerContainer::removeEventListener ( const String type,
EventListener listener,
bool  options 
)

◆ removeEventListener() [3/5]

void client::ServiceWorkerContainer::removeEventListener ( const String type,
EventListener listener,
EventListenerOptions options 
)

◆ removeEventListener() [4/5]

void client::ServiceWorkerContainer::removeEventListener ( const String type,
EventListenerObject listener 
)

◆ removeEventListener() [5/5]

void client::ServiceWorkerContainer::removeEventListener ( const String type,
EventListenerObject listener,
EventListenerOptions options 
)

◆ set_oncontrollerchange()

void client::ServiceWorkerContainer::set_oncontrollerchange ( EventListener )

◆ set_onmessage()

void client::ServiceWorkerContainer::set_onmessage ( EventListener )

◆ set_onmessageerror()

void client::ServiceWorkerContainer::set_onmessageerror ( EventListener )

◆ set_prototype()

void client::ServiceWorkerContainer::set_prototype ( ServiceWorkerContainer )

◆ startMessages()

void client::ServiceWorkerContainer::startMessages ( )