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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? syncsource.cpp

?? funambol windows mobile plugin source code, the source code is taken from the funambol site
?? CPP
字號(hào):
/*
 * 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
 */

#include "spds/SyncSource.h"
#include "base/util/utils.h"
#include "base/Log.h"
#include "client/SyncClient.h"
#include "spds/spdsutils.h"

static SyncSourceConfig defaultConfig;

SyncSource::SyncSource(const WCHAR* sourceName, SyncSourceConfig *sc) :
    config(sc ? *sc : defaultConfig)
{
    name   = NULL;
    report = NULL;

    setPreferredSyncMode(sc ? syncModeCode(sc->getSync()) : SYNC_NONE);
    if ((sourceName == NULL) || (*sourceName == 0)) {
        lastErrorCode = ERR_PARAMETER_IS_EMPTY;
        sprintf(lastErrorMsg, "name cannot be empty (NULL or 0-length)");
        goto finally;
    }
    name = wstrdup(sourceName);

  finally:

    lastSync = 0;
	nextSync = 0;

    //errorHandler = NULL;
    filter       = NULL;
}

/**
 * Release dynamically allocated resources
 */
SyncSource::~SyncSource() {
    if (name) {
        delete [] name;
    }
    if (filter) {
       delete filter;
    }
    report = NULL;
}


/*
 * Returns the source name.
 */
const WCHAR *SyncSource::getName() {
     return name;
 }


// Return pointer to report object
SyncSourceReport* SyncSource::getReport() {
    return report;
}

// Set the report pointer with the given one
// (no copy, only assign the pointer to the external one)
void SyncSource::setReport(SyncSourceReport* sr) {
    report = sr;
}


/*
 * Sets the synchronization mode required for the
 * SyncSource.
 *
 * @param syncMode - sync synchronization mode
 */
void SyncSource::setPreferredSyncMode(SyncMode sourceSyncMode) {
    syncMode = sourceSyncMode;
}

/*
 * Returns the preferred synchronization mode for the SyncSource
 */
SyncMode SyncSource::getPreferredSyncMode() {
    return syncMode;
}

/*
 * Sets the server imposed synchronization mode for the SyncSource.
 *
 * @param syncMode - sync synchronization mode
 */
void SyncSource::setSyncMode(SyncMode mode) {
    syncMode = mode;
}

/*
 * Returns the synchronization mode.
 */
SyncMode SyncSource::getSyncMode() {
    return syncMode;
}

int SyncSource::beginSync() {
    return 0;
}

int SyncSource::endSync() {
    return 0;
}

/*
 * Returns the timestamp in milliseconds of the last synchronization.
 * The reference time of the timestamp is platform specific.
 */
unsigned long SyncSource::getLastSync() {
    return lastSync;
}

/*
 * Sets the timestamp in millisencods of the last synchronization.
 * The reference time of the timestamp is platform specific.
 */
void SyncSource::setLastSync(unsigned long timestamp) {
    lastSync = timestamp;
}

/*
 * Returns the timestamp in milliseconds of the next synchronization.
 * The reference time of the timestamp is platform specific.
 */
unsigned long SyncSource::getNextSync() {
    return nextSync;
}

/*
 * Sets the timestamp in millisencods of the next synchronization.
 * The reference time of the timestamp is platform specific.
 */
void SyncSource::setNextSync(unsigned long timestamp) {
    nextSync = timestamp;
}

/*
 * Sets the last anchor associated to the source
 *
 * @param lastAnchor last anchor
 */
void SyncSource::setLastAnchor(const char* lastAnchor) {
    strncpy(last, (lastAnchor != NULL) ? lastAnchor : "", DIM_ANCHOR);
    last[DIM_ANCHOR-1] = 0;
}

/*
 * Gets the last anchor associated to the source. If last is NULL the
 * internal buffer address is returned, otherwise the value is copied
 * in the given buffer and the buffer address is returned.
 */
const char* SyncSource::getLastAnchor() {
    return last;
}

/*
 * Sets the next anchor associated to the source
 *
 * @param next next anchor
 */
void SyncSource::setNextAnchor(const char* nextAnchor) {
    strncpy(next, (nextAnchor != NULL) ? nextAnchor : "", DIM_ANCHOR);
    next[DIM_ANCHOR-1] = 0;
}

/*
 * Gets the next anchor associated to the source. If last is NULL the
 * internal buffer address is returned, otherwise the value is copied
 * in the given buffer and the buffer address is returned.
 */
const char* SyncSource::getNextAnchor() {
    return next;
}


/*
 * Gets filter
 *
 * @return  the current filter's value
 *
 */
SourceFilter* SyncSource::getFilter() {
    return filter;
}

/*
 * Sets filter
 *
 * @param filter the new value
 *
 */
void SyncSource::setFilter(SourceFilter* f) {
    if (filter) {
        delete filter; filter = NULL;
    }

    if (f) {
        filter = new SourceFilter();
        filter->setInclusive(f->isInclusive());
        filter->setClause(f->getClause());
    }
}

void SyncSource::assign(SyncSource& s) {
    setSyncMode(s.getSyncMode());
    setLastSync(s.getLastSync());
    setNextSync(s.getNextSync());
    setLastAnchor(s.getLastAnchor());
    setNextAnchor(s.getNextAnchor());
    setFilter(s.getFilter());
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区不卡视频在线观看| 日韩欧美中文一区| 亚洲同性同志一二三专区| 成人小视频免费在线观看| 国产精品入口麻豆九色| 春色校园综合激情亚洲| 亚洲视频在线观看一区| 欧美午夜在线一二页| 日本欧美在线观看| 国产亚洲欧洲997久久综合 | 国产午夜精品一区二区三区视频| 国产精品一区2区| 亚洲欧美激情在线| 日韩无一区二区| 国产一区91精品张津瑜| 国产精品传媒视频| 欧美精品18+| 福利一区在线观看| 亚洲高清免费在线| 国产亚洲欧美一级| 欧美午夜电影在线播放| 精品影视av免费| 中文字幕一区三区| 91精品国产综合久久婷婷香蕉| 国产在线视频精品一区| 亚洲精品国产a| 精品国产乱子伦一区| eeuss鲁片一区二区三区在线看| 亚洲网友自拍偷拍| 久久精品一区蜜桃臀影院| 色婷婷精品大视频在线蜜桃视频| 免费av成人在线| 中文字幕一区二区三区乱码在线| 欧美探花视频资源| 国产成人av自拍| 日韩福利电影在线观看| 国产精品美女久久久久aⅴ| 欧美久久一区二区| 91理论电影在线观看| 久久精品国产一区二区三| 亚洲美女在线国产| 国产日韩欧美精品综合| 欧美一区二区视频在线观看2022| 成人app下载| 国产一区二区三区美女| 视频一区二区三区在线| 中文字幕一区二区三区在线不卡 | 欧洲av在线精品| 精品一区二区av| 亚洲自拍偷拍综合| 中文字幕不卡的av| 精品国产凹凸成av人导航| 欧美在线免费观看亚洲| 成人av午夜影院| 狠狠色狠狠色综合| 免费观看久久久4p| 亚洲成在线观看| 亚洲情趣在线观看| 国产精品久久久久久久久图文区| 精品999久久久| 欧美一级xxx| 欧美乱妇20p| 欧美色图在线观看| 色综合咪咪久久| 成人app下载| 成人av在线资源网| av网站一区二区三区| 国产精品资源网| 国产在线观看免费一区| 久久福利资源站| 麻豆成人久久精品二区三区红| 午夜视频在线观看一区| 亚洲丶国产丶欧美一区二区三区| 一区二区三区欧美日| 亚洲免费毛片网站| 亚洲综合在线电影| 亚洲韩国精品一区| 天天影视涩香欲综合网| 日本视频一区二区三区| 蜜臀av性久久久久蜜臀aⅴ| 婷婷国产在线综合| 日本欧洲一区二区| 久久精品国产亚洲高清剧情介绍| 麻豆91精品视频| 国产精品综合在线视频| 国产aⅴ精品一区二区三区色成熟| 国产精品香蕉一区二区三区| 国产精品一二一区| 成人午夜视频福利| 色婷婷综合久久久中文一区二区| 日本高清免费不卡视频| 欧美三级电影网| 欧美一区二区成人6969| 久久夜色精品一区| 国产精品美女一区二区在线观看| 中文字幕乱码亚洲精品一区| ...av二区三区久久精品| 一区二区三区在线播放| 日本不卡123| 国产成人鲁色资源国产91色综 | av亚洲精华国产精华精| 在线视频你懂得一区| 欧美精品日韩一区| 久久综合色天天久久综合图片| 国产日韩欧美综合在线| 亚洲欧美经典视频| 蜜臀a∨国产成人精品| 国产高清精品久久久久| 91成人免费电影| 精品处破学生在线二十三| 中文字幕国产一区| 亚洲一区二区在线观看视频| 久久99精品久久久久久久久久久久| 国产乱妇无码大片在线观看| 一本到三区不卡视频| 在线播放91灌醉迷j高跟美女| 精品国产伦一区二区三区观看方式| 中文字幕中文字幕一区| 日韩和欧美一区二区三区| 国产成人在线影院| 欧美日韩国产高清一区二区三区| 26uuu久久天堂性欧美| 亚洲精品少妇30p| 精东粉嫩av免费一区二区三区| 99久久婷婷国产| 欧美一区二区三区四区五区| 国产精品美女久久久久aⅴ| 日本午夜精品一区二区三区电影| 国产精品一区二区x88av| 欧美日韩视频第一区| 国产精品色哟哟| 麻豆成人免费电影| 在线精品视频一区二区| 国产日本欧美一区二区| 午夜精品视频一区| 色哟哟日韩精品| 国产日韩欧美麻豆| 蜜臀av性久久久久蜜臀aⅴ | 欧美视频在线播放| 国产精品久久久久久户外露出| 久久精品二区亚洲w码| 欧美无砖砖区免费| 国产精品免费视频一区| 久久精品国产免费| 欧美高清精品3d| 亚洲线精品一区二区三区| 成人av电影免费在线播放| 久久夜色精品一区| 久久国产精品72免费观看| 欧美老人xxxx18| 一级特黄大欧美久久久| 成人爱爱电影网址| 久久精品视频一区| 国精产品一区一区三区mba视频| 欧美乱妇15p| 亚洲成人av电影在线| 日本精品视频一区二区| 国产精品乱码一区二三区小蝌蚪| 国内精品在线播放| 精品国产乱码久久久久久夜甘婷婷 | 国产99精品在线观看| 精品久久久久av影院 | 国产激情视频一区二区三区欧美| 制服丝袜亚洲色图| 天堂精品中文字幕在线| 欧美三区在线视频| 亚洲第一搞黄网站| 欧美日韩精品一区视频| 无码av中文一区二区三区桃花岛| 在线亚洲免费视频| 亚洲高清免费一级二级三级| 欧美日韩另类一区| 日韩电影一区二区三区四区| 91精品国产综合久久久久久| 日本成人中文字幕在线视频| 91精品国产一区二区三区蜜臀| 三级亚洲高清视频| 日韩一区二区三区高清免费看看| 日本系列欧美系列| 欧美精品一区二区三区很污很色的| 久久电影网站中文字幕| 久久精品一区二区三区不卡| 国产成人一区在线| 国产精品久久久久久久午夜片| 99久久国产综合精品女不卡| 亚洲精品久久嫩草网站秘色| 欧美做爰猛烈大尺度电影无法无天| 性感美女久久精品| 精品久久久久久久久久久久包黑料| 国产精品自拍av| 亚洲女同ⅹxx女同tv| 欧美日韩精品欧美日韩精品| 久久成人久久鬼色| 中文字幕第一区二区| 欧美自拍丝袜亚洲| 另类中文字幕网| 亚洲天堂成人网| 欧美一区二区视频观看视频 | 亚洲欧洲日韩在线| 制服丝袜av成人在线看|