reactos/dll/win32/browseui/aclmulti.h
Katayama Hirofumi MZ bb297bc351
[BROWSEUI] Use STDMETHOD macro and keyword override (#6569)
For simplicity and short typing.
JIRA issue: CORE-19469
- Replace "virtual HRESULT 
  STDMETHODCALLTYPE m"
  with "STDMETHOD(m)"
  (m is a method name).
- Replace "virtual t
  STDMETHODCALLTYPE m"
  with "STDMETHOD_(t, m)"
 (t is a type. m is a method name).
- Use "override" keyword as possible.
2024-03-05 00:53:11 +09:00

74 lines
2.3 KiB
C++

/*
* Multisource AutoComplete list
*
* Copyright 2007 Mikolaj Zalewski
* Copyright 2009 Andrew Hill
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#pragma once
class CACLMulti :
public CComCoClass<CACLMulti, &CLSID_ACLMulti>,
public CComObjectRootEx<CComMultiThreadModelNoCS>,
public IEnumString,
public IObjMgr,
public IACList
{
private:
struct ACLMultiSublist
{
IUnknown *punk;
IEnumString *pEnum;
IACList *pACL;
};
INT fObjectCount;
INT fCurrentObject;
struct ACLMultiSublist *fObjects;
public:
CACLMulti();
~CACLMulti();
// *** IEnumString methods ***
STDMETHOD(Next)(ULONG celt, LPOLESTR *rgelt, ULONG *pceltFetched) override;
STDMETHOD(Skip)(ULONG celt) override;
STDMETHOD(Reset)() override;
STDMETHOD(Clone)(IEnumString **ppenum) override;
// *** IACList methods ***
STDMETHOD(Expand)(LPCOLESTR pszExpand) override;
// *** IObjMgr methods ***
STDMETHOD(Append)(IUnknown *punk) override;
STDMETHOD(Remove)(IUnknown *punk) override;
private:
void release_obj(struct ACLMultiSublist *obj);
public:
DECLARE_REGISTRY_RESOURCEID(IDR_ACLMULTI)
DECLARE_NOT_AGGREGATABLE(CACLMulti)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(CACLMulti)
COM_INTERFACE_ENTRY_IID(IID_IEnumString, IEnumString)
COM_INTERFACE_ENTRY_IID(IID_IACList, IACList)
COM_INTERFACE_ENTRY_IID(IID_IObjMgr, IObjMgr)
END_COM_MAP()
};