ReactOS 0.4.15-dev-8231-g29a56f3
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 STDMETHOD(Next)(ULONG celt, LPOLESTR *rgelt, ULONG *pceltFetched) override;
48 STDMETHOD(Skip)(ULONG celt) override;
49 STDMETHOD(Reset)() override;
50 STDMETHOD(Clone)(IEnumString **ppenum) override;
51
52 // *** IACList methods ***
53 STDMETHOD(Expand)(LPCOLESTR pszExpand) override;
54
55 // *** IObjMgr methods ***
56 STDMETHOD(Append)(IUnknown *punk) override;
57 STDMETHOD(Remove)(IUnknown *punk) override;
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 STDMETHOD(m)
Definition: basetyps.h:62
STDMETHOD() Clone(IEnumString **ppenum) override
Definition: aclmulti.cpp:127
STDMETHOD() Expand(LPCOLESTR pszExpand) override
Definition: aclmulti.cpp:134
STDMETHOD() Next(ULONG celt, LPOLESTR *rgelt, ULONG *pceltFetched) override
Definition: aclmulti.cpp:87
STDMETHOD() Skip(ULONG celt) override
Definition: aclmulti.cpp:121
INT fObjectCount
Definition: aclmulti.h:39
~CACLMulti()
Definition: aclmulti.cpp:40
struct ACLMultiSublist * fObjects
Definition: aclmulti.h:41
void release_obj(struct ACLMultiSublist *obj)
Definition: aclmulti.cpp:24
INT fCurrentObject
Definition: aclmulti.h:40
STDMETHOD() Reset() override
Definition: aclmulti.cpp:108
STDMETHOD() Append(IUnknown *punk) override
Definition: aclmulti.cpp:50
#define IDR_ACLMULTI
Definition: resource.h:90
#define BEGIN_COM_MAP(x)
Definition: atlcom.h:581
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:601
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
Definition: atlcom.h:679
#define DECLARE_NOT_AGGREGATABLE(x)
Definition: atlcom.h:651
#define DECLARE_REGISTRY_RESOURCEID(x)
Definition: atlcom.h:645
#define END_COM_MAP()
Definition: atlcom.h:592
static LPOLESTR
Definition: stg_prop.c:27
const GUID IID_IEnumString
IEnumString * pEnum
Definition: aclmulti.h:35
int32_t INT
Definition: typedefs.h:58
uint32_t ULONG
Definition: typedefs.h:59
_In_ BOOLEAN Remove
Definition: psfuncs.h:110