mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.3 KiB
71 lines
1.3 KiB
//____________________________________________________________________________
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1996 - 1999
|
|
//
|
|
// File: nodemgr.h
|
|
//
|
|
// Contents:
|
|
//
|
|
// Classes:
|
|
//
|
|
// Functions:
|
|
//
|
|
// History: 1/27/1997 RaviR Created
|
|
//____________________________________________________________________________
|
|
//
|
|
|
|
|
|
|
|
#ifndef MMC_NODEMGR_H_
|
|
#define MMC_NODEMGR_H_
|
|
|
|
class CSnapInsCache;
|
|
|
|
class CNodeMgrApp : public COleCacheCleanupObserver
|
|
{
|
|
public:
|
|
CNodeMgrApp() : m_pSnapInsCache(NULL), m_bProcessingSnapinChanges(FALSE)
|
|
{
|
|
// register to be notified when everything cached needs to be released.
|
|
COleCacheCleanupManager::AddOleObserver(this);
|
|
}
|
|
|
|
~CNodeMgrApp()
|
|
{
|
|
}
|
|
|
|
virtual SC ScOnReleaseCachedOleObjects();
|
|
|
|
virtual void Init();
|
|
virtual void DeInit();
|
|
|
|
CSnapInsCache* GetSnapInsCache(void)
|
|
{
|
|
return m_pSnapInsCache;
|
|
}
|
|
|
|
void SetSnapInsCache(CSnapInsCache* pSIC);
|
|
|
|
void SetProcessingSnapinChanges(BOOL bProcessing)
|
|
{
|
|
m_bProcessingSnapinChanges = bProcessing;
|
|
}
|
|
|
|
BOOL ProcessingSnapinChanges()
|
|
{
|
|
return m_bProcessingSnapinChanges;
|
|
}
|
|
|
|
private:
|
|
CSnapInsCache* m_pSnapInsCache;
|
|
BOOL m_bProcessingSnapinChanges;
|
|
|
|
}; // CNodeMgrApp
|
|
|
|
|
|
EXTERN_C CNodeMgrApp theApp;
|
|
|
|
#endif // MMC_NODEMGR_H_
|
|
|
|
|