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

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

?? datastore.cpp

?? funambol windows mobile plugin source code, the source code is taken from the funambol site
?? CPP
字號:
/*
 * 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 "base/util/utils.h"
#include "syncml/core/DataStore.h"

DataStore::DataStore() {
    initialize();
}

DataStore::~DataStore() {
   if(sourceRef   )   { delete sourceRef      ;  sourceRef       = NULL; }
   if(displayName )   { delete [] displayName    ;  displayName     = NULL; }
   maxGUIDSize = 0;
   if(rxPref      )   { delete    rxPref         ;  rxPref          = NULL; }
   if(rx          )   { rx->clear(); } //delete rx; rx = NULL;                  }
   if(txPref      )   { delete    txPref         ;  txPref          = NULL; }
   if(tx          )   { tx->clear(); }//delete tx; tx = NULL;                  }
   if(dsMem       )   { delete    dsMem          ;  dsMem           = NULL; }
   if(syncCap     )   { delete    syncCap        ;  syncCap         = NULL; }
}

/**
 * Creates a new DataStore object with the given input information
 *
 * @param sourceRef specifies the source address from the associated
 *                  command - NOT NULL
 * @param displayName the display name
 * @param maxGUIDSize the maximum GUID size. Set to -1 if the Maximum GUID
 *                  size is unknown or unspecified. Otherwise, this
 *                  parameter should be a positive number.
 * @param rxPref the relative information received to the content type
 *               preferred - NOT NULL
 * @param rx an array of the relative info received to the content type
 *           supported - NOT NULL
 * @param txPref the relative information trasmitted
 *                  to the content type preferred - NOT NULL
 * @param tx an array of the relative info trasmitted to the content type
 *           supported - NOT NULL
 * @param dsMem the datastore memory info
 * @param syncCap the synchronization capabilities - NOT NULL
 *
 */
DataStore::DataStore(SourceRef* sourceRef,
                      char* displayName,
                      long maxGUIDSize,
                      ContentTypeInfo* rxPref,
                      ArrayList* rx,
                      ContentTypeInfo* txPref,
                      ArrayList* tx,
                      DSMem* dsMem,
                      SyncCap* syncCap) {

        initialize();
        setSourceRef(sourceRef);
        setMaxGUIDSize(maxGUIDSize);
        setRxPref(rxPref);
        setRx(rx);
        setTxPref(txPref);
        setTx(tx);
        setSyncCap(syncCap);
        setDisplayName(displayName);
        setDSMem(dsMem);
}

void DataStore::initialize() {
    sourceRef       = NULL;
    displayName     = NULL;
    maxGUIDSize     = 0;
    rxPref          = NULL;
    rx              = new ArrayList();
    txPref          = NULL;
    tx              = new ArrayList();
    dsMem           = NULL;
    syncCap         = NULL;
}

/**
 * Gets the sourceRef properties
 *
 * @return the sourceRef properties
 */
SourceRef* DataStore::getSourceRef() {
    return sourceRef;
}

/**
 * Sets the reference URI
 *
 * @param sourceRef the reference URI
 *
 */
void DataStore::setSourceRef(SourceRef* sourceRef) {
    if (sourceRef == NULL) {
        // TBD
    } else {
        if (this->sourceRef) {
            delete this->sourceRef; this->sourceRef = NULL;
        }
    }
    this->sourceRef = (SourceRef*)sourceRef->clone();

}

/**
 * Gets the displayName properties
 *
 * @return the displayName properties
 */
const char* DataStore::getDisplayName() {
    return displayName;
}

/**
 * Sets the displayName property
 *
 * @param displayName the displauName property
 *
 */
void DataStore::setDisplayName(const char*displayName) {
    if (this->displayName) {
        delete [] this->displayName; this->displayName = NULL;
    }
    this->displayName = stringdup(displayName);
}

/**
 * Gets the maxGUIDSize properties
 *
 * @return the maxGUIDSize properties
 */
long DataStore::getMaxGUIDSize() {
    return maxGUIDSize;
}

void DataStore::setMaxGUIDSize(long maxGUIDSize) {
    this->maxGUIDSize = maxGUIDSize;
}

/**
 * Gets the ContentTypeInfo corresponds to <Rx-Pref> element
 *
 * @return the ContentTypeInfo corresponds to &l;tRx-Pref> element
 */
ContentTypeInfo* DataStore::getRxPref() {
    return rxPref;
}

/**
 * Sets the preferred type and version of a content type received by the device
 *
 * @param rxPref the preferred type and version of a content type
 */
void DataStore::setRxPref(ContentTypeInfo* rxPref) {
    if (rxPref == NULL) {
        // TBD
    } else {
        if (this->rxPref) {
            delete this->rxPref; this->rxPref = NULL;
        }
    }
    this->rxPref = (ContentTypeInfo*)rxPref->clone();
}

/**
 * Gets the ContentTypeInfo corresponds to <Rx> element
 *
 * @return the ContentTypeInfo corresponds to <Rx> element
 */
ArrayList* DataStore::getRx() {
    return rx;
}

/**
 * Sets the supported type and version of a content type received by the device
 *
 * @param rxCTI and array of supported type and version of a content type
 */
void DataStore::setRx(ArrayList* rxCTI) {
    if (rxCTI == NULL) {
        // TBD
    } else {
        if (rx) {
		    rx->clear();
        }
    	rx = rxCTI->clone();
    }
}


/**
 * Gets the ContentTypeInfo corresponds to <Tx-Pref> element
 *
 * @return the ContentTypeInfo corresponds to <Tx-Pref> element
 */
ContentTypeInfo* DataStore::getTxPref() {
    return txPref;
}

/**
 * Sets the preferred type and version of a content type trasmitted by the device
 *
 * @param txPref the preferred type and version of a content type
 */
void DataStore::setTxPref(ContentTypeInfo* txPref) {
    if (txPref == NULL) {
        // TBD
    } else {
        if (this->txPref) {
            delete this->txPref; this->txPref = NULL;
        }
        this->txPref = (ContentTypeInfo*)txPref->clone();
    }
}

/**
 * Gets an array of ContentTypeInfo corresponds to <Tx> element
 *
 * @return an array of ContentTypeInfo corresponds to <Tx> element
 */
ArrayList* DataStore::getTx() {
    return tx;
}

/**
 * Sets the supported type and version of a content type trasmitted by the device
 *
 * @param txCTI and array of supported type and version of a content type
 */
void DataStore::setTx(ArrayList* txCTI) {
    if (txCTI == NULL) {
        // TBD
    } else {
        if (tx) {
		    tx->clear();
        }
    	tx = txCTI->clone();
    }
}

/**
 * Gets the datastore memory information.
 *
 * @return the datastore memory information.
 */
DSMem* DataStore::getDSMem() {
    return dsMem;
}

/**
 * Sets the datastore memory information
 *
 * @param dsMem the datastore memory information
 */
void DataStore::setDSMem(DSMem* dsMem) {
    if (this->dsMem) {
        delete this->dsMem; this->dsMem = NULL;
    }
    if (dsMem) {
        this->dsMem = dsMem->clone();
    }
}

/**
 * Gets the synchronization capabilities of a datastore.
 *
 * @return the synchronization capabilities of a datastore.
 */
SyncCap* DataStore::getSyncCap() {
    return syncCap;
}

/**
 * Sets the synchronization capabilities of a datastore.
 *
 * @param syncCap the synchronization capabilities of a datastore
 *
 */
void DataStore::setSyncCap(SyncCap* syncCap) {
     if (syncCap == NULL) {
            // TBD
     } else {
        if (this->syncCap) {
		    delete this->syncCap; this->syncCap = NULL;
        }
    	this->syncCap = syncCap->clone();
    }
}

ArrayElement* DataStore::clone() {
    DataStore* ret = new DataStore( sourceRef,
                                    displayName ,
                                    maxGUIDSize ,
                                    rxPref      ,
                                    rx          ,
                                    txPref      ,
                                    tx          ,
                                    dsMem       ,
                                    syncCap     );
    return ret;

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
狠狠色伊人亚洲综合成人| 香港成人在线视频| 国产精品私人影院| 国产精品剧情在线亚洲| 尤物视频一区二区| 亚洲成人一二三| 国产一区二区调教| 99久久精品免费精品国产| 99久久99久久精品国产片果冻| 93久久精品日日躁夜夜躁欧美| 成人av小说网| 久久影音资源网| 国产毛片精品视频| 日韩一区二区免费电影| 国产亚洲制服色| 日本一区二区电影| 天天免费综合色| 成人app在线| 91麻豆精品国产91久久久久| 911精品国产一区二区在线| 日韩欧美二区三区| 国产精品福利av| 日本色综合中文字幕| 99久久国产综合精品麻豆| 欧美亚洲国产一区在线观看网站 | 亚洲综合色区另类av| 国产精品国产三级国产普通话蜜臀 | 日韩高清在线电影| www一区二区| 成人激情免费网站| 亚洲国产精品人人做人人爽| 91精品国产色综合久久| 高清视频一区二区| 日本不卡一二三| 国产精品久久久久久久久搜平片 | 日韩欧美的一区| 91亚洲国产成人精品一区二区三 | 国产精品 欧美精品| 亚洲高清不卡在线| 国产喷白浆一区二区三区| 欧美精品777| gogogo免费视频观看亚洲一| 日韩av午夜在线观看| 日韩理论片在线| 久久久国产午夜精品| 欧美日韩色综合| av激情综合网| 狠狠色狠狠色综合系列| 婷婷久久综合九色综合绿巨人| 欧美激情一区三区| 精品成a人在线观看| 欧美日韩免费一区二区三区视频| 成人一道本在线| 黄色日韩三级电影| 免费视频最近日韩| 午夜一区二区三区视频| 国产精品久久久久久久午夜片| 精品国产91洋老外米糕| 5858s免费视频成人| 一本到一区二区三区| 成人教育av在线| 高清不卡在线观看av| 国产真实乱偷精品视频免| 美国欧美日韩国产在线播放| 亚洲国产乱码最新视频| 亚洲欧美日韩久久精品| 亚洲欧洲一区二区三区| 国产精品白丝在线| 国产精品毛片久久久久久久| 久久精品一区二区三区不卡| 日韩一卡二卡三卡| 日韩欧美一区二区视频| 这里只有精品视频在线观看| 欧美日韩国产高清一区二区| 欧美亚洲一区二区三区四区| 精品视频一区三区九区| 欧美亚洲丝袜传媒另类| 欧美在线综合视频| 欧美日韩中字一区| 91精品国产综合久久精品图片| 精品视频1区2区| 欧美老人xxxx18| 欧美精品亚洲二区| 日韩视频一区二区三区在线播放 | 日韩精品专区在线| 精品久久久久久亚洲综合网| 久久综合一区二区| 亚洲国产成人一区二区三区| 日本一区二区三区高清不卡| 国产精品美女久久久久av爽李琼 | 国产精品美女久久久久aⅴ| 日韩美女视频一区二区| 一区二区三区中文免费| 亚洲成人在线网站| 美女网站在线免费欧美精品| 九九精品一区二区| 成人丝袜高跟foot| 91国产免费观看| 欧美一二三区在线| 国产亚洲美州欧州综合国| 日韩理论片中文av| 日韩精品一二三四| 国内外成人在线| 97久久超碰国产精品电影| 欧美日韩免费一区二区三区视频| 欧美大片国产精品| 中文字幕一区二区三区在线观看| 一区二区三区欧美在线观看| 天堂久久一区二区三区| 国产精品12区| 欧美亚洲一区三区| 久久婷婷国产综合国色天香 | 91丨porny丨户外露出| 欧美肥妇free| 欧美韩日一区二区三区四区| 有坂深雪av一区二区精品| 美国毛片一区二区| 色婷婷综合久久久久中文一区二区 | 国产日韩精品一区二区三区| 综合av第一页| 国产一区视频在线看| 欧美最猛性xxxxx直播| 亚洲精品在线电影| 亚洲一区国产视频| 国产大陆亚洲精品国产| 欧美唯美清纯偷拍| 国产欧美日产一区| 美女高潮久久久| 91麻豆成人久久精品二区三区| 欧美一区二区女人| ●精品国产综合乱码久久久久| 另类的小说在线视频另类成人小视频在线 | 欧美一区二区三区啪啪| 中文字幕一区二区三区精华液| 美女视频网站久久| 欧美在线综合视频| 成人欧美一区二区三区视频网页 | 免费成人美女在线观看| 91美女视频网站| 国产三级精品视频| 蜜桃精品在线观看| 777奇米四色成人影色区| 亚洲丝袜另类动漫二区| 国产一区二区三区综合| 91精品国产综合久久久久久| 亚洲一区视频在线观看视频| jizzjizzjizz欧美| 国产日韩欧美不卡在线| 激情小说欧美图片| 6080午夜不卡| 日本欧美在线观看| 一本到三区不卡视频| 国产欧美一区二区精品仙草咪| 免费在线一区观看| 91精品国产综合久久久久| 午夜在线成人av| 欧美老肥妇做.爰bbww| 亚洲在线视频一区| 色综合激情五月| 亚洲精品视频免费看| 成人激情免费视频| 久久精品欧美一区二区三区麻豆| 极品少妇xxxx精品少妇偷拍| 91麻豆精品国产91久久久久久| 丝袜亚洲精品中文字幕一区| 在线观看免费视频综合| 亚洲最新在线观看| 欧美艳星brazzers| 视频一区国产视频| 欧美一区二区免费观在线| 青青草97国产精品免费观看| 制服丝袜日韩国产| 老司机免费视频一区二区| 日韩视频一区二区三区 | 国产乱一区二区| 国产色91在线| 成人激情动漫在线观看| 中文字幕字幕中文在线中不卡视频| av中文字幕不卡| 一区二区久久久久久| 欧美性做爰猛烈叫床潮| 午夜欧美一区二区三区在线播放| 欧美蜜桃一区二区三区| 秋霞午夜鲁丝一区二区老狼| 日韩欧美精品在线视频| 国产精品夜夜嗨| 国产精品视频麻豆| 在线观看国产日韩| 日韩av高清在线观看| 欧美精品一区二区三区在线播放 | 99国产精品一区| 亚洲国产精品久久久男人的天堂| 欧美羞羞免费网站| 狠狠色丁香婷婷综合久久片| 欧美激情一区三区| 欧美日韩在线免费视频| 久草在线在线精品观看| 国产精品麻豆99久久久久久| 欧美午夜精品久久久久久超碰| 久久激情五月婷婷|