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

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

?? item.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 "syncml/core/Item.h"


Item::Item() {
   initialize();
}

Item::~Item() {
    if (target) { delete target; target = NULL; }
    if (source) { delete source; source = NULL; }
    if (meta  ) { delete meta  ; meta   = NULL; }
    if (data  ) { delete data  ; data   = NULL; }
    if (targetParent) { delete [] targetParent; targetParent = NULL; }
    if (sourceParent) { delete [] sourceParent; sourceParent = NULL; }
    moreData = FALSE;

}


void Item::initialize() {
    target       = NULL;
    source       = NULL;
    targetParent = NULL;
    sourceParent = NULL;
    meta         = NULL;
    data         = NULL;
    moreData     = FALSE;
}

/**
 * Creates a new Item object.
 *
 * @param target item target - NULL ALLOWED
 * @param source item source - NULL ALLOWED
 * @param targetParent item target parent - NULL ALLOWED (DEFAULT)
 * @param sourceParent item source parent - NULL ALLOWED (DEFAULT)
 * @param meta item meta data - NULL ALLOWED
 * @param data item data - NULL ALLOWED
 *
 */
Item::Item( Target* target,
            Source* source,
            char* tParent,
            char* sParent,
            Meta*   meta  ,
            ComplexData* data,
            BOOL moreData) {
    initialize();

    setTarget(target);
    setSource(source);
    setTargetParent(tParent);
    setSourceParent(sParent);
    setMeta(meta);
    setData(data);
    setMoreData(moreData);

}




/**
* Creates a new Item object.
*
* @param target item target - NULL ALLOWED
* @param source item source - NULL ALLOWED
* @param meta item meta data - NULL ALLOWED
* @param data item data - NULL ALLOWED
*
*/
Item::Item( Target* target,
            Source* source,
            Meta*   meta  ,
            ComplexData* data,
            BOOL moreData) {
    initialize();
    setTarget(target);
    setSource(source);
    setTargetParent(NULL);
    setSourceParent(NULL);
    setMeta(meta);
    setData(data);
    setMoreData(moreData);

}

/**
* Returns the item target
*
* @return the item target
*/
Target* Item::getTarget() {
    return target;
}

/**
* Sets the item target
*
* @param target the target
*
*/
void Item::setTarget(Target* target) {
    if (this->target) {
		delete this->target; this->target = NULL;
    }
    if (target) {
	    this->target = target->clone();
    }
}

/**
* Returns the item source
*
* @return the item source
*/
Source* Item::getSource() {
    return source;
}

/**
* Sets the item source
*
* @param source the source
*
*/
void Item::setSource(Source* source) {
    if (this->source) {
		delete this->source; this->source = NULL;
    }
    if (source) {
	    this->source = source->clone();
    }
}

/**
* Returns the item meta element
*
* @return the item meta element
*/
Meta* Item::getMeta() {
    return meta;
}

/**
* Sets the meta item
*
* @param meta the item meta element
*
*/
void Item::setMeta(Meta* meta) {
    if (this->meta) {
		delete this->meta; this->meta = NULL;
    }
    if (meta) {
	    this->meta = meta->clone();
    }
}

/**
* Returns the item data
*
* @return the item data
*
*/
ComplexData* Item::getData() {
    return data;
}

/**
* Sets the item data
*
* @param data the item data
*
*/
void Item::setData(ComplexData* data) {
    if (this->data) {
		delete this->data; this->data = NULL;
    }
    if (data) {
	    this->data = data->clone();
    }
}

/**
* Gets moreData property
*
* @return true if the data item is incomplete and has further chunks
*         to come, false otherwise
*/
BOOL Item::isMoreData() {
    return (moreData != NULL);
}

/**
* Gets the Boolean value of moreData
*
* @return true if the data item is incomplete and has further chunks
*         to come, false otherwise
*/
BOOL Item::getMoreData() {
    return moreData;
}

/**
* Sets the moreData property
*
* @param moreData the moreData property
*/
void Item::setMoreData(BOOL moreData) {
    if ((moreData == NULL) || (moreData != TRUE && moreData != FALSE)) {
        this->moreData = NULL;
    } else {
        this->moreData = moreData;
    }
}

/**
 * Gets the taregtParent property
 *
 * @return the taregtParent property value
 */
const char* Item::getTargetParent() {
    return targetParent;
}

/**
 * Sets the taregtParent property
 *
 * @param parent the taregtParent property
 */
void Item::setTargetParent(const char*parent) {
    if (targetParent) {
        delete [] targetParent; targetParent = NULL;
    }
    targetParent = stringdup(parent);
}

/**
 * Gets the sourceParent property
 *
 * @return the sourceParent property value
 */
const char* Item::getSourceParent() {
    return sourceParent;
}

/**
 * Sets the sourceParent property
 *
 * @param parent the sourceParent property
 */
void Item::setSourceParent(const char*parent) {
    if (sourceParent) {
        delete [] sourceParent; sourceParent = NULL;
    }
    sourceParent = stringdup(parent);
}

/**
 * Item can be an element of an Array object
 */
ArrayElement* Item::clone() {
    //Item* ret = new Item(target, source, targetParent, sourceParent, meta, data, moreData);
    Item* ret = new Item(target, source, meta, data, moreData);
    return ret;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产一区视频| 丝袜亚洲另类欧美| 日韩精品欧美精品| 色综合激情五月| 成人免费毛片app| 国产**成人网毛片九色| 欧美日本一道本| 一区二区三区在线免费| 久久99精品久久久久婷婷| 一本到一区二区三区| 国产欧美一区二区三区沐欲 | 日韩一区二区电影在线| 中文字幕在线观看不卡| 精品视频在线看| 国产亚洲一区二区三区四区| 五月天网站亚洲| 欧美日韩免费观看一区二区三区 | 3751色影院一区二区三区| 综合中文字幕亚洲| 欧美亚洲综合色| 国产亚洲综合在线| 精品亚洲aⅴ乱码一区二区三区| 正在播放亚洲一区| 日韩成人午夜电影| 欧美日韩一区二区三区四区五区| 亚洲人成亚洲人成在线观看图片 | 久久66热re国产| 亚洲欧洲美洲综合色网| 337p亚洲精品色噜噜噜| 99r精品视频| 国产原创一区二区| 亚洲一本大道在线| 国产精品午夜电影| 日韩欧美卡一卡二| 欧美日韩国产区一| 色婷婷国产精品综合在线观看| 国产乱一区二区| 狠狠色狠狠色合久久伊人| 亚洲国产成人91porn| 亚洲制服丝袜在线| 亚洲一区在线观看视频| 一区二区免费在线| 18欧美乱大交hd1984| 欧美高清在线精品一区| 亚洲福利国产精品| 一级女性全黄久久生活片免费| 国产精品素人视频| 国产精品久久看| 国产精品嫩草影院av蜜臀| 中文字幕乱码一区二区免费| 国产日韩精品一区二区三区 | 久久国产精品99久久久久久老狼 | 国产精品综合网| 成人午夜视频在线| 99re这里只有精品首页| 欧美日韩午夜在线视频| 91麻豆精品国产91久久久更新时间| 欧美午夜精品免费| 欧美va亚洲va香蕉在线| 久久久国产精品午夜一区ai换脸| 久久蜜桃av一区精品变态类天堂| 国产女人18毛片水真多成人如厕 | 中文av一区二区| 亚洲一卡二卡三卡四卡五卡| 日本欧美加勒比视频| 国产一区二区三区黄视频 | 成人听书哪个软件好| 日韩西西人体444www| 视频一区国产视频| 午夜日韩在线观看| 国产一区二区三区免费观看| 在线视频欧美区| 亚洲福利一二三区| 北条麻妃国产九九精品视频| 91蝌蚪porny| 欧美一区二区三级| 欧美激情一区在线观看| 艳妇臀荡乳欲伦亚洲一区| 亚洲h在线观看| 国产乱子伦视频一区二区三区| 成人h精品动漫一区二区三区| 欧美系列日韩一区| 欧美激情综合五月色丁香小说| 久久99久久99精品免视看婷婷| 国产传媒欧美日韩成人| 久久麻豆一区二区| 亚洲成人免费视| 91性感美女视频| 亚洲在线免费播放| 99视频在线精品| 国产精品美女一区二区在线观看| 精品亚洲成a人在线观看| 欧美在线一区二区| 亚洲国产精品久久人人爱| 91在线观看下载| 亚洲视频资源在线| 欧美午夜电影在线播放| 丝袜亚洲另类欧美| 久久久不卡网国产精品二区| 国产精品911| 亚洲精品乱码久久久久久| 亚洲国产一区二区三区| 99久久99久久综合| 极品美女销魂一区二区三区| 久久99国产精品免费| 亚洲激情图片一区| 欧美大片日本大片免费观看| 国产精品中文有码| 夜夜亚洲天天久久| 国产视频一区在线播放| 一本到一区二区三区| 免费黄网站欧美| 一区二区三区四区在线| 欧美一区二区在线免费观看| 久草中文综合在线| 一区二区三区视频在线观看| 制服丝袜在线91| 成人网在线免费视频| 久久精品国产亚洲5555| 亚洲人成小说网站色在线| 欧美国产日韩精品免费观看| 色又黄又爽网站www久久| 国产一区二区免费看| 丝袜美腿亚洲综合| 一区二区三区四区不卡在线| 精品sm捆绑视频| 91精品福利在线一区二区三区| 成人黄色在线网站| 国产乱妇无码大片在线观看| 亚洲一区二区三区四区在线 | 欧美bbbbb| 一区二区三区.www| 成人欧美一区二区三区小说| 精品国产乱码久久久久久影片| 欧美精品自拍偷拍动漫精品| 在线亚洲精品福利网址导航| 欧美午夜理伦三级在线观看| 欧美老肥妇做.爰bbww| 3751色影院一区二区三区| 日韩精品专区在线| 久久久久久久久久久久电影 | 久久影院视频免费| 亚洲一区二区三区精品在线| 精品国产一区二区三区四区四| 欧美视频一区二区三区四区| 欧美自拍偷拍午夜视频| 欧美性一区二区| 欧美久久久影院| 精品国偷自产国产一区| 久久久久久久久99精品| 日本一二三不卡| 亚洲视频一区二区免费在线观看| 日韩毛片视频在线看| 亚洲成av人片一区二区三区| 日韩精品一卡二卡三卡四卡无卡| 裸体健美xxxx欧美裸体表演| 久久99精品国产麻豆婷婷| 国产精品一区不卡| 91亚洲精品久久久蜜桃网站 | 国模大尺度一区二区三区| a级高清视频欧美日韩| 欧美揉bbbbb揉bbbbb| 精品国产乱码久久久久久图片 | 国产精品69久久久久水密桃| 成人高清视频在线| 日韩欧美中文字幕制服| 国产精品久久久久久久久晋中 | 国产一区二区网址| 一本色道亚洲精品aⅴ| 欧美成人精品福利| 亚洲激情在线激情| 国产精品18久久久久久久久久久久| 91伊人久久大香线蕉| 久久久噜噜噜久噜久久综合| 夜夜揉揉日日人人青青一国产精品| 韩国女主播成人在线观看| 在线中文字幕一区二区| 国产视频在线观看一区二区三区| 午夜电影网亚洲视频| 在线欧美小视频| 日本一区二区三区四区在线视频| 国产丶欧美丶日本不卡视频| 欧美三级视频在线| 亚洲男人天堂一区| 9人人澡人人爽人人精品| 久久久久久久综合色一本| 婷婷中文字幕综合| 欧美蜜桃一区二区三区| 亚洲一区在线视频观看| 成人ar影院免费观看视频| 久久影院视频免费| 国产激情一区二区三区四区| 精品久久一二三区| 国产一区二区福利| 久久在线免费观看| 国产一区欧美二区| 欧美电影免费观看高清完整版在线| 美女视频黄免费的久久| 欧美久久一区二区| 久久电影网站中文字幕|