basefolder.h

来自「《Windows CE 权威指南》(作者:(美)CHRIS MUENCH」· C头文件 代码 · 共 51 行

H
51
字号
//
//	File:
//	=====
//	BaseFolder.h: Header File
//
//	Description:
//	============
//	Abstract base class that defines a folder object in the store.
//	The store object keeps a list of ptrs to objects of this class.
//	To create a new folder object, derive it from this object, 
//	implement all the virtual functions and add to the store's
//	list of folder ptrs.
//

#pragma once

class CPCDMSyncStore;

class CBaseFolder
{
public:
	CBaseFolder(CPCDMSyncStore *pStore){ m_pStore = pStore;}
	virtual ~CBaseFolder(){};

protected:
	CPCDMSyncStore *m_pStore;

public:
	virtual const LPTSTR GetPlTypeText()  = 0;
	virtual const LPTSTR GetTypeText()  = 0;
	virtual const LPTSTR GetName() = 0;

public:
	virtual BOOL IsItemChanged(HREPLITEM hItem) = 0;
	virtual BOOL IsItemReplicated(HREPLITEM hItem) = 0;

	virtual HRESULT Initialize(IUnknown **ppObjHandler) = 0;
	virtual HRESULT IsValidObject(HREPLITEM hObject, UINT uFlags) = 0;
	virtual HRESULT IsFolderChanged(BOOL *pfChanged) = 0;
	virtual HRESULT DeleteItem(HREPLITEM hItem) = 0;
	virtual HRESULT FindFirstItem(HREPLITEM *phItem, BOOL *pfExist) = 0;
	virtual HRESULT FindNextItem(HREPLITEM *phItem, BOOL *pfExist) = 0;
	virtual HRESULT FindItemClose() = 0;
	virtual HRESULT RemoveDuplicates() = 0;
	virtual HRESULT UpdateItem(HREPLITEM hItem) = 0;

	virtual HRESULT GetObjTypeUIData(POBJUIDATA pData) = 0;
	virtual HRESULT ActivateDialog(UINT uDlg, HWND hwndParent, IEnumReplItem *pEnum) = 0;
	virtual HRESULT GetConflictInfo(PCONFINFO pConfInfo) = 0;
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?