ReactOS 0.4.15-dev-5664-g3bf4ef6
aclmulti.h
Go to the documentation of this file.
1/*
2 * Multisource AutoComplete list
3 *
4 * Copyright 2007 Mikolaj Zalewski
5 * Copyright 2009 Andrew Hill
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 */
21
22#pragma once
23
24class CACLMulti :
25 public CComCoClass<CACLMulti, &CLSID_ACLMulti>,
26 public CComObjectRootEx<CComMultiThreadModelNoCS>,
27 public IEnumString,
28 public IObjMgr,
29 public IACList
30{
31private:
33 {
36 IACList *pACL;
37 };
38
42public:
43 CACLMulti();
44 ~CACLMulti();
45
46 // *** IEnumString methods ***
47 virtual HRESULT STDMETHODCALLTYPE Next(ULONG celt, LPOLESTR *rgelt, ULONG *pceltFetched);
48 virtual HRESULT STDMETHODCALLTYPE Skip(ULONG celt);
51
52 // *** IACList methods ***
53 virtual HRESULT STDMETHODCALLTYPE Expand(LPCOLESTR pszExpand);
54
55 // *** IObjMgr methods ***
58
59private:
60 void release_obj(struct ACLMultiSublist *obj);
61
62public:
63
66
68
71 COM_INTERFACE_ENTRY_IID(IID_IACList, IACList)
72 COM_INTERFACE_ENTRY_IID(IID_IObjMgr, IObjMgr)
74};
#define STDMETHODCALLTYPE
Definition: bdasup.h:9
virtual HRESULT STDMETHODCALLTYPE Append(IUnknown *punk)
Definition: aclmulti.cpp:50
virtual HRESULT STDMETHODCALLTYPE Clone(IEnumString **ppenum)
Definition: aclmulti.cpp:127
INT fObjectCount
Definition: aclmulti.h:39
~CACLMulti()
Definition: aclmulti.cpp:40
struct ACLMultiSublist * fObjects
Definition: aclmulti.h:41
virtual HRESULT STDMETHODCALLTYPE Reset()
Definition: aclmulti.cpp:108
void release_obj(struct ACLMultiSublist *obj)
Definition: aclmulti.cpp:24
INT fCurrentObject
Definition: aclmulti.h:40
virtual HRESULT STDMETHODCALLTYPE Skip(ULONG celt)
Definition: aclmulti.cpp:121
virtual HRESULT STDMETHODCALLTYPE Expand(LPCOLESTR pszExpand)
Definition: aclmulti.cpp:134
virtual HRESULT STDMETHODCALLTYPE Next(ULONG celt, LPOLESTR *rgelt, ULONG *pceltFetched)
Definition: aclmulti.cpp:87
#define IDR_ACLMULTI
Definition: resource.h:90
#define BEGIN_COM_MAP(x)
Definition: atlcom.h:542
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:562
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
Definition: atlcom.h:640
#define DECLARE_NOT_AGGREGATABLE(x)
Definition: atlcom.h:612
#define DECLARE_REGISTRY_RESOURCEID(x)
Definition: atlcom.h:606
#define END_COM_MAP()
Definition: atlcom.h:553
unsigned int ULONG
Definition: retypes.h:1
static LPOLESTR
Definition: stg_prop.c:27
const GUID IID_IEnumString
IEnumString * pEnum
Definition: aclmulti.h:35
int32_t INT
Definition: typedefs.h:58
_In_ BOOLEAN Remove
Definition: psfuncs.h:110