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

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

?? test_settings.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
 */

//--README--------------------------------------------------------------
// This file contains the code to set the registry entries used by the
// WindowsMobile test client. It is intended mainly for emulator use.
//
// Remember to adjust the settings to your needs (the server address,
// at least!)
//
// This code is for TEST/DEBUG only, do not use it if you dont't know
// what you are doing.
//---------------------------------------------------------WARNING------

#include "examples/config.h"

#ifdef DEBUG_SETTINGS

#include "base/fscapi.h"
#include "spds/constants.h"
#include "spdm/DMTree.h"
#include "spdm/DMTreeFactory.h"
#include "spdm/ManagementNode.h"

#if 0 //def _WIN32_WCE
static WCHAR *convertSlashes(const WCHAR* str) {
    int i, len;

    len = wcslen(str);
    WCHAR *ret = new WCHAR[len+1];

    for (i=0; i<len; ++i) {
        if (str[i] == L'/') {
            ret[i] = L'\\';
        }
        else {
            ret[i] = str[i];
        }
    }
    ret[len] = 0;
    return ret;
}

/*
 * Sets a property value.
 *
 * @param property - the property name
 * @param value - the property value (zero terminated string)
 */
static void setProperty(WCHAR* context, WCHAR* property, WCHAR* value) {

    HKEY key;
    DWORD res;

    WCHAR *fullContext = convertSlashes(context);

    RegCreateKeyEx(
            HKEY_LOCAL_MACHINE,
            fullContext,
            0,
            NULL,
            REG_OPTION_NON_VOLATILE,
            KEY_ALL_ACCESS,
            NULL,
            &key,
            &res
            );

    if (key == 0) {
        goto finally;
    }

    RegSetValueEx(
            key,
            property,
            NULL,
            REG_SZ,  // we currently support only strings
            (UCHAR*)value,
            (wcslen(value)+1)*sizeof(WCHAR*)
            );

finally:

    if (key != 0) {
        RegCloseKey(key);
    }
    delete [] fullContext;
}

#endif  // _WIN32_CE

int settings(const char *rootContext)
{
    char nodeName[DIM_MANAGEMENT_PATH];
    DMTree* dmt = DMTreeFactory::getDMTree(rootContext);
    lastErrorCode = 0;

    // Access config parameters
    sprintf(nodeName, "%s%s", rootContext, CONTEXT_SPDS_SYNCML);

    ManagementNode *node = dmt->readManagementNode(nodeName);
    if ( ! node ) {
        lastErrorCode = ERR_INVALID_CONTEXT;
        goto finally;
    }

    node->setPropertyValue("deviceId", "");
    node->setPropertyValue("username", "guest");
    node->setPropertyValue("password", "guest");
    node->setPropertyValue("syncUrl", "http://192.168.1.11:8080/funambol/ds");
    node->setPropertyValue("serverName", "http://192.168.1.11:8080");
    node->setPropertyValue("beginTimestamp", "0");
    node->setPropertyValue("endTimestamp", "0");
    node->setPropertyValue("sourceCount", "0");
    node->setPropertyValue("responseTimeout", "0");
    node->setPropertyValue("checkConn", "1");
    node->setPropertyValue("firstTimeSyncMode", "0");
    node->setPropertyValue("proxyHost", "");
    node->setPropertyValue("proxyPort", "");
    node->setPropertyValue("useProxy", "");
    node->setPropertyValue("clientNonce", "cGlwcG8=");
    node->setPropertyValue("serverNonce", "VGB8YHQ6U25lWmAuR3Z3bw==");
    node->setPropertyValue("serverID", "funambol");
    node->setPropertyValue("serverPWD", "funambol");
    node->setPropertyValue("isServerAuthRequired", "F");
    node->setPropertyValue("clientAuthType", "syncml:auth-basic");
    node->setPropertyValue("serverAuthType", "syncml:auth-basic");
    node->setPropertyValue("maxMsgSize", "122880");
    node->setPropertyValue("maxModPerMsg", "20");

    delete node;

    // Contact sync source parameters
    sprintf(nodeName, "%s%s", rootContext, "/spds/sources/contacts");

    node = dmt->readManagementNode(nodeName);
    if ( ! node ) {
        lastErrorCode = ERR_INVALID_CONTEXT;
        goto finally;
    }

    node->setPropertyValue("sync", "two-way");
    node->setPropertyValue("last", "0");
    node->setPropertyValue("name", "contact");
    node->setPropertyValue("type", "text/x-s4j-sifc");
    node->setPropertyValue("syncModes", "slow,two-way,refresh");
    node->setPropertyValue("uri", "scard");
    node->setPropertyValue("useSIF", "1");
    node->setPropertyValue("encoding", "b64");

    delete node;

    // Appointments sync source parameters
    sprintf(nodeName, "%s%s", rootContext, "/spds/sources/appointments");

    node = dmt->readManagementNode(nodeName);
    if ( ! node ) {
        lastErrorCode = ERR_INVALID_CONTEXT;
        goto finally;
    }

    node->setPropertyValue("sync", "none");
    node->setPropertyValue("last", "0");
    node->setPropertyValue("name", "calendar");
    node->setPropertyValue("type", "text/x-s4j-sife");
    node->setPropertyValue("syncModes", "slow,two-way,refresh");
    node->setPropertyValue("uri",  "scal");
    node->setPropertyValue("useSIF", "1");
    node->setPropertyValue("encoding", "b64");

    delete node;

    // Tasks sync source parameters
    sprintf(nodeName, "%s%s", rootContext, "/spds/sources/tasks");

    node = dmt->readManagementNode(nodeName);
    if ( ! node ) {
        lastErrorCode = ERR_INVALID_CONTEXT;
        goto finally;
    }

    node->setPropertyValue("sync", "none");
    node->setPropertyValue("last", "0");
    node->setPropertyValue("name", "task");
    node->setPropertyValue("type", "text/x-s4j-sift");
    node->setPropertyValue("syncModes", "slow,two-way,refresh");
    node->setPropertyValue("uri",  "stask");
    node->setPropertyValue("useSIF", "1");
    node->setPropertyValue("encoding", "b64");

    delete node;

    // Notes sync source parameters
    sprintf(nodeName, "%s%s", rootContext, "/spds/sources/notes");

    node = dmt->readManagementNode(nodeName);
    if ( ! node ) {
        lastErrorCode = ERR_INVALID_CONTEXT;
        goto finally;
    }

    node->setPropertyValue("sync", "none");
    node->setPropertyValue("last", "0");
    node->setPropertyValue("name", "note");
    node->setPropertyValue("type", "text/x-s4j-sifn");
    node->setPropertyValue("syncModes", "slow,two-way,refresh");
    node->setPropertyValue("uri",  "stask");
    node->setPropertyValue("useSIF", "1");
    node->setPropertyValue("encoding", "b64");

    delete node;

    // Briefcase sync source parameters
    sprintf(nodeName, "%s%s", rootContext, "/spds/sources/briefcase");

    node = dmt->readManagementNode(nodeName);
    if ( ! node ) {
        lastErrorCode = ERR_INVALID_CONTEXT;
        goto finally;
    }

    node->setPropertyValue("sync", "two-way");
    node->setPropertyValue("last", "0");
    node->setPropertyValue("name", "briefcase");
    node->setPropertyValue("type", "application/*");
    node->setPropertyValue("syncModes", "slow,two-way,refresh");
    node->setPropertyValue("uri",  "briefcase");
    node->setPropertyValue("useSIF", "1");
    node->setPropertyValue("encoding", "b64");

    delete node;

    // Mail sync source parameters
    sprintf(nodeName, "%s%s", rootContext, "/spds/sources/mails");

    node = dmt->readManagementNode(nodeName);
    if ( ! node ) {
        lastErrorCode = ERR_INVALID_CONTEXT;
        goto finally;
    }

    node->setPropertyValue("sync", "none");
    node->setPropertyValue("last", "0");
    node->setPropertyValue("name", "mail");
    node->setPropertyValue("type", "application/vnd.omads-email+xml");
    node->setPropertyValue("syncModes", "slow,two-way,refresh");
    node->setPropertyValue("uri", "mail");
    node->setPropertyValue("useSIF", "1");
    node->setPropertyValue("encoding", "text/plain");
    node->setPropertyValue("Inbox", "1" );
    node->setPropertyValue("Outbox", "1" );
    node->setPropertyValue("Trash", "0" );
    node->setPropertyValue("Sent", "1" );
    node->setPropertyValue("Draft", "0" );
    node->setPropertyValue("attachSize", "-1" );
    node->setPropertyValue("bodySyze", "-1" );
    node->setPropertyValue("downloadAge", "-1" );

finally:
    if (node)
        delete node;
    if (dmt)
        delete dmt;

    return lastErrorCode;
}

#endif // DEBUG

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91成人在线免费观看| 黄一区二区三区| 男女激情视频一区| 国产乱色国产精品免费视频| 97se亚洲国产综合自在线不卡| 91麻豆免费观看| 欧美日韩成人综合天天影院| 精品国精品国产尤物美女| 国产精品久久99| 日韩精品电影一区亚洲| 粉嫩av一区二区三区粉嫩| 欧美综合亚洲图片综合区| 精品对白一区国产伦| 亚洲品质自拍视频| 麻豆成人av在线| 91婷婷韩国欧美一区二区| 日韩免费高清视频| 亚洲精品免费在线| 国产综合色精品一区二区三区| 色哟哟在线观看一区二区三区| 精品国产伦一区二区三区观看体验| 中文字幕欧美一| 久99久精品视频免费观看| 色婷婷精品久久二区二区蜜臀av| 日韩欧美国产综合一区| 一区二区三区在线播放| 国产美女娇喘av呻吟久久| 欧美精三区欧美精三区| 亚洲素人一区二区| 国产美女久久久久| 欧美一区二区三区系列电影| 亚洲欧美自拍偷拍| 国产美女av一区二区三区| 7777精品久久久大香线蕉| 中文字幕一区二区三| 精品制服美女久久| 欧美日韩二区三区| 一区二区在线观看不卡| 国产91精品一区二区麻豆亚洲| 欧美一区二区成人6969| 亚洲最大成人网4388xx| 成人高清在线视频| 久久婷婷成人综合色| 日韩国产高清在线| 欧美最猛性xxxxx直播| 中文字幕欧美一| 成人精品国产福利| 久久嫩草精品久久久精品| 蜜桃91丨九色丨蝌蚪91桃色| 欧美视频完全免费看| 中文字幕在线不卡| 成人av免费网站| 欧美高清在线一区二区| 韩国成人在线视频| 欧美一卡2卡三卡4卡5免费| 亚洲第一精品在线| 在线观看视频一区| 亚洲欧美另类久久久精品| 99久久久无码国产精品| 亚洲国产精华液网站w| 韩国成人在线视频| 久久久久久久综合| 国产乱人伦精品一区二区在线观看 | 欧美系列一区二区| 亚洲精品自拍动漫在线| 91麻豆福利精品推荐| 中文字幕在线播放不卡一区| 成人av在线一区二区| 国产精品久久久久国产精品日日| 国产精品2024| 日本一区二区免费在线| 国产69精品久久久久777| 国产精品私人自拍| 97久久精品人人爽人人爽蜜臀| 国产精品电影一区二区| 97久久精品人人爽人人爽蜜臀| 亚洲乱码一区二区三区在线观看| 色婷婷精品久久二区二区蜜臂av| 一个色在线综合| 欧美日韩一区二区三区在线看| 亚洲一区欧美一区| 欧美日韩aaa| 美女视频第一区二区三区免费观看网站| 91麻豆精品国产91久久久使用方法 | 福利视频网站一区二区三区| 亚洲国产高清不卡| 91视频一区二区| 亚洲综合自拍偷拍| 88在线观看91蜜桃国自产| 日韩电影在线观看一区| 精品国内片67194| 国产精品影音先锋| 最新日韩在线视频| 精品视频一区二区三区免费| 水野朝阳av一区二区三区| 日韩欧美电影一区| 国产成人亚洲精品青草天美| 中文字幕亚洲在| 欧美亚洲丝袜传媒另类| 日韩avvvv在线播放| 26uuu久久天堂性欧美| 成人深夜在线观看| 亚洲自拍都市欧美小说| 日韩欧美一区在线| 成人久久18免费网站麻豆 | 欧美日韩亚洲另类| 久久国产麻豆精品| 久久精品在这里| 色中色一区二区| 久久成人综合网| 一区精品在线播放| 欧美精品色一区二区三区| 激情综合五月天| 亚洲免费伊人电影| 欧美成va人片在线观看| av日韩在线网站| 日韩黄色片在线观看| 久久久天堂av| 欧美日韩亚洲丝袜制服| 国产精品亚洲综合一区在线观看| 最新中文字幕一区二区三区| 日韩一区二区三区观看| eeuss影院一区二区三区| 视频一区视频二区中文字幕| 国产日韩欧美在线一区| 欧美日韩精品欧美日韩精品| 国产精品综合视频| 亚洲成人免费在线观看| 国产欧美日韩在线观看| 欧美一区二区三区公司| 99精品视频在线播放观看| 六月丁香综合在线视频| 亚洲精品综合在线| 国产欧美日韩不卡免费| 777午夜精品视频在线播放| voyeur盗摄精品| 精品一区二区三区在线播放| 一级中文字幕一区二区| 国产人妖乱国产精品人妖| 制服.丝袜.亚洲.另类.中文| av在线播放不卡| 韩国av一区二区| 日一区二区三区| 国产精品久久久久婷婷| wwwwxxxxx欧美| 这里只有精品电影| 色婷婷av一区二区三区大白胸| 国产在线播放一区二区三区| 午夜影视日本亚洲欧洲精品| 中文字幕一区二区三| 久久久久成人黄色影片| 日韩午夜中文字幕| 欧美日韩一区在线| 99国产欧美另类久久久精品| 国产成a人亚洲| 国产一区福利在线| 美日韩一区二区三区| 舔着乳尖日韩一区| 一区二区三区在线观看国产 | 一本一道波多野结衣一区二区| 国内久久精品视频| 蜜桃视频在线一区| 日日骚欧美日韩| 天天操天天色综合| 亚洲大片一区二区三区| 亚洲三级电影网站| 亚洲欧洲一区二区在线播放| 欧美激情一区三区| 欧美激情一区二区三区不卡| 久久精品在这里| 国产午夜亚洲精品午夜鲁丝片| 精品欧美一区二区在线观看 | 国产精品综合二区| 国产一区二区三区综合| 久久99国产精品尤物| 久久99久久久久| 蜜桃视频第一区免费观看| 日韩激情av在线| 久久精品久久久精品美女| 青草国产精品久久久久久| 天堂影院一区二区| 日韩国产欧美在线视频| 午夜精品久久久久久久久久 | 日韩欧美国产电影| 久久这里只有精品6| 国产日韩三级在线| 国产精品成人网| 伊人性伊人情综合网| 亚洲国产精品一区二区www在线 | 欧美人成免费网站| 欧美电影影音先锋| 日韩欧美亚洲一区二区| 日韩一二三区视频| 久久综合给合久久狠狠狠97色69| 久久亚洲欧美国产精品乐播 | 色综合色综合色综合色综合色综合 | 久久久久久久电影| 欧美高清在线视频| 一区二区三区四区中文字幕| 亚洲午夜国产一区99re久久|