2016-04-08 08:30:09 +00:00
|
|
|
/*
|
2018-04-13 20:59:04 +00:00
|
|
|
* PROJECT: shell32
|
|
|
|
* LICENSE: LGPL-2.1+ (https://spdx.org/licenses/LGPL-2.1+)
|
|
|
|
* PURPOSE: Folder implementation
|
|
|
|
* COPYRIGHT: Copyright 2015-2018 Mark Jansen (mark.jansen@reactos.org)
|
2016-04-08 08:30:09 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _FOLDER_H_
|
|
|
|
#define _FOLDER_H_
|
|
|
|
|
|
|
|
|
|
|
|
class CFolder:
|
|
|
|
public CComCoClass<CFolder>,
|
|
|
|
public CComObjectRootEx<CComMultiThreadModelNoCS>,
|
2016-04-11 18:28:31 +00:00
|
|
|
public IDispatchImpl<Folder2, &IID_Folder2>
|
2016-04-08 08:30:09 +00:00
|
|
|
{
|
|
|
|
private:
|
2016-04-11 18:28:31 +00:00
|
|
|
HRESULT GetShellFolder(CComPtr<IShellFolder>& psfCurrent);
|
|
|
|
|
2016-04-08 08:30:09 +00:00
|
|
|
CComHeapPtr<ITEMIDLIST> m_idlist;
|
2018-04-13 20:59:04 +00:00
|
|
|
CComPtr<IShellDispatch> m_Application;
|
2016-04-08 08:30:09 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
CFolder();
|
|
|
|
~CFolder();
|
|
|
|
|
2018-04-13 20:59:04 +00:00
|
|
|
HRESULT Initialize(LPITEMIDLIST idlist);
|
2016-04-08 08:30:09 +00:00
|
|
|
|
|
|
|
// *** Folder methods ***
|
2024-03-04 23:43:39 +00:00
|
|
|
STDMETHOD(get_Title)(BSTR *pbs) override;
|
|
|
|
STDMETHOD(get_Application)(IDispatch **ppid) override;
|
|
|
|
STDMETHOD(get_Parent)(IDispatch **ppid) override;
|
|
|
|
STDMETHOD(get_ParentFolder)(Folder **ppsf) override;
|
|
|
|
STDMETHOD(Items)(FolderItems **ppid) override;
|
|
|
|
STDMETHOD(ParseName)(BSTR bName, FolderItem **ppid) override;
|
|
|
|
STDMETHOD(NewFolder)(BSTR bName, VARIANT vOptions) override;
|
|
|
|
STDMETHOD(MoveHere)(VARIANT vItem, VARIANT vOptions) override;
|
|
|
|
STDMETHOD(CopyHere)(VARIANT vItem, VARIANT vOptions) override;
|
|
|
|
STDMETHOD(GetDetailsOf)(VARIANT vItem, int iColumn, BSTR *pbs) override;
|
2016-04-08 08:30:09 +00:00
|
|
|
|
|
|
|
// *** Folder2 methods ***
|
2024-03-04 23:43:39 +00:00
|
|
|
STDMETHOD(get_Self)(FolderItem **ppfi) override;
|
|
|
|
STDMETHOD(get_OfflineStatus)(LONG *pul) override;
|
|
|
|
STDMETHOD(Synchronize)() override;
|
|
|
|
STDMETHOD(get_HaveToShowWebViewBarricade)(VARIANT_BOOL *pbHaveToShowWebViewBarricade) override;
|
|
|
|
STDMETHOD(DismissedWebViewBarricade)() override;
|
2016-04-08 08:30:09 +00:00
|
|
|
|
|
|
|
DECLARE_NOT_AGGREGATABLE(CFolder)
|
|
|
|
DECLARE_PROTECT_FINAL_CONSTRUCT()
|
|
|
|
|
|
|
|
BEGIN_COM_MAP(CFolder)
|
|
|
|
COM_INTERFACE_ENTRY_IID(IID_Folder2, Folder2)
|
|
|
|
COM_INTERFACE_ENTRY_IID(IID_Folder, Folder)
|
|
|
|
COM_INTERFACE_ENTRY_IID(IID_IDispatch, IDispatch)
|
|
|
|
END_COM_MAP()
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|