steffen: server/kolab-horde-framework/kolab-horde-framework/XML_WBXML/WBXML/DTD SyncML.php, NONE, 1.1 SyncMLDevInf.php, NONE, 1.1 SyncMLMetInf.php, NONE, 1.1

cvs at intevation.de cvs at intevation.de
Fri Oct 14 16:33:18 CEST 2005


Author: steffen

Update of /kolabrepository/server/kolab-horde-framework/kolab-horde-framework/XML_WBXML/WBXML/DTD
In directory doto:/tmp/cvs-serv28903/kolab-horde-framework/kolab-horde-framework/XML_WBXML/WBXML/DTD

Added Files:
	SyncML.php SyncMLDevInf.php SyncMLMetInf.php 
Log Message:
Separated Horde Framework from kolab-resource-handlers

--- NEW FILE: SyncML.php ---
<?php

include_once 'XML/WBXML/DTD.php';

/**
 * $Horde: framework/XML_WBXML/WBXML/DTD/SyncML.php,v 1.6 2004/01/01 15:14:46 jan Exp $
 *
 * From Binary XML Content Format Specification Version 1.3, 25 July 2001
 * found at http://www.wapforum.org
 *
 * Copyright 2003-2004 Anthony Mills <amills at pyramid6.com>
 *
 * See the enclosed file COPYING for license information (LGPL).  If you
 * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
 *
 * @package XML_WBXML
 */
class XML_WBXML_DTD_SyncML extends XML_WBXML_DTD {

    function init()
    {
        $this->setTag(5, 'Add');                       // 0x05
        $this->setTag(6, 'Alert');                     // 0x06
        $this->setTag(7, 'Archive');                   // 0x07
        $this->setTag(8, 'Atomic');                    // 0x08
        $this->setTag(9, 'Chal');                      // 0x09
        $this->setTag(10, 'Cmd');                      // 0x0A
        $this->setTag(11, 'CmdID');                    // 0x0B
        $this->setTag(12, 'CmdRef');                   // 0x0C
        $this->setTag(13, 'Copy');                     // 0x0D
        $this->setTag(14, 'Cred');                     // 0x0E
        $this->setTag(15, 'Data');                     // 0x0F

        $this->setTag(16, 'Delete');                   // 0x10
        $this->setTag(17, 'Exec');                     // 0x11
        $this->setTag(18, 'Final');                    // 0x12
        $this->setTag(19, 'Get');                      // 0x13
        $this->setTag(20, 'Item');                     // 0x14
        $this->setTag(21, 'Lang');                     // 0x15
        $this->setTag(22, 'LocName');                  // 0x16
        $this->setTag(23, 'LocURI');                   // 0x17
        $this->setTag(24, 'Map');                      // 0x18
        $this->setTag(25, 'MapItem');                  // 0x19
        $this->setTag(26, 'Meta');                     // 0x1A
        $this->setTag(27, 'MsgID');                    // 0x1B
        $this->setTag(28, 'MsgRef');                   // 0x1C
        $this->setTag(29, 'NoRssp');                   // 0x1D
        $this->setTag(30, 'NoResults');                // 0x1E
        $this->setTag(31, 'Put');                      // 0x1F

        $this->setTag(32, 'Replace');                  // 0x10
        $this->setTag(33, 'RespURI');                  // 0x21
        $this->setTag(34, 'Results');                  // 0x22
        $this->setTag(35, 'Search');                   // 0x23
        $this->setTag(36, 'Sequence');                 // 0x24
        $this->setTag(37, 'SessionID');                // 0x25
        $this->setTag(38, 'SftDel');                   // 0x26
        $this->setTag(39, 'Source');                   // 0x27
        $this->setTag(40, 'SourceRef');                // 0x28
        $this->setTag(41, 'Status');                   // 0x29
        $this->setTag(42, 'Sync');                     // 0x2A
        $this->setTag(43, 'SyncBody');                 // 0x2B
        $this->setTag(44, 'SyncHdr');                  // 0x2C
        $this->setTag(45, 'SyncML');                   // 0x2D
        $this->setTag(46, 'Target');                   // 0x2E
        $this->setTag(47, 'TargetRef');                // 0x2F

        $this->setTag(48, 'Reserved for future use.'); // 0x30
        $this->setTag(49, 'VerDTD');                   // 0x31
        $this->setTag(50, 'VerProto');                 // 0x32
        $this->setTag(51, 'NumberOfChanged');          // 0x33
        $this->setTag(52, 'MoreData');                 // 0x34

        if ($this->version == 0) {
            $this->setCodePage(0, '-//SYNCML//DTD SyncML 1.0//EN', 'syncml:syncml');
            $this->setCodePage(1, '-//SYNCML//DTD MetInf 1.0//EN', 'syncml:metinf');
            $this->setURI('syncml:syncml');
        } else {
            $this->setCodePage(0, '-//SYNCML//DTD SyncML 1.1//EN', 'syncml:syncml1.1');
            $this->setCodePage(1, '-//SYNCML//DTD MetInf 1.1//EN', 'syncml:metinf1.1');
            $this->setURI('syncml:syncml1.1');
        }
    }

}

--- NEW FILE: SyncMLDevInf.php ---
<?php

include_once 'XML/WBXML/DTD.php';

/**
 * $Horde: framework/XML_WBXML/WBXML/DTD/SyncMLDevInf.php,v 1.4 2004/01/01 15:14:46 jan Exp $
 *
 * Copyright 2003-2004 Anthony Mills <amills at pyramid6.com>
 *
 * From Binary XML Content Format Specification Version 1.3, 25 July 2001
 * found at http://www.wapforum.org
 *
 * See the enclosed file COPYING for license information (LGPL).  If you
 * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
 *
 * @package XML_WBXML
 */
class XML_WBXML_DTD_SyncMLDevInf extends XML_WBXML_DTD {

    function init()
    {
        $this->setTag(5, 'CTCap');                   // 0x05
        $this->setTag(6, 'CTType');                  // 0x06
        $this->setTag(7, 'DataStore');               // 0x07
        $this->setTag(8, 'DataType');                // 0x08
        $this->setTag(9, 'DevID');                   // 0x09
        $this->setTag(10, 'DevInf');                 // 0x0A
        $this->setTag(11, 'DevTyp');                 // 0x0B
        $this->setTag(12, 'DisplayName');            // 0x0C
        $this->setTag(13, 'DSMem');                  // 0x0D
        $this->setTag(14, 'Ext');                    // 0x0E
        $this->setTag(15, 'FwV');                    // 0x0F
        $this->setTag(16, 'HwV');                    // 0x10
        $this->setTag(17, 'Man');                    // 0x11
        $this->setTag(18, 'MaxGUIDSize');            // 0x12
        $this->setTag(19, 'MaxID');                  // 0x13
        $this->setTag(20, 'MaxMem');                 // 0x14
        $this->setTag(21, 'Mod');                    // 0x15
        $this->setTag(22, 'OEM');                    // 0x15
        $this->setTag(23, 'ParamName');              // 0x17
        $this->setTag(24, 'PropName');               // 0x18
        $this->setTag(25, 'Rx');                     // 0x19
        $this->setTag(26, 'Rx-Pref');                // 0x1A
        $this->setTag(27, 'SharedMem');              // 0x1B
        $this->setTag(28, 'Size');                   // 0x1C
        $this->setTag(29, 'SourceRef');              // 0x1D
        $this->setTag(30, 'SwV');                    // 0x1E
        $this->setTag(31, 'SyncCap');                // 0x1F
        $this->setTag(32, 'SyncType');               // 0x20
        $this->setTag(33, 'Tx');                     // 0x21
        $this->setTag(34, 'Tx-Pref');                // 0x22
        $this->setTag(35, 'ValEnum');                // 0x23
        $this->setTag(36, 'VerCT');                  // 0x24
        $this->setTag(37, 'VerDTD');                 // 0x25
        $this->setTag(38, 'Xnam');                   // 0x26
        $this->setTag(39, 'Xval');                   // 0x27
        $this->setTag(40, 'UTC');                    // 0x28
        $this->setTag(41, 'SupportNumberOfChanges'); // 0x29
        $this->setTag(42, 'SupportLargeObjs');       // 0x2A

        if ($this->version == 0) {
            $this->setCodePage(0, '-//SYNCML//DTD DevInf 1.0//EN', 'syncml:devinf');
            $this->setURI('sync:devinf');
        } else {
            $this->setCodePage(0, '-//SYNCML//DTD DevInf 1.1//EN', 'syncml:devinf1.1');
            $this->setURI('sync:devinf1.1');
        }
    }

}

--- NEW FILE: SyncMLMetInf.php ---
<?php

include_once 'XML/WBXML/DTD.php';

/**
 * $Horde: framework/XML_WBXML/WBXML/DTD/SyncMLMetInf.php,v 1.4 2004/01/01 15:14:46 jan Exp $
 *
 * Copyright 2003-2004 Anthony Mills <amills at pyramid6.com>
 *
 * From Binary XML Content Format Specification Version 1.3, 25 July 2001
 * found at http://www.wapforum.org
 *
 * See the enclosed file COPYING for license information (LGPL).  If you
 * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
 *
 * @package XML_WBXML
 */
class XML_WBXML_DTD_SyncMLMetInf extends XML_WBXML_DTD {

    function init()
    {
        $this->setTag(5, 'Anchor');      // 0x05
        $this->setTag(6, 'EMI');         // 0x06
        $this->setTag(7, 'Format');      // 0x07
        $this->setTag(8, 'FreeID');      // 0x08
        $this->setTag(9, 'FreeMem');     // 0x09
        $this->setTag(10, 'Last');       // 0x0A
        $this->setTag(11, 'Mark');       // 0x0B
        $this->setTag(12, 'MaxMsgSize'); // 0x0C
        $this->setTag(13, 'Mem');        // 0x0D
        $this->setTag(14, 'MetInf');     // 0x0E
        $this->setTag(15, 'Next');       // 0x0F
        $this->setTag(16, 'NextNonce');  // 0x10
        $this->setTag(17, 'SharedMem');  // 0x11
        $this->setTag(18, 'Size');       // 0x12
        $this->setTag(19, 'Type');       // 0x13
        $this->setTag(20, 'Version');    // 0x14
        $this->setTag(21, 'MaxObjSize'); // 0x15

        if ($this->version == 0) {
            $this->setCodePage(0, '-//SYNCML//DTD SyncML 1.0//EN', 'syncml:syncml');
            $this->setCodePage(1, '-//SYNCML//DTD MetInf 1.0//EN', 'syncml:metinf');
            $this->setURI('syncml:metinf');
        } else {
            $this->setCodePage(0, '-//SYNCML//DTD SyncML 1.1//EN', 'syncml:syncml1.1');
            $this->setCodePage(1, '-//SYNCML//DTD MetInf 1.1//EN', 'syncml:metinf1.1');
            $this->setURI('syncml:metinf1.1');
        }
    }

}





More information about the commits mailing list