<html>
<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The source code</title>
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>
</head>
<body onload="prettyPrint();">
<pre class="prettyprint lang-js">/*!
- * Ext JS Library 3.0.3
- * Copyright(c) 2006-2009 Ext JS, LLC
+ * Ext JS Library 3.2.0
+ * Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
*/
-<div id="cls-Ext.direct.Provider"></div>/**\r
- * @class Ext.direct.Provider\r
- * @extends Ext.util.Observable\r
- * <p>Ext.direct.Provider is an abstract class meant to be extended.</p>\r
- * \r
- * <p>For example ExtJs implements the following subclasses:</p>\r
- * <pre><code>\r
-Provider\r
-|\r
-+---{@link Ext.direct.JsonProvider JsonProvider} \r
- |\r
- +---{@link Ext.direct.PollingProvider PollingProvider} \r
- |\r
- +---{@link Ext.direct.RemotingProvider RemotingProvider} \r
- * </code></pre>\r
- * @abstract\r
- */\r
-Ext.direct.Provider = Ext.extend(Ext.util.Observable, { \r
- <div id="cfg-Ext.direct.Provider-id"></div>/**\r
- * @cfg {String} id\r
- * The unique id of the provider (defaults to an {@link Ext#id auto-assigned id}).\r
- * You should assign an id if you need to be able to access the provider later and you do\r
- * not have an object reference available, for example:\r
- * <pre><code>\r
-Ext.Direct.addProvider(\r
- {\r
- type: 'polling',\r
- url: 'php/poll.php',\r
- id: 'poll-provider'\r
- }\r
-);\r
- \r
-var p = {@link Ext.Direct Ext.Direct}.{@link Ext.Direct#getProvider getProvider}('poll-provider');\r
-p.disconnect();\r
- * </code></pre>\r
- */\r
- \r
- <div id="cfg-Ext.direct.Provider-priority"></div>/**\r
- * @cfg {Number} priority\r
- * Priority of the request. Lower is higher priority, <tt>0</tt> means "duplex" (always on).\r
- * All Providers default to <tt>1</tt> except for PollingProvider which defaults to <tt>3</tt>.\r
- */ \r
- priority: 1,\r
-\r
- <div id="cfg-Ext.direct.Provider-type"></div>/**\r
- * @cfg {String} type\r
- * <b>Required</b>, <tt>undefined</tt> by default. The <tt>type</tt> of provider specified\r
- * to {@link Ext.Direct Ext.Direct}.{@link Ext.Direct#addProvider addProvider} to create a\r
- * new Provider. Acceptable values by default are:<div class="mdetail-params"><ul>\r
- * <li><b><tt>polling</tt></b> : {@link Ext.direct.PollingProvider PollingProvider}</li>\r
- * <li><b><tt>remoting</tt></b> : {@link Ext.direct.RemotingProvider RemotingProvider}</li>\r
- * </ul></div>\r
- */ \r
- \r
- // private\r
- constructor : function(config){\r
- Ext.apply(this, config);\r
- this.addEvents(\r
- <div id="event-Ext.direct.Provider-connect"></div>/**\r
- * @event connect\r
- * Fires when the Provider connects to the server-side\r
- * @param {Ext.direct.Provider} provider The {@link Ext.direct.Provider Provider}.\r
- */ \r
- 'connect',\r
- <div id="event-Ext.direct.Provider-disconnect"></div>/**\r
- * @event disconnect\r
- * Fires when the Provider disconnects from the server-side\r
- * @param {Ext.direct.Provider} provider The {@link Ext.direct.Provider Provider}.\r
- */ \r
- 'disconnect',\r
- <div id="event-Ext.direct.Provider-data"></div>/**\r
- * @event data\r
- * Fires when the Provider receives data from the server-side\r
- * @param {Ext.direct.Provider} provider The {@link Ext.direct.Provider Provider}.\r
- * @param {event} e The {@link Ext.Direct#eventTypes Ext.Direct.Event type} that occurred.\r
- */ \r
- 'data',\r
- <div id="event-Ext.direct.Provider-exception"></div>/**\r
- * @event exception\r
- * Fires when the Provider receives an exception from the server-side\r
- */ \r
- 'exception'\r
- );\r
- Ext.direct.Provider.superclass.constructor.call(this, config);\r
- },\r
-\r
- <div id="method-Ext.direct.Provider-isConnected"></div>/**\r
- * Returns whether or not the server-side is currently connected.\r
- * Abstract method for subclasses to implement.\r
- */\r
- isConnected: function(){\r
- return false;\r
- },\r
-\r
- <div id="prop-Ext.direct.Provider-connect"></div>/**\r
- * Abstract methods for subclasses to implement.\r
- */\r
- connect: Ext.emptyFn,\r
- \r
- <div id="prop-Ext.direct.Provider-disconnect"></div>/**\r
- * Abstract methods for subclasses to implement.\r
- */\r
- disconnect: Ext.emptyFn\r
-});\r
-</pre>
+<div id="cls-Ext.direct.Provider"></div>/**
+ * @class Ext.direct.Provider
+ * @extends Ext.util.Observable
+ * <p>Ext.direct.Provider is an abstract class meant to be extended.</p>
+ *
+ * <p>For example ExtJs implements the following subclasses:</p>
+ * <pre><code>
+Provider
+|
++---{@link Ext.direct.JsonProvider JsonProvider}
+ |
+ +---{@link Ext.direct.PollingProvider PollingProvider}
+ |
+ +---{@link Ext.direct.RemotingProvider RemotingProvider}
+ * </code></pre>
+ * @abstract
+ */
+Ext.direct.Provider = Ext.extend(Ext.util.Observable, {
+ <div id="cfg-Ext.direct.Provider-id"></div>/**
+ * @cfg {String} id
+ * The unique id of the provider (defaults to an {@link Ext#id auto-assigned id}).
+ * You should assign an id if you need to be able to access the provider later and you do
+ * not have an object reference available, for example:
+ * <pre><code>
+Ext.Direct.addProvider(
+ {
+ type: 'polling',
+ url: 'php/poll.php',
+ id: 'poll-provider'
+ }
+);
+
+var p = {@link Ext.Direct Ext.Direct}.{@link Ext.Direct#getProvider getProvider}('poll-provider');
+p.disconnect();
+ * </code></pre>
+ */
+
+ <div id="cfg-Ext.direct.Provider-priority"></div>/**
+ * @cfg {Number} priority
+ * Priority of the request. Lower is higher priority, <tt>0</tt> means "duplex" (always on).
+ * All Providers default to <tt>1</tt> except for PollingProvider which defaults to <tt>3</tt>.
+ */
+ priority: 1,
+
+ <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);
+ },
+
+ <div id="method-Ext.direct.Provider-isConnected"></div>/**
+ * Returns whether or not the server-side is currently connected.
+ * Abstract method for subclasses to implement.
+ */
+ isConnected: function(){
+ return false;
+ },
+
+ <div id="prop-Ext.direct.Provider-connect"></div>/**
+ * Abstract methods for subclasses to implement.
+ */
+ connect: Ext.emptyFn,
+
+ <div id="prop-Ext.direct.Provider-disconnect"></div>/**
+ * Abstract methods for subclasses to implement.
+ */
+ disconnect: Ext.emptyFn
+});
+</pre>
</body>
</html>
\ No newline at end of file