- <div id="method-Ext.state.Provider-clear"></div>/**
- * Clears a value from the state
- * @param {String} name The key name
- */
- clear : function(name){
- delete this.state[name];
- this.fireEvent("statechange", this, name, null);
+ <div id="cfg-Ext.direct.Provider-type"></div>/**
+ * @cfg {String} type
+ * <b>Required</b>, <tt>undefined</tt> by default. The <tt>type</tt> of provider specified
+ * to {@link Ext.Direct Ext.Direct}.{@link Ext.Direct#addProvider addProvider} to create a
+ * new Provider. Acceptable values by default are:<div class="mdetail-params"><ul>
+ * <li><b><tt>polling</tt></b> : {@link Ext.direct.PollingProvider PollingProvider}</li>
+ * <li><b><tt>remoting</tt></b> : {@link Ext.direct.RemotingProvider RemotingProvider}</li>
+ * </ul></div>
+ */
+
+ // private
+ constructor : function(config){
+ Ext.apply(this, config);
+ this.addEvents(
+ <div id="event-Ext.direct.Provider-connect"></div>/**
+ * @event connect
+ * Fires when the Provider connects to the server-side
+ * @param {Ext.direct.Provider} provider The {@link Ext.direct.Provider Provider}.
+ */
+ 'connect',
+ <div id="event-Ext.direct.Provider-disconnect"></div>/**
+ * @event disconnect
+ * Fires when the Provider disconnects from the server-side
+ * @param {Ext.direct.Provider} provider The {@link Ext.direct.Provider Provider}.
+ */
+ 'disconnect',
+ <div id="event-Ext.direct.Provider-data"></div>/**
+ * @event data
+ * Fires when the Provider receives data from the server-side
+ * @param {Ext.direct.Provider} provider The {@link Ext.direct.Provider Provider}.
+ * @param {event} e The {@link Ext.Direct#eventTypes Ext.Direct.Event type} that occurred.
+ */
+ 'data',
+ <div id="event-Ext.direct.Provider-exception"></div>/**
+ * @event exception
+ * Fires when the Provider receives an exception from the server-side
+ */
+ 'exception'
+ );
+ Ext.direct.Provider.superclass.constructor.call(this, config);