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

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

?? devinf.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/DevInf.h"

DevInf::DevInf() {

    initialize();

}
DevInf::~DevInf() {

    if(verDTD) { delete verDTD ; verDTD  = NULL; }

    if(man   )  { delete [] man   ;  man    = NULL; }
    if(mod   )  { delete [] mod   ;  mod    = NULL; }
    if(oem   )  { delete [] oem   ;  oem    = NULL; }
    if(fwV   )  { delete [] fwV   ;  fwV    = NULL; }
    if(swV   )  { delete [] swV   ;  swV    = NULL; }
    if(hwV   )  { delete [] hwV   ;  hwV    = NULL; }
    if(devID )  { delete [] devID ;  devID  = NULL; }
    if(devTyp)  { delete [] devTyp;  devTyp = NULL; }

    if(dataStores) { dataStores->clear() ; } //delete dataStores; dataStores = NULL;}     //DataStore[]
    if(ctCap     ) { ctCap->clear()      ; } //delete ctCap;      ctCap = NULL;     }     // CTCap[]
    if(ext       ) { ext->clear()        ; } //delete ext;        ext = NULL;       }     // Ext[]

    utc                    = FALSE;
    supportLargeObjs       = FALSE;
    supportNumberOfChanges = FALSE;

}

/**
* Creates a new DevInf object with the given parameter
*
* @param verDTD the DTD version - NOT NULL
* @param man the device manufacturer
* @param mod the device model name
* @param oem the device OEM
* @param fwV the device firmware version
* @param swV the device software version
* @param hwV the device hardware version
* @param devID the device ID - NOT NULL
* @param devTyp the device type - NOT NULL
* @param dataStores the array of datastore - NOT NULL
* @param ctCap the array of content type capability - NOT NULL
* @param ext the array of extension element name - NOT NULL
* @param utc is true if the device supports UTC based time
* @param supportLargeObjs is true if the device supports handling of large objects
* @param supportNumberOfChanges is true if the device supports number of changes
*
*/
DevInf::DevInf(VerDTD* verDTD,
        const char* man,
        const char* mod,
        const char* oem,
        const char* fwV,
        const char* swV,
        const char* hwV,
        const char* devID,
        const char* devTyp,
        ArrayList* dataStores,
        ArrayList* ctCap,
        ArrayList* ext,
        BOOL utc,
        BOOL supportLargeObjs,
        BOOL supportNumberOfChanges,
        SyncCap* syncCap) {

    initialize();

    setVerDTD(verDTD);
    setDevID (devID);
    setDevTyp(devTyp);
    setDataStore(dataStores);
    setCTCap (ctCap);
    setExt   (ext);
    setSyncCap(syncCap);
    setMan(man);
    setMod(mod);
    setOEM(oem);
    setFwV(fwV);
    setSwV(swV);
    setHwV(hwV);

    setUTC(utc);
    setSupportLargeObjs(supportLargeObjs);
    setSupportNumberOfChanges(supportNumberOfChanges);

}

void DevInf::initialize() {
    verDTD = NULL;
    man    = NULL;
    mod    = NULL;
    oem    = NULL;
    fwV    = NULL;
    swV    = NULL;
    hwV    = NULL;
    devID  = NULL;
    devTyp = NULL;

    syncCap = NULL;
    dataStores = new ArrayList();  //DataStore[]
    ctCap      = new ArrayList();  // CTCap[]
    ext        = new ArrayList();  // Ext[]

    utc                    = FALSE;
    supportLargeObjs       = FALSE;
    supportNumberOfChanges = FALSE;
}


// ---------------------------------------------------------- Public methods
/**
* Gets the DTD version property
*
* @return the DTD version property
*/
VerDTD* DevInf::getVerDTD() {
    return verDTD;
}

/**
* Sets the DTD version property
*
* @param verDTD the DTD version
*/
void DevInf::setVerDTD(VerDTD* verDTD) {
    if (verDTD == NULL) {
        // TBD
    } else {
        if (this->verDTD) {
            delete [] this->verDTD; this->verDTD = NULL;
        }
        this->verDTD = verDTD->clone();
    }
}

/**
* Gets the device manufacturer property
*
* @return the device manufacturer property
*/
const char* DevInf::getMan() {
    return man;
}

/**
* Sets the device manufacturer property
*
* @param man the device manufacturer property
*
*/
void DevInf::setMan(const char* man) {
    if (this->man) {
        delete [] this->man; this->man = NULL;
    }
    this->man = stringdup(man);
}

/**
* Gets the model name of device
*
* @return the model name of device
*/
const char* DevInf::getMod() {
    return mod;
}

/**
* Sets the device model property
*
* @param mod the device model property
*
*/
void DevInf::setMod(const char* mod) {
    if (this->mod) {
        delete [] this->mod; this->mod = NULL;
    }
    this->mod = stringdup(mod);
}

/**
* Gets the Original Equipment Manufacturer of the device
*
* @return the OEM property
*/
const char* DevInf::getOEM() {
    return oem;
}

/**
* Sets the Original Equipment Manufacturer of the device
*
* @param oem the Original Equipment Manufacturer of the device
*
*/
void DevInf::setOEM(const char* oem) {
    if (this->oem) {
        delete [] this->oem; this->oem = NULL;
    }
    this->oem = stringdup(oem);
}

/**
* Gets the firmware version property
*
* @return the firmware version property
*/
const char* DevInf::getFwV() {
    return fwV;
}

/**
* Sets the firmware version property
*
* @param fwV the firmware version property
*
*/
void DevInf::setFwV(const char* fwV) {
    if (this->fwV) {
        delete [] this->fwV; this->fwV = NULL;
    }
    this->fwV = stringdup(fwV);
}

/**
* Gets the software version property
*
* @return the software version property
*/
const char* DevInf::getSwV() {
    return swV;
}

/**
* Sets the software version property
*
* @param swV the software version property
*
*/
void DevInf::setSwV(const char* swV) {
    if (this->swV) {
        delete [] this->swV; this->swV = NULL;
    }
    this->swV = stringdup(swV);
}

/**
* Gets the hardware version property
*
* @return the hardware version property
*/
const char* DevInf::getHwV() {
    return hwV;
}

/**
* Sets the hardware version property
*
* @param hwV the hardware version property
*
*/
void DevInf::setHwV(const char* hwV) {
    if (this->hwV) {
        delete [] this->hwV; this->hwV = NULL;
    }
    this->hwV = stringdup(hwV);
}

/**
* Gets the device identifier
*
* @return the device identifier
*/
const char* DevInf::getDevID() {
    return devID;
}

/**
* Sets the device identifier
*
* @param devID the device identifier
*
*/
void DevInf::setDevID(const char* devID) {
    if (devID == NULL) {
            // TBD
    } else {
        if (this->devID) {
            delete [] this->devID; this->devID = NULL;
        }
        this->devID = stringdup(devID);
    }
}

/**
* Gets the device type
*
* @return the device type
*/
const char* DevInf::getDevTyp() {
    return devTyp;
}

/**
* Sets the device type
*
* @param devTyp the device type
*
*/
void DevInf::setDevTyp(const char* devTyp) {
    if (devTyp == NULL) {
            // TBD
    } else {
        if (this->devTyp) {
            delete [] this->devTyp; this->devTyp = NULL;
        }
        this->devTyp = stringdup(devTyp);
    }
}

/**
* Gets the array of datastore
*
* @return the array of datastore
*/
ArrayList* DevInf::getDataStore() {
    return dataStores;
}

/**
* Sets an array of datastore
*
* @param dataStores an array of datastore
*
*/
void DevInf::setDataStore(ArrayList* dataStores) {
    if (this->dataStores) {
		this->dataStores->clear();
    }
    if (dataStores) {
	    this->dataStores = dataStores->clone();
    }

}
/**
* Gets the array of content type capability
*
* @return the array of content type capability
*/
ArrayList* DevInf::getCTCap() {
    return ctCap;
}

/**
* Sets an array of content type capability
*
* @param ctCap an array of content type capability
*
*/
void DevInf::setCTCap(ArrayList* ctCap) {
    if (this->ctCap) {
		this->ctCap->clear();
    }
    if (ctCap) {
	    this->ctCap = ctCap->clone();
    }
}

/**
* Gets the array of extension
*
* @return the array of extension
*/
ArrayList* DevInf::getExt() {
    return ext;
}

/**
* Sets an array of extensions
*
* @param ext an array of extensions
*
*/
void DevInf::setExt(ArrayList* ext) {
    if (this->ext) {
		this->ext->clear();
    }
    if (ext) {
	    this->ext = ext->clone();
    }
}

/**
* Gets true if the device supports UTC based time
*
* @return true if the device supports UTC based time
*/
BOOL DevInf::isUTC() {
    return (utc != NULL);
}

/**
* Sets the UTC property
*
* @param utc is true if the device supports UTC based time
*/
void DevInf::setUTC(BOOL utc) {
    if ((utc == NULL) || (utc != TRUE && utc != FALSE)) {
        this->utc = NULL;
    } else {
        this->utc = utc;
    }
}


/**
* Gets the Boolean value of utc
*
* @return true if the device supports UTC based time
*/
BOOL DevInf::getUTC() {
    return utc;
}

/**
* Gets true if the device supports handling of large objects
*
* @return true if the device supports handling of large objects
*/
BOOL DevInf::isSupportLargeObjs() {
    return (supportLargeObjs != NULL);
}

/**
* Sets the supportLargeObjs property
*
* @param supportLargeObjs is true if the device supports handling of large objects
*
*/
void DevInf::setSupportLargeObjs(BOOL supportLargeObjs) {
    if ((supportLargeObjs == NULL) || (supportLargeObjs != TRUE && supportLargeObjs != FALSE)) {
        this->supportLargeObjs = NULL;
    } else {
        this->supportLargeObjs = supportLargeObjs;
    }
}

/**
* Gets the Boolean value of supportLargeObjs
*
* @return true if the device supports handling of large objects
*/
BOOL DevInf::getSupportLargeObjs() {
    return supportLargeObjs;
}

/**
* Gets true if the device supports number of changes
*
* @return true if the device supports number of changes
*/
BOOL DevInf::isSupportNumberOfChanges() {
    return (supportNumberOfChanges != NULL);
}

/**
* Sets the supportNumberOfChanges property
*
* @param supportNumberOfChanges is true if the device supports number of changes
*
*/
void DevInf::setSupportNumberOfChanges(BOOL supportNumberOfChanges) {
    if ((supportNumberOfChanges == NULL) || (supportNumberOfChanges != TRUE && supportNumberOfChanges != FALSE)) {
        this->supportNumberOfChanges = NULL;
    } else {
        this->supportNumberOfChanges = supportNumberOfChanges;
    }
}

/**
* Gets the Boolean value of supportNumberOfChanges
*
* @return true if the device supports number of changes
*/
BOOL DevInf::getSupportNumberOfChanges() {
    return supportNumberOfChanges;
}

void DevInf::setSyncCap(SyncCap* syncCap) {
    if (this->syncCap) {
        delete this->syncCap; this->syncCap = NULL;
    }
    if (syncCap) {
        this->syncCap = syncCap->clone();
    }
}

SyncCap* DevInf::getSyncCap() {
    return syncCap;
}


DevInf* DevInf::clone() {
    DevInf* ret = new DevInf(verDTD, man, mod, oem, fwV, swV, hwV, devID,
                             devTyp, dataStores, ctCap, ext,
                             utc, supportLargeObjs, supportNumberOfChanges, syncCap);
    return ret;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一线二线三线精华| 欧美精品一区二区在线观看| 中文一区二区在线观看| 国内精品免费在线观看| 欧美一级片免费看| 麻豆精品视频在线观看| 4438成人网| 久久精品免费看| 精品国产三级a在线观看| 麻豆精品精品国产自在97香蕉| 在线播放/欧美激情| 丝袜a∨在线一区二区三区不卡| 欧美中文字幕一区二区三区| 丝袜美腿亚洲色图| 日韩午夜激情电影| 国产麻豆成人传媒免费观看| 2欧美一区二区三区在线观看视频| 狂野欧美性猛交blacked| 日韩一区二区三区av| 日本中文字幕一区二区有限公司| 欧美α欧美αv大片| 久久精品二区亚洲w码| 国产亚洲一二三区| 99久久免费精品高清特色大片| 亚洲成人自拍偷拍| 国产三级精品三级在线专区| 成人中文字幕合集| 一区二区三区四区亚洲| 欧美另类变人与禽xxxxx| 久久99精品久久久久| 国产欧美精品在线观看| www.久久精品| 免费看日韩a级影片| 久久久久97国产精华液好用吗| jlzzjlzz国产精品久久| 亚洲第一狼人社区| 91精品国产aⅴ一区二区| 成人看片黄a免费看在线| 亚洲另类色综合网站| 日韩欧美一区二区不卡| 国产精品88888| 亚洲综合视频在线| 精品福利视频一区二区三区| 成人av网址在线观看| 天使萌一区二区三区免费观看| 久久久高清一区二区三区| 91行情网站电视在线观看高清版| 免费欧美高清视频| 亚洲免费在线视频一区 二区| 欧美精品在线视频| 成人在线视频一区| 麻豆一区二区三区| 亚洲欧洲日本在线| 欧美大片免费久久精品三p| 99精品国产热久久91蜜凸| 日韩国产精品大片| 亚洲一区二区三区四区中文字幕| 久久久精品日韩欧美| 欧美群妇大交群的观看方式| 成人综合婷婷国产精品久久蜜臀 | 亚洲国产欧美在线| 国产精品久久久久aaaa| 日韩三级精品电影久久久 | 成人欧美一区二区三区小说| 欧美日韩一二三区| 成人av影院在线| 免费成人av在线播放| 亚洲一区二区在线免费观看视频| 国产午夜一区二区三区| 欧美一级黄色片| 欧美日韩一区高清| 91在线丨porny丨国产| 国产在线精品一区二区| 亚洲精品成人少妇| 中文字幕一区二区5566日韩| 精品国产乱码91久久久久久网站| 91福利国产精品| 色婷婷激情综合| 成人午夜视频福利| 韩国成人精品a∨在线观看| 欧美a一区二区| 男人操女人的视频在线观看欧美 | 中文字幕永久在线不卡| 亚洲国产精品激情在线观看| 欧美一区二区观看视频| 欧美午夜电影网| 欧美午夜片在线观看| 91色视频在线| 日本韩国欧美三级| 91福利社在线观看| 在线观看免费视频综合| 欧美性欧美巨大黑白大战| 日本黄色一区二区| 日本久久精品电影| 色噜噜夜夜夜综合网| 色婷婷激情一区二区三区| 欧美性受xxxx| 欧美视频在线不卡| 欧美剧情片在线观看| 91精品国产91久久久久久一区二区 | 久久综合色播五月| 久久综合九色综合欧美亚洲| 国产精品丝袜一区| 中文字幕免费一区| 中文字幕在线观看一区| 国产精品成人免费在线| 亚洲综合久久久久| 亚洲国产日韩a在线播放性色| 一区二区三区中文在线观看| 视频一区二区欧美| 国产自产v一区二区三区c| 美国三级日本三级久久99| 国产一区三区三区| 91日韩在线专区| 欧美曰成人黄网| 欧美一区二区三区成人| 欧美激情资源网| 国产精品乱人伦中文| 国产精品乱人伦中文| 亚洲伦在线观看| 久久精品二区亚洲w码| 91理论电影在线观看| 欧美日韩精品一区二区三区蜜桃 | 日韩精品中文字幕一区二区三区 | 2024国产精品视频| 亚洲欧美日本在线| 日韩av不卡在线观看| 国产一区欧美一区| 欧美性三三影院| 久久综合九色综合97_久久久 | 中文字幕+乱码+中文字幕一区| 国产精品视频一二三区 | 亚洲欧美日韩国产手机在线| 午夜激情久久久| 免费av成人在线| 91日韩精品一区| 精品蜜桃在线看| 亚洲乱码中文字幕| 国产麻豆视频一区二区| 在线观看日韩av先锋影音电影院| 欧美大片一区二区| 亚洲男同1069视频| 国产精品一区二区你懂的| 在线视频国内一区二区| 国产婷婷精品av在线| 日韩高清一区二区| 国产99久久久精品| 香蕉成人伊视频在线观看| 欧美成人一区二区三区| 国产欧美日韩三区| 另类小说综合欧美亚洲| 99久久99久久精品免费观看| 3d动漫精品啪啪一区二区竹菊| 日本一区二区三区四区在线视频| 亚洲精品国产成人久久av盗摄| 国产精品 日产精品 欧美精品| 欧美视频在线播放| 国产精品免费视频网站| 激情六月婷婷久久| 日韩一区二区中文字幕| 一区二区视频在线| 国产激情91久久精品导航| 这里只有精品视频在线观看| 国产精品传媒入口麻豆| 国产一区二区在线观看免费| 日韩视频一区二区三区在线播放| 亚洲国产裸拍裸体视频在线观看乱了| av在线播放成人| 国产精品久久久久久福利一牛影视| 狠狠色丁香久久婷婷综合丁香| 6080国产精品一区二区| 日韩高清不卡在线| 51精品久久久久久久蜜臀| 亚洲婷婷综合色高清在线| 懂色一区二区三区免费观看| 国产亚洲欧美激情| 国产精品一区二区你懂的| 久久久久99精品一区| 国产精品一二三在| 亚洲国产经典视频| 国产成人在线影院| 欧美精品一区二区三区在线 | 视频一区二区欧美| 91精品在线麻豆| 一区二区三区四区在线播放| 欧美日韩黄色影视| 丝袜诱惑亚洲看片| 日韩欧美成人一区二区| 蜜桃久久av一区| 精品国产伦理网| 狠狠色丁香久久婷婷综合丁香| 久久精品夜色噜噜亚洲aⅴ| 韩国一区二区三区| 中文字幕一区二区不卡| 91小视频免费观看| 亚洲一区在线电影| 欧美日韩综合不卡| 蜜臀久久久99精品久久久久久| 日韩精品一区二区三区老鸭窝| 激情成人午夜视频|