亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? syncmlbuilder.h

?? funambol windows mobile plugin source code, the source code is taken from the funambol site
?? H
字號:
/*
 * Copyright (C) 2003-2007 Funambol, Inc
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY, TITLE, NONINFRINGEMENT or FITNESS FOR A PARTICULAR
 * PURPOSE.  See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
 * 02111-1307  USA
 */

#ifndef INCL_SYNCML_BUILDER
#define INCL_SYNCML_BUILDER
/** @cond DEV */

#include "spds/DataTransformer.h"
#include "spds/SyncSource.h"
#include "spds/SyncMap.h"
#include "syncml/core/TagNames.h"
#include "syncml/core/ObjectDel.h"
#include "syncml/formatter/Formatter.h"

class SyncMLBuilder {

    public:
        SyncMLBuilder();
        ~SyncMLBuilder();
        SyncMLBuilder(char*  t, char*  d);

        /*
         * Convert the SyncML object into an xml message
         */
        char*  prepareMsg(SyncML* syncml);

        /*
         * Convert the SyncML object into an xml message
         */
        SyncML*  prepareSyncML(ArrayList* commands, BOOL final);

        /*
        * Set init parameters.
        *
        */
        void     set(const char* t, const char* d);

        /*
        * Prepare the init SyncML* message with credential and db alert to sync
        *
        * @param maxMsgSize       used as MaxMsgSize value in Meta part of the message unless 0
        * @param maxObjSize       used as MaxObjSize value in Meta part of the message unless 0
        */
        SyncML*  prepareInitObject(Cred* cred, ArrayList* alerts, ArrayList* commands,
                                   unsigned long maxMsgSize = 0, unsigned long maxObjSize = 0);

        /*
        * Prepare the SyncHdr message with credential if not null
        *
        * @param maxMsgSize       used as MaxMsgSize value in Meta part of the message unless 0
        * @param maxObjSize       used as MaxObjSize value in Meta part of the message unless 0
        */
        SyncHdr* prepareSyncHdr(Cred* cred, unsigned long maxMsgSize = 0, unsigned long maxObjSize = 0);

        /*
        * Prepare the init alert
        */
        Alert*   prepareInitAlert(SyncSource& source, unsigned long maxObjSize = 0);

        /*
        * Prepare the special init alert for Address Change Notification
        */
        Alert*   prepareAddrChangeAlert(SyncSource& source);

        /*
        * Prepare alert with a specific code, defaults to 222 which requests
        * the server changes.
        */
        Alert*   prepareAlert(SyncSource& source, int code=222);

        /*
        * Prepare the status for Sync Header
        */
        Status*  prepareSyncHdrStatus(Chal* chal, int data);

        /*
        * Prepare the status for Alert command
        */
        Status*  prepareAlertStatus(SyncSource& s,  ArrayList* alert, int authStatusCode);

        /*
        * Prepare the status for Item command. COMMAND could be ADD, REPLACE, DEL
        */
        Status*  prepareItemStatus(const char*  COMMAND, const char*  key, const char*  cmdRef, int code);

        /*
        * Add the status to the corrent list of commands. It is responsible to collapse the status if needed
        */
        void     addItemStatus(ArrayList* previousStatus, Status* status);

        /*
        * Prepare the status for Sync command
        */
        Status*  prepareSyncStatus(SyncSource& source, Sync* sync);

        /**
         * Prepare the status for an arbitrary command
         */
        Status* prepareCmdStatus(AbstractCommand &cmd, int status);

        /**
         * Prepare either a Result with the device infos (if command given) or
         * a Put.
         */
        AbstractCommand *prepareDevInf(AbstractCommand *cmd, DevInf &devInf);

        /*
        * Prepare the Sync object. It doesn't contain any items. It is to prepare the insert of items
        */
        Sync*    prepareSyncCommand(SyncSource& source);

        /*
        * Prepare the Map object. It doesn't containt anything. It is to prepare the insert of map items
        */
        Map*     prepareMapCommand(SyncSource& source);

        /*
        * Prepare the MapItem. It could contain only one MapItem
        */
        MapItem* prepareMapItem(SyncMap* syncMap);

        /*
         * @param[in, out] syncItemOffset           number of bytes of item data already sent, continue there and update it
         * @param maxBytes                          maximum amount of item data to send; always send at least one byte to ensure progress
         * @param[out] sentBytes                    number of bytes actually included in message
         */
        ArrayList* prepareItem(SyncItem* syncItem,
                               long &syncItemOffset, long maxBytes, long &sentBytes,
                               const char*  type, char*  COMMAND);

        /*
        * Add the MapItem to the Map command.
        */
        void     addMapItem(Map* map, MapItem* mapItem);

        /*
        * Add a SyncItem into the modificationCommand. It is responsible to collapse if needed.
        * If the modificationCommand is NULL, then this is the first item and modificationCommand
        * is initialized.
        *
        * @param[in, out] modificationCommand      new items are added here, created if necessary
        * @param[in, out] syncItemOffset           number of bytes of item data already sent, continue there and update it
        * @param maxBytes                          maximum amount of item data to send; always send at least one byte to ensure progress
        * @param COMMAND                           REPLACE_COMMAND_NAME, ADD_COMMAND_NAME, DELETE_COMMAND_NAME
        * @param syncItem                          item to be added, NULL causes the call to return without doing anything
        * @param defaultType                       fallback if the syncItem does not define a type
        * @return number of bytes of item data included
        */
        long addItem(ModificationCommand* &modificationCommand,
                     long &syncItemOffset, long maxBytes,
                     char*  COMMAND, SyncItem* syncItem,
                     const char*  defaultType);

        /*
        * Reset the cmdID counter
        */
        void resetCommandID();

        /*
        * increase the msgID counter
        */
        void increaseMsgRef();

        /*
        * reset MsgId counter
        */

        void resetMessageID();

        /*
        * reset MsgRef counter
        */
        void resetMsgRef();

    private:

        void initialize();

        char*  target;
        char*  device;

        unsigned long sessionID;
        unsigned int  msgID    ;
        unsigned int  cmdID    ;
        unsigned int  msgRef   ;

        ComplexData* getComplexData(SyncItem* syncItem, long &syncItemOffset, long maxBytes, long &sentBytes);

};

/** @endcond */
#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av午夜一区麻豆| 福利视频网站一区二区三区| 久久综合色8888| 在线视频国内自拍亚洲视频| 国产剧情一区在线| 欧美中文字幕一二三区视频| 蓝色福利精品导航| 午夜伊人狠狠久久| 亚洲成av人在线观看| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 国产激情偷乱视频一区二区三区 | 欧美日韩高清一区| 一本久久a久久精品亚洲| 成人性生交大片免费| 欧美精品久久天天躁| 91福利在线看| 欧美自拍偷拍午夜视频| 欧美在线视频全部完| 在线观看成人免费视频| 在线不卡a资源高清| 亚洲国产精品自拍| 欧美极品xxx| 久久在线观看免费| 色噜噜狠狠色综合中国| 成人在线视频一区| av一区二区三区四区| 色婷婷一区二区三区四区| 99久久综合99久久综合网站| 国产亚洲精品aa| 国产精品久久久久久妇女6080 | 欧美日免费三级在线| 欧美日韩高清一区| 2020国产精品自拍| 中文字幕一区视频| 首页欧美精品中文字幕| 久久国产精品99久久久久久老狼| 久久国产精品第一页| 91视频免费观看| 日韩一级视频免费观看在线| 国产欧美日韩激情| 亚洲福利一二三区| 欧美日韩在线播放三区四区| 成人晚上爱看视频| 欧美国产一区二区在线观看| 亚洲色图在线播放| 喷白浆一区二区| 色婷婷亚洲综合| 国产亚洲欧美色| 日韩av电影天堂| 91老师片黄在线观看| 久久色在线观看| 午夜精品久久久| 色老汉一区二区三区| 国产午夜亚洲精品羞羞网站| 日韩黄色免费网站| 欧美主播一区二区三区| 亚洲品质自拍视频网站| 国产ts人妖一区二区| 欧美成人激情免费网| 日日夜夜免费精品视频| 91福利国产成人精品照片| 国产精品美女久久久久久久| av电影在线观看完整版一区二区| 成人免费一区二区三区在线观看| 久久综合久色欧美综合狠狠| 国产日韩欧美精品一区| 亚洲欧洲日韩一区二区三区| 国产精品久久久久久久午夜片| 亚洲女性喷水在线观看一区| 国产精品传媒入口麻豆| 午夜精品视频一区| 欧美亚洲一区三区| 1024亚洲合集| 国产91精品精华液一区二区三区 | 亚洲午夜一二三区视频| 国产精品资源网| 精品美女一区二区三区| 视频一区视频二区在线观看| 91免费看`日韩一区二区| 中文天堂在线一区| 久久精品99久久久| 日韩一级二级三级| 开心九九激情九九欧美日韩精美视频电影 | 亚洲精品国产第一综合99久久 | 老司机午夜精品| 欧美大片顶级少妇| 国产乱子伦一区二区三区国色天香| 日韩欧美一区二区免费| 日韩高清在线电影| 日韩精品在线看片z| 国模大尺度一区二区三区| 久久久久久亚洲综合影院红桃| 国产成人在线网站| 亚洲欧美偷拍卡通变态| 精品视频在线看| 久久精品国产色蜜蜜麻豆| 久久国产精品99精品国产 | 精品国产污污免费网站入口 | 韩国视频一区二区| 亚洲人吸女人奶水| 日韩欧美一级二级| 99久久久久免费精品国产| 亚洲精品免费在线播放| 91精品国产综合久久婷婷香蕉| 久久 天天综合| 亚洲精品视频免费观看| 欧美成人国产一区二区| 91亚洲精品乱码久久久久久蜜桃| 大陆成人av片| 性做久久久久久免费观看| 久久网站最新地址| 欧美日韩国产首页| 色素色在线综合| av电影一区二区| 久久成人综合网| 久久激五月天综合精品| 一区二区三国产精华液| 久久伊99综合婷婷久久伊| 精品视频1区2区| 色婷婷综合久久久| av不卡免费电影| 国产成人免费av在线| 欧美日韩一区二区三区在线看| 成人av资源在线观看| 激情偷乱视频一区二区三区| 裸体在线国模精品偷拍| 日韩制服丝袜av| 奇米精品一区二区三区四区| 污片在线观看一区二区| 一区二区三区四区高清精品免费观看| 久久精品日韩一区二区三区| 久久综合视频网| 精品少妇一区二区三区在线播放| 欧美一区二区久久| 欧美一级在线免费| 精品国产乱码久久久久久老虎 | 欧美一级夜夜爽| 91精品国产一区二区三区蜜臀| 日韩一区二区免费在线电影 | 亚洲六月丁香色婷婷综合久久 | 亚洲一区二区三区四区不卡| 一区二区三区中文在线| 亚洲综合久久av| 日韩影院免费视频| 精品亚洲成a人| 91同城在线观看| 91精品国产综合久久小美女| 国产一区二区免费视频| 国产成人免费视频网站| 91国在线观看| 日韩一二三区视频| 开心九九激情九九欧美日韩精美视频电影 | 国产成人午夜片在线观看高清观看| 91天堂素人约啪| 欧美不卡在线视频| 亚洲男人的天堂av| 美女视频一区在线观看| 成人网在线播放| 一区二区三区不卡在线观看| 久久99久久99| 91成人免费网站| 精品精品国产高清a毛片牛牛| 一个色综合网站| 国产999精品久久久久久| 欧美挠脚心视频网站| 亚洲特级片在线| 激情深爱一区二区| 欧美日韩免费不卡视频一区二区三区| 久久影院午夜片一区| 视频一区二区三区在线| 93久久精品日日躁夜夜躁欧美| 欧美成人a∨高清免费观看| 日韩中文字幕91| 91精品国产手机| 日韩国产欧美三级| 亚洲免费在线观看视频| 91香蕉视频黄| 亚洲影视在线观看| 成人av电影免费在线播放| 国产亚洲欧洲997久久综合| 美女视频黄久久| 久久综合狠狠综合| 狠狠色综合日日| 精品国产青草久久久久福利| 蜜臀av在线播放一区二区三区 | 成人性生交大片免费看中文 | 国产精品欧美极品| 不卡的av电影| 国产精品国产三级国产aⅴ原创| 不卡的电影网站| 国产在线看一区| 国产三级精品三级| 91蜜桃网址入口| 日本vs亚洲vs韩国一区三区| 日韩欧美国产三级| www.亚洲人| 免费成人美女在线观看| 久久先锋影音av鲁色资源网| jizz一区二区| 亚洲国产人成综合网站|