windows-nt/Source/XPSP1/NT/net/mmc/ipsecmon/sfltnode.h

108 lines
2.8 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/**********************************************************************/
/** Microsoft Windows/NT **/
/** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
/**********************************************************************/
/*
FltrNode.h
FILE HISTORY:
*/
#ifndef _SFLTNODE_H
#define _SFLTNODE_H
#ifndef _IPSMHAND_H
#include "ipsmhand.h"
#endif
#ifndef _SPDDB_H
#include "spddb.h"
#endif
class CSearchFilters;
/*---------------------------------------------------------------------------
Class: CSpecificFilterHandler
---------------------------------------------------------------------------*/
class CSpecificFilterHandler : public CIpsmHandler
{
public:
CSpecificFilterHandler(ITFSComponentData* pTFSComponentData);
~CSpecificFilterHandler();
// Interface
public:
// base handler functionality we override
OVERRIDE_NodeHandler_HasPropertyPages();
OVERRIDE_NodeHandler_CreatePropertyPages();
OVERRIDE_NodeHandler_OnAddMenuItems();
OVERRIDE_NodeHandler_OnCommand();
OVERRIDE_NodeHandler_GetString()
{ return (nCol == 0) ? GetDisplayName() : NULL; }
// Base handler notifications we handle
OVERRIDE_BaseHandlerNotify_OnExpand();
OVERRIDE_BaseHandlerNotify_OnDelete();
OVERRIDE_BaseHandlerNotify_OnPropertyChange();
// Result handler functionality we override
OVERRIDE_BaseResultHandlerNotify_OnResultSelect();
OVERRIDE_BaseResultHandlerNotify_OnResultUpdateView();
OVERRIDE_ResultHandler_OnGetResultViewType();
OVERRIDE_ResultHandler_GetVirtualString();
OVERRIDE_ResultHandler_GetVirtualImage();
OVERRIDE_ResultHandler_AddMenuItems();
OVERRIDE_ResultHandler_Command();
STDMETHODIMP CacheHint(int nStartIndex, int nEndIndex);
STDMETHODIMP SortItems(int nColumn,
DWORD dwSortOptions,
LPARAM lUserParam);
// base handler overrides
virtual HRESULT LoadColumns(ITFSComponent *, MMC_COOKIE, LPARAM, LPARAM);
// CHandler overridden
virtual HRESULT OnRefresh(ITFSNode *, LPDATAOBJECT, DWORD, LPARAM, LPARAM);
// multi select support
virtual const GUID * GetVirtualGuid(int nIndex)
{
return &GUID_IpsmSpecificFilterNodeType;
}
public:
// CMTIpsmHandler functionality
virtual HRESULT InitializeNode(ITFSNode * pNode);
virtual int GetImageIndex(BOOL bOpenImage);
ITFSQueryObject* OnCreateQuery(ITFSNode * pNode);
public:
// implementation specific
HRESULT InitData(ISpdInfo * pSpdInfo);
HRESULT UpdateStatus(ITFSNode * pNode);
void SetColumnInfo();
// Implementation
private:
// Command handlers
HRESULT OnDelete(ITFSNode * pNode);
HRESULT UpdateViewType(
ITFSNode * pNode,
FILTER_TYPE NewFltrType
);
private:
SPISpdInfo m_spSpdInfo;
CSearchFilters * m_pDlgSrchFltr;
FILTER_TYPE m_FltrType;
};
#endif _LINES_H