ReactOS  0.4.15-dev-1397-g19779b3
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 
24 class CACLMulti :
25  public CComCoClass<CACLMulti, &CLSID_ACLMulti>,
26  public CComObjectRootEx<CComMultiThreadModelNoCS>,
27  public IEnumString,
28  public IObjMgr,
29  public IACList
30 {
31 private:
33  {
36  IACList *pACL;
37  };
38 
42 public:
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);
50  virtual HRESULT STDMETHODCALLTYPE Clone(IEnumString **ppenum);
51 
52  // *** IACList methods ***
53  virtual HRESULT STDMETHODCALLTYPE Expand(LPCOLESTR pszExpand);
54 
55  // *** IObjMgr methods ***
58 
59 private:
60  void release_obj(struct ACLMultiSublist *obj);
61 
62 public:
63 
66 
68 
71  COM_INTERFACE_ENTRY_IID(IID_IACList, IACList)
72  COM_INTERFACE_ENTRY_IID(IID_IObjMgr, IObjMgr)
73  END_COM_MAP()
74 };
INT fCurrentObject
Definition: aclmulti.h:40
virtual HRESULT STDMETHODCALLTYPE Expand(LPCOLESTR pszExpand)
Definition: aclmulti.cpp:134
const GUID IID_IEnumString
#define IDR_ACLMULTI
Definition: resource.h:90
#define DECLARE_NOT_AGGREGATABLE(x)
Definition: atlcom.h:611
virtual HRESULT STDMETHODCALLTYPE Clone(IEnumString **ppenum)
Definition: aclmulti.cpp:127
static LPOLESTR
Definition: stg_prop.c:27
int32_t INT
Definition: typedefs.h:58
virtual HRESULT STDMETHODCALLTYPE Reset()
Definition: aclmulti.cpp:108
#define BEGIN_COM_MAP(x)
Definition: atlcom.h:541
virtual HRESULT STDMETHODCALLTYPE Append(IUnknown *punk)
Definition: aclmulti.cpp:50
LONG HRESULT
Definition: typedefs.h:79
~CACLMulti()
Definition: aclmulti.cpp:40
#define STDMETHODCALLTYPE
Definition: bdasup.h:9
virtual HRESULT STDMETHODCALLTYPE Skip(ULONG celt)
Definition: aclmulti.cpp:121
IEnumString * pEnum
Definition: aclmulti.h:35
virtual HRESULT STDMETHODCALLTYPE Remove(IUnknown *punk)
Definition: aclmulti.cpp:68
#define DECLARE_REGISTRY_RESOURCEID(x)
Definition: atlcom.h:605
virtual HRESULT STDMETHODCALLTYPE Next(ULONG celt, LPOLESTR *rgelt, ULONG *pceltFetched)
Definition: aclmulti.cpp:87
INT fObjectCount
Definition: aclmulti.h:39
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:561
struct ACLMultiSublist * fObjects
Definition: aclmulti.h:41
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
Definition: atlcom.h:639
void release_obj(struct ACLMultiSublist *obj)
Definition: aclmulti.cpp:24
unsigned int ULONG
Definition: retypes.h:1
#define END_COM_MAP()
Definition: atlcom.h:552