ReactOS  0.4.14-dev-342-gdc047f9
CEnumZipContents Class Reference
Inheritance diagram for CEnumZipContents:
Collaboration diagram for CEnumZipContents:

Public Member Functions

 CEnumZipContents ()
 
STDMETHODIMP Initialize (IZip *zip, DWORD flags, const char *prefix)
 
STDMETHODIMP Next (ULONG celt, LPITEMIDLIST *rgelt, ULONG *pceltFetched)
 
STDMETHODIMP Skip (ULONG celt)
 
STDMETHODIMP Reset ()
 
STDMETHODIMP Clone (IEnumIDList **ppenum)
 
- Public Member Functions inherited from ATL::CComObjectRootEx< CComMultiThreadModelNoCS >
 ~CComObjectRootEx ()
 
ULONG InternalAddRef ()
 
ULONG InternalRelease ()
 
void Lock ()
 
void Unlock ()
 
HRESULT _AtlInitialConstruct ()
 
- Public Member Functions inherited from ATL::CComObjectRootBase
 CComObjectRootBase ()
 
 ~CComObjectRootBase ()
 
void SetVoid (void *)
 
HRESULT _AtlFinalConstruct ()
 
HRESULT FinalConstruct ()
 
void InternalFinalConstructAddRef ()
 
void InternalFinalConstructRelease ()
 
void FinalRelease ()
 
- Public Member Functions inherited from IUnknown
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 

Private Attributes

CZipEnumerator mEnumerator
 
DWORD dwFlags
 
CStringA m_Prefix
 

Additional Inherited Members

- Public Types inherited from IEnumIDList
typedef IEnumIDListLPENUMIDLIST
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 
- Static Public Member Functions inherited from ATL::CComObjectRootBase
static void WINAPI ObjectMain (bool)
 
static const struct _ATL_CATMAP_ENTRYGetCategoryMap ()
 
static HRESULT WINAPI InternalQueryInterface (void *pThis, const _ATL_INTMAP_ENTRY *pEntries, REFIID iid, void **ppvObject)
 
- Public Attributes inherited from ATL::CComObjectRootBase
LONG m_dwRef
 

Detailed Description

Definition at line 10 of file CEnumZipContents.cpp.

Constructor & Destructor Documentation

◆ CEnumZipContents()

CEnumZipContents::CEnumZipContents ( )
inline

Definition at line 19 of file CEnumZipContents.cpp.

20  :dwFlags(0)
21  {
22  }

Member Function Documentation

◆ Clone()

STDMETHODIMP CEnumZipContents::Clone ( IEnumIDList **  ppenum)
inline

Implements IEnumIDList.

Definition at line 75 of file CEnumZipContents.cpp.

76  {
77  return E_NOTIMPL;
78  }
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Initialize()

STDMETHODIMP CEnumZipContents::Initialize ( IZip zip,
DWORD  flags,
const char prefix 
)
inline

Definition at line 24 of file CEnumZipContents.cpp.

25  {
26  dwFlags = flags;
27  m_Prefix = prefix;
28  if (mEnumerator.initialize(zip))
29  return S_OK;
30  return E_FAIL;
31  }
bool initialize(IZip *zip)
#define E_FAIL
Definition: ddrawi.h:102
GLbitfield flags
Definition: glext.h:7161
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
#define S_OK
Definition: intsafe.h:59
CZipEnumerator mEnumerator

◆ Next()

STDMETHODIMP CEnumZipContents::Next ( ULONG  celt,
LPITEMIDLIST rgelt,
ULONG pceltFetched 
)
inline

Implements IEnumIDList.

Definition at line 34 of file CEnumZipContents.cpp.

35  {
36  if (!pceltFetched || !rgelt)
37  return E_POINTER;
38 
39  *pceltFetched = 0;
40 
41  if (celt != 1)
42  return E_FAIL;
43 
44  CStringA name;
45  bool dir;
48  {
49  *pceltFetched = 1;
51  return S_OK;
52  }
53 
54  return S_FALSE;
55  }
#define E_FAIL
Definition: ddrawi.h:102
struct _test_info info[]
Definition: SetCursorPos.c:19
#define S_FALSE
Definition: winerror.h:2357
unsigned int dir
Definition: maze.c:112
bool next_unique(const char *prefix, CStringA &name, bool &folder, unz_file_info64 &info)
#define S_OK
Definition: intsafe.h:59
CZipEnumerator mEnumerator
Definition: name.c:36
#define E_POINTER
Definition: winerror.h:2365
LPITEMIDLIST _ILCreate(LPCWSTR lpString, ULONG Index)
Definition: fontpidl.cpp:10
GLuint const GLchar * name
Definition: glext.h:6031

◆ Reset()

STDMETHODIMP CEnumZipContents::Reset ( void  )
inline

Implements IEnumIDList.

Definition at line 69 of file CEnumZipContents.cpp.

70  {
71  if (mEnumerator.reset())
72  return S_OK;
73  return E_FAIL;
74  }
#define E_FAIL
Definition: ddrawi.h:102
#define S_OK
Definition: intsafe.h:59
CZipEnumerator mEnumerator

◆ Skip()

STDMETHODIMP CEnumZipContents::Skip ( ULONG  celt)
inline

Implements IEnumIDList.

Definition at line 56 of file CEnumZipContents.cpp.

57  {
58  CStringA name;
59  bool dir;
61  while (celt--)
62  {
64  return E_FAIL;
65  ;
66  }
67  return S_OK;
68  }
#define E_FAIL
Definition: ddrawi.h:102
struct _test_info info[]
Definition: SetCursorPos.c:19
unsigned int dir
Definition: maze.c:112
bool next_unique(const char *prefix, CStringA &name, bool &folder, unz_file_info64 &info)
#define S_OK
Definition: intsafe.h:59
CZipEnumerator mEnumerator
Definition: name.c:36
GLuint const GLchar * name
Definition: glext.h:6031

Member Data Documentation

◆ dwFlags

DWORD CEnumZipContents::dwFlags
private

Definition at line 16 of file CEnumZipContents.cpp.

◆ m_Prefix

CStringA CEnumZipContents::m_Prefix
private

Definition at line 17 of file CEnumZipContents.cpp.

Referenced by Initialize(), Next(), and Skip().

◆ mEnumerator

CZipEnumerator CEnumZipContents::mEnumerator
private

Definition at line 15 of file CEnumZipContents.cpp.

Referenced by Initialize(), Next(), Reset(), and Skip().


The documentation for this class was generated from the following file: