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

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

?? syncsourcereport.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_SYNCSOURCEREPORT
#define INCL_SYNCSOURCEREPORT
/** @cond API */
/** @addtogroup Client */
/** @{ */

#include "base/fscapi.h"
#include "base/Log.h"
#include "base/util/utils.h"
#include "spds/constants.h"
#include "event/constants.h"
#include "spds/ItemReport.h"


/** Possible states of syncsource (state member) */
typedef enum SourceState{
    SOURCE_ACTIVE       = 0,        /**< source is part of the current sync and in a sane state */
    SOURCE_INACTIVE     = 1,        /**< source was excluded from the current sync before starting it */
    SOURCE_ERROR        = 2,        /**< source encountered and error sometime during the sync */
} SourceState;


/**
 * SyncSourceReport class rapresents the report of each
 * SyncSource synchronized. It is used to store the sync results
 * for a specific syncsource, its state (active/inactive/error) and
 * the status of each item synchronized (both on client and server side).
 */
class SyncSourceReport {

private:

    // The error code of the last error occurred for this source.
    int         lastErrorCode;

    // The error message of the last error occurred for this source.
    char*       lastErrorMsg;

    // The source name.
    char*       sourceName;

    // The source state, possible values:
    // 0 = SOURCE_ACTIVE   -> used in synchronization
    // 1 = SOURCE_INACTIVE -> ignored in synchronization
    // 2 = SOURCE_ERROR    -> error occurred, will be skipped in sync
    SourceState state;

    // List of ItemReports for client modifications
    ArrayList*  clientAddItems;
    ArrayList*  clientModItems;
    ArrayList*  clientDelItems;

    // List of ItemReports for server modifications
    ArrayList*  serverAddItems;
    ArrayList*  serverModItems;
    ArrayList*  serverDelItems;


    // Return true if status is [200 <-> 299] (successful)
    bool isSuccessful(const int status);

    // Function to initialize members.
    void initialize();

    /*
     * Assign this object with the given SyncReport
     * @param sr the syncReport object
     */
    void assign(const SyncSourceReport& ssr);


public:

    SyncSourceReport(const char* name = NULL);
    SyncSourceReport(SyncSourceReport& ssr);
    virtual ~SyncSourceReport();

    /** source specific error code, see also SyncReport::getLastErrorCode() */
    const int   getLastErrorCode() const;

    /** the current state of the source, see SourceState */
    const SourceState   getState() const;

    /** source specific error message, see also SyncReport::getLastErrorMsg() */
    const char*  getLastErrorMsg() const;

    /** the unique name of the source that this report is about */
    const char*    getSourceName() const;

    void setLastErrorCode(const int code);
    void setState        (const SourceState s);
    void setLastErrorMsg (const char* msg);
    void setSourceName   (const char* name);

    /**
     * Check the state of this source.
     * Returns true if source is active (state = SOURCE_ACTIVE).
     */
    bool checkState();


    /**
     * Get internal pointer to a specific ItemReport.
     *
     * @param target      to select if client/server side          (values = CLIENT - SERVER)
     * @param command     to select the desired list of ItemReport (values = Add - Replace - Delete)
     * @param index       the index of desired item inside the list
     *
     */
    ItemReport* getItemReport(const char* target, const char* command, int index);


    /**
     * Return the total number of ItemReport for a specific list.
     *
     * @param target     to select if client/server side          (values = CLIENT - SERVER)
     * @param command    to select the desired list of ItemReport (values = Add - Replace - Delete)
     *
     */
    int getItemReportCount            (const char* target, const char* command);
    // Only for successful reports.
    int getItemReportSuccessfulCount  (const char* target, const char* command);
    // Only for failed reports.
    int getItemReportFailedCount      (const char* target, const char* command);
    // Only for code = 418 (ALREADY_EXIST)
    int getItemReportAlreadyExistCount(const char* target, const char* command);


    /**
     * Used to add an ItemReport to a specific list.
     * This function is called inside API to store the status of each item
     * added/modified/deleted on client and on server.
     *
     * @param target          to select if client/server side          (values = CLIENT - SERVER)
     * @param command         to select the desired list of ItemReport (values = Add - Replace - Delete)
     * @param ID              the LUID of item                         (used to create the ItemReport element)
     * @param status          the status code of the operation         (used to create the ItemReport element)
     * @param statusMessage   the status message associated to the operation         (used to create the ItemReport element)
     *
     */
    void addItem(const char* target, const char* command, const WCHAR* ID, const int status, const WCHAR* statusMessage);



    /**
     * Utility to switch on the right list, based on target and command.
     *
     * @param target     to select if client/server side          (values = CLIENT - SERVER)
     * @param command    to select the desired list of ItemReport (values = Add - Replace - Delete)
     * @return           a pointer to the desired ArrayList
     *
     */
    ArrayList* getList(const char* target, const char* command) const;

    /**
     * all valid strings for "target", NULL terminated
     */
    static const char* const targets[];

    /**
     * all valid strings for "command", NULL terminated
     */
    static const char* const commands[];

    /**
     * Assign operator
     */
    SyncSourceReport& operator = (const SyncSourceReport& ssr) {
        assign(ssr);
        return *this;
    }
};

/** @} */
/** @endcond */
#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91麻豆精品国产91久久久更新时间| 国产99久久久国产精品潘金| 欧美电影一区二区| 日本美女一区二区| 精品久久久久久久久久久久包黑料| 久久成人免费电影| 久久久久久免费网| a亚洲天堂av| 五月激情综合婷婷| 精品国产伦一区二区三区观看体验| 国产一区二区三区四区五区美女 | 欧美性做爰猛烈叫床潮| 亚洲成人动漫av| 欧美mv和日韩mv的网站| 国产成人免费在线视频| 亚洲乱码国产乱码精品精的特点| 欧美性受xxxx黑人xyx| 青椒成人免费视频| 欧美国产日韩亚洲一区| 91麻豆免费观看| 免费黄网站欧美| 欧美激情自拍偷拍| 在线观看视频一区| 国产黄人亚洲片| 亚洲一区在线视频观看| 精品国产sm最大网站免费看 | 日本伦理一区二区| 久久不见久久见免费视频7| 国产精品久久久久久久久快鸭| 91久久精品一区二区三区| 免费成人在线网站| 中文字幕字幕中文在线中不卡视频| 欧美色中文字幕| 粗大黑人巨茎大战欧美成人| 午夜免费欧美电影| 亚洲色图欧美在线| 久久精品一区二区三区不卡牛牛| 色猫猫国产区一区二在线视频| 久久精品久久精品| 一区二区三区四区五区视频在线观看| 日韩美一区二区三区| 色系网站成人免费| 国产永久精品大片wwwapp| 午夜天堂影视香蕉久久| 国产精品第五页| 久久一区二区视频| 91精品国产乱码| 在线观看国产精品网站| 成人免费高清视频在线观看| 免费在线视频一区| 亚洲大片精品永久免费| 中文字幕在线一区二区三区| 精品国产乱码久久| 91精品国产综合久久蜜臀| 在线观看国产一区二区| 91麻豆产精品久久久久久| 国产 日韩 欧美大片| 久久激情五月激情| 午夜精品福利在线| 一区二区三区在线观看视频| 国产精品女上位| 久久精品免费在线观看| 欧美精品一区二区三区在线播放| 欧美一区二区三区在线视频| 欧美日韩精品欧美日韩精品一综合| 99精品热视频| 一本大道久久a久久综合| 不卡一区在线观看| 粉嫩高潮美女一区二区三区| 国产精品白丝jk黑袜喷水| 国产一区二区三区在线观看免费| 精品在线你懂的| 精品综合免费视频观看| 韩国av一区二区三区四区| 激情欧美一区二区三区在线观看| 美美哒免费高清在线观看视频一区二区 | 国产日韩影视精品| 国产亚洲一区二区在线观看| 国产午夜亚洲精品羞羞网站| 久久精品欧美一区二区三区不卡 | 91精品国产色综合久久不卡电影 | 亚洲成va人在线观看| 亚洲成av人**亚洲成av**| 亚洲午夜在线视频| 午夜婷婷国产麻豆精品| 免费观看在线色综合| 精品在线你懂的| 国产高清精品网站| 成人aa视频在线观看| 色综合天天性综合| 欧美亚洲丝袜传媒另类| 欧美一区二区三区喷汁尤物| 日韩精品中文字幕一区| 久久精品亚洲精品国产欧美 | 性做久久久久久久免费看| 丝袜亚洲精品中文字幕一区| 奇米精品一区二区三区四区| 久久99国产精品久久99| 成人精品国产福利| 在线观看不卡一区| 日韩精品一区二区三区老鸭窝| 久久伊人蜜桃av一区二区| 国产精品欧美一区二区三区| 亚洲一区在线视频观看| 久久69国产一区二区蜜臀| 不卡av在线免费观看| 欧美日韩一区国产| 337p日本欧洲亚洲大胆精品| 国产精品初高中害羞小美女文| 亚洲一区二区三区四区五区中文 | 欧美精品视频www在线观看 | 3d动漫精品啪啪1区2区免费| 精品美女一区二区| 国产人久久人人人人爽| 亚洲国产毛片aaaaa无费看| 久久se这里有精品| 97aⅴ精品视频一二三区| 欧美一区二区黄色| 国产精品久久久久久久久免费丝袜 | 91女厕偷拍女厕偷拍高清| 欧美日韩日本视频| 国产免费观看久久| 天堂在线亚洲视频| av电影一区二区| 日韩精品一区二| 亚洲一区二区三区小说| 国产一区二区h| 欧美日韩一级黄| 日韩美女视频一区二区| 国产真实乱子伦精品视频| 欧美亚洲动漫精品| 中文字幕在线视频一区| 日韩va亚洲va欧美va久久| 色综合久久中文字幕综合网| 精品日韩欧美一区二区| 亚洲午夜免费视频| 99精品黄色片免费大全| 久久只精品国产| 日本成人在线电影网| 一本久道中文字幕精品亚洲嫩| 久久免费看少妇高潮| 日韩1区2区日韩1区2区| 色88888久久久久久影院野外| 国产日韩三级在线| 久久国产精品第一页| 欧美日韩美少妇| 一区二区三区精品视频| 99r国产精品| 久久精品国产亚洲a| 欧美一区二区三区免费观看视频| 色狠狠综合天天综合综合| xvideos.蜜桃一区二区| 日日噜噜夜夜狠狠视频欧美人 | 粉嫩一区二区三区性色av| 日韩午夜激情视频| 日韩精品欧美精品| 欧美日韩精品系列| 亚洲电影一级黄| 欧美性猛片aaaaaaa做受| 亚洲免费av网站| 91在线丨porny丨国产| 国产清纯美女被跳蛋高潮一区二区久久w| 免费亚洲电影在线| 日韩一区二区视频| 蜜乳av一区二区| 日韩欧美成人一区二区| 老司机午夜精品| 日韩一卡二卡三卡四卡| 蜜臀av性久久久久蜜臀aⅴ | 国产欧美精品日韩区二区麻豆天美| 免费成人小视频| 日韩一区二区三区av| 麻豆精品在线播放| 日韩欧美国产小视频| 琪琪久久久久日韩精品| 精品日韩欧美在线| 国产一区二区三区日韩| 国产亚洲va综合人人澡精品| 成人免费高清在线| 综合激情成人伊人| 色综合色综合色综合| 亚洲午夜视频在线观看| 欧美一区二区三区成人| 蜜桃视频一区二区三区| 日韩欧美一卡二卡| 丁香婷婷综合网| 亚洲男人天堂一区| 欧美日韩视频在线一区二区| 老司机精品视频导航| 久久精品欧美一区二区三区不卡| 北条麻妃一区二区三区| 亚洲精品福利视频网站| 日韩免费看的电影| 成人精品免费看| 亚洲国产精品一区二区www在线| 在线不卡一区二区| 国产在线精品免费av| 亚洲欧洲一区二区在线播放| 欧美视频中文一区二区三区在线观看| 日本在线不卡视频|