summaryrefslogtreecommitdiff
path: root/NSCmpts/EmptyTempFolder.h
blob: 1453b2f9f246435b0c59b611e1746bff83ce104e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// EmptyTempFolder.h : Declaration of the CEmptyTempFolder

#ifndef __EMPTYTEMPFOLDER_H_
#define __EMPTYTEMPFOLDER_H_

#include "resource.h"       // main symbols
#include "../Common/CmptData.h"

#include "ActionEngine.h"

#include <mystring.h>

/////////////////////////////////////////////////////////////////////////////
// CEmptyTempFolder
class ATL_NO_VTABLE CEmptyTempFolder : 
	public CComObjectRootEx<CComSingleThreadModel>,
	public CComCoClass<CEmptyTempFolder, &CLSID_EmptyTempFolder>,
	public ISupportErrorInfo,
	public IObjectWithSiteImpl<CEmptyTempFolder>,
	public IDispatchImpl<ISecureShutdownWin, &IID_ISecureShutdownWin, &LIBID_NightSecCmpts>
{
public:
	CEmptyTempFolder()
	{
	}
	~CEmptyTempFolder()
		{ ATLTRACE(_T("Destroying EmptyTempFolder\n")); }


DECLARE_REGISTRY_RESOURCEID(IDR_EMPTYTEMPFOLDER)

BEGIN_COM_MAP(CEmptyTempFolder)
	COM_INTERFACE_ENTRY(ISecureShutdownWin)
	COM_INTERFACE_ENTRY(IDispatch)
	COM_INTERFACE_ENTRY(IObjectWithSite)
	COM_INTERFACE_ENTRY(ISupportErrorInfo)
END_COM_MAP()

// ISupportsErrorInfo
	STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);

// ISecureShutdownWin
public:
	STDMETHOD(get_Info)(/*[in]*/ NightSecInfo nsItem, /*[out, retval]*/ VARIANT* pvVal);
	STDMETHOD(DoShutdown)(/*[in]*/ long hParent, /*[in]*/ long lMode);
	STDMETHOD(SetData)(/*[in]*/ IUnknown* pUnk);

// Data
protected:
	CPropertyBag m_Data;
	CActionEngine m_Engine;


// Helpers
private:
//	string CleanSlashes(const string& sPath);
};

#endif //__EMPTYTEMPFOLDER_H_