?? filesyncsource.h
字號(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
*/
#ifndef INCL_FILE_SYNC_SOURCE
#define INCL_FILE_SYNC_SOURCE
#include "base/fscapi.h"
#include "spds/common/constants.h"
#include "spds/common/SyncItem.h"
#include "spds/common/SyncMap.h"
#include "spds/common/SyncStatus.h"
#include "pim/PPC2003SyncSource.h"
class /*__declspec(dllexport)*/ FILESyncSource : public PPC2003SyncSource {
public:
/**
* Constructor: create a SyncSource with the specified name
*
* @param name - the name of the SyncSource
*/
FILESyncSource(const wchar_t* name) EXTRA_SECTION_01;
// TestSyncSource
~FILESyncSource() EXTRA_SECTION_01;
/*
* Return the first SyncItem of all.
* It is used in case of slow or refresh sync
* and retrieve the entire data source content.
*/
SyncItem* getFirstItem() EXTRA_SECTION_01;
/*
* Return the next SyncItem of all.
* It is used in case of slow or refresh sync
* and retrieve the entire data source content.
*/
SyncItem* getNextItem() EXTRA_SECTION_01;
/*
* Return the first SyncItem of new one. It is used in case of fast sync
* and retrieve the new data source content.
*/
SyncItem* getFirstNewItem() EXTRA_SECTION_01;
/*
* Return the next SyncItem of new one. It is used in case of fast sync
* and retrieve the new data source content.
*/
SyncItem* getNextNewItem() EXTRA_SECTION_01;
/*
* Return the first SyncItem of updated one. It is used in case of fast sync
* and retrieve the new data source content.
*/
SyncItem* getFirstUpdatedItem() EXTRA_SECTION_01;
/*
* Return the next SyncItem of updated one. It is used in case of fast sync
* and retrieve the new data source content.
*/
SyncItem* getNextUpdatedItem() EXTRA_SECTION_01;
/*
* Return the first SyncItem of updated one. It is used in case of fast sync
* and retrieve the new data source content.
*/
SyncItem* getFirstDeletedItem() EXTRA_SECTION_01;
/*
* Return the next SyncItem of updated one. It is used in case of fast sync
* and retrieve the new data source content.
*/
SyncItem* getNextDeletedItem() EXTRA_SECTION_01;
void setItemStatus(const wchar_t* key, int status) EXTRA_SECTION_01;
int addItem(SyncItem& item) EXTRA_SECTION_01;
int updateItem(SyncItem& item) EXTRA_SECTION_01;
int deleteItem(SyncItem& item) EXTRA_SECTION_01;
};
#endif
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -