Windows2003-3790/inetcore/outlookexpress/mailnews/store/enumsync.h
2020-09-30 16:53:55 +02:00

47 lines
1.8 KiB
C++

#pragma once
//--------------------------------------------------------------------------
// CEnumerateSyncOps
//--------------------------------------------------------------------------
class CEnumerateSyncOps : public IUnknown
{
public:
//----------------------------------------------------------------------
// CEnumerateSyncOps
//----------------------------------------------------------------------
CEnumerateSyncOps(void);
~CEnumerateSyncOps(void);
//----------------------------------------------------------------------
// IUnknown Members
//----------------------------------------------------------------------
STDMETHODIMP QueryInterface(REFIID riid, LPVOID *ppv);
STDMETHODIMP_(ULONG) AddRef(void);
STDMETHODIMP_(ULONG) Release(void);
//----------------------------------------------------------------------
// CEnumerateSyncOps Members
//----------------------------------------------------------------------
HRESULT Initialize(IDatabase *pDB, FOLDERID idServer);
//----------------------------------------------------------------------
// IEnumerateFolders Members
//----------------------------------------------------------------------
STDMETHODIMP Next(LPSYNCOPINFO pInfo);
STDMETHODIMP Count(ULONG *pcItems);
STDMETHODIMP Reset(void);
STDMETHODIMP Skip(ULONG cItems);
private:
//----------------------------------------------------------------------
// Private Data
//----------------------------------------------------------------------
LONG m_cRef;
SYNCOPID *m_pid;
DWORD m_iid;
DWORD m_cid;
DWORD m_cidBuf;
FOLDERID m_idServer;
IDatabase *m_pDB;
};