⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basefolder.h

📁 《Windows CE 权威指南》(作者:(美)CHRIS MUENCH
💻 H
字号:
//
//	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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -