Update of /cvsroot/thyapi/thyapi/thyutils
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20002/thyutils
Modified Files:
thydatasource.js thyprotocol.js
Log Message:
Commiting file additions and modification from SVN revision 1876 to 1877...
Changes made by rpereira on 2005-09-01 15:28:52 +0200 (Thu, 01 Sep 2005) corresponding to SVN revision 1877 with message:
- New thyFormDialog which implements a thyDialog with a Data Source
- bugfixing on thyDataSource, thyWindow and thyProtocol
Index: thydatasource.js
===================================================================
RCS file: /cvsroot/thyapi/thyapi/thyutils/thydatasource.js,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** thydatasource.js 1 Sep 2005 01:07:15 -0000 1.4
--- thydatasource.js 1 Sep 2005 13:11:43 -0000 1.5
***************
*** 114,123 ****
{
if (typeof(protocol) == 'string')
! this.protocol = new thyProtocol('xmlrpc', url);
else
this.protocol = protocol;
! this.connector.setContentType(protocol.getContentType());
! this.serverURL = protocol.getServerURL();
}
--- 114,123 ----
{
if (typeof(protocol) == 'string')
! this.protocol = thyProtocol(protocol, url);
else
this.protocol = protocol;
! this.connector.setContentType(this.protocol.getContentType());
! this.serverURL = this.protocol.getServerURL();
}
Index: thyprotocol.js
===================================================================
RCS file: /cvsroot/thyapi/thyapi/thyutils/thyprotocol.js,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** thyprotocol.js 23 Aug 2005 13:14:04 -0000 1.2
--- thyprotocol.js 1 Sep 2005 13:11:43 -0000 1.3
***************
*** 17,29 ****
/**
! * Protocol Abstract Class
*
! * This class implements the commom functions of Protocols. This is just an
! * abstract class. It MUST be derived and the methods MUST be implemented
! * correctly.
*
- * @abstract
- * @author Raphael Derosso Pereira <ra...@th...>
- * @copyright Copyright © Raphael Derosso Pereira
*/
function thyProtocol(protocol, url)
--- 17,28 ----
/**
! * Class: thyProtocol
*
! * Protocol Abstract Class
! *
! * This class implements the commom functions of Protocols. This is just an
! * abstract class. It MUST be derived and the methods MUST be implemented
! * correctly.
*
*/
function thyProtocol(protocol, url)
***************
*** 43,53 ****
/**
! * Encode the data in this Protocols format
*
! * This method MUST be implemented in derived class.
*
- * @public
- * @param string method Method name
- * @param object param The data that is sent as Method Parameter
*/
p.encode = function (method, param)
--- 42,52 ----
/**
! * Method: encode
*
! * Returns the generated message that corresponds to the method
! * call in the protocol format
! *
! * This method MUST be implemented in derived class.
*
*/
p.encode = function (method, param)
***************
*** 57,66 ****
/**
! * Decode the data that is in this Protocols format
*
! * This method MUST be implemented in derived class.
*
- * @public
- * @param string response The text returned by server
*/
p.decode = function (response)
--- 56,65 ----
/**
! * Method: decode
*
! * Decode the data that is in this Protocols format
! *
! * This method MUST be implemented in derived class.
*
*/
p.decode = function (response)
|