70 lines
1.7 KiB
C
70 lines
1.7 KiB
C
|
/*++
|
||
|
|
||
|
Copyright (C) 1998-1999 Microsoft Corporation
|
||
|
|
||
|
Module Name:
|
||
|
|
||
|
smnode.h
|
||
|
|
||
|
Abstract:
|
||
|
|
||
|
Base class representing a node in the MMC user interface.
|
||
|
|
||
|
--*/
|
||
|
|
||
|
#ifndef _CLASS_SMNODE_
|
||
|
#define _CLASS_SMNODE_
|
||
|
|
||
|
class CSmNode;
|
||
|
class CSmRootNode;
|
||
|
class CSmLogService;
|
||
|
class CSmCounterLogService;
|
||
|
class CSmTraceLogService;
|
||
|
class CSmAlertService;
|
||
|
|
||
|
class CSmNode
|
||
|
{
|
||
|
// constructor/destructor
|
||
|
public:
|
||
|
CSmNode();
|
||
|
virtual ~CSmNode();
|
||
|
|
||
|
// public methods
|
||
|
public:
|
||
|
|
||
|
const CString& GetDisplayName( void );
|
||
|
const CString& GetMachineName( void );
|
||
|
const CString& GetMachineDisplayName( void );
|
||
|
const CString& GetDescription( void );
|
||
|
const CString& GetType( void );
|
||
|
|
||
|
DWORD SetMachineName( const CString& );
|
||
|
|
||
|
BOOL IsLocalMachine ( void );
|
||
|
|
||
|
virtual CSmRootNode* CastToRootNode( void ) { return NULL; };
|
||
|
virtual CSmLogService* CastToLogService( void ) { return NULL; };
|
||
|
virtual CSmCounterLogService* CastToCounterLogService( void ) { return NULL; };
|
||
|
virtual CSmTraceLogService* CastToTraceLogService( void ) { return NULL; };
|
||
|
virtual CSmAlertService* CastToAlertService( void ) { return NULL; };
|
||
|
|
||
|
protected:
|
||
|
|
||
|
DWORD SetDisplayName( const CString& );
|
||
|
void SetDescription( const CString& ); // Throws exception on error
|
||
|
DWORD SetType( const CString& );
|
||
|
|
||
|
private:
|
||
|
CString m_strName;
|
||
|
CString m_strMachineName;
|
||
|
CString m_strMachineDisplayName;
|
||
|
CString m_strDesc;
|
||
|
CString m_strType;
|
||
|
CSmNode* m_pParentNode;
|
||
|
};
|
||
|
|
||
|
typedef CSmNode SMNODE;
|
||
|
typedef CSmNode* PSMNODE;
|
||
|
|
||
|
|
||
|
#endif //_CLASS_SMNODE_
|