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.
117 lines
3.7 KiB
117 lines
3.7 KiB
/**********************************************************************/
|
|
/** Microsoft Windows/NT **/
|
|
/** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
|
|
/**********************************************************************/
|
|
|
|
/*
|
|
FltrNode.h
|
|
|
|
FILE HISTORY:
|
|
|
|
*/
|
|
|
|
#ifndef _LOGDATA_NODE_H
|
|
#define _LOGDATA_NODE_H
|
|
|
|
#ifndef _IPSMHAND_H
|
|
#include "ipsmhand.h"
|
|
#endif
|
|
|
|
#ifndef _SPDDB_H
|
|
#include "spddb.h"
|
|
#endif
|
|
|
|
/*
|
|
This value indicates the size in bytes of each summary at the maximum. It
|
|
must mirror the value in layer2svc\monitor\inc\database.h
|
|
*/
|
|
#define MAX_SUMMARY_MESSAGE_SIZE 80
|
|
|
|
/*---------------------------------------------------------------------------
|
|
Class: CFilterHandler
|
|
---------------------------------------------------------------------------*/
|
|
class CLogDataHandler : public CIpsmHandler
|
|
{
|
|
public:
|
|
CLogDataHandler(ITFSComponentData* pTFSComponentData);
|
|
virtual ~CLogDataHandler();
|
|
|
|
// 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_BaseResultHandlerNotify_OnResultColumnClick();
|
|
|
|
OVERRIDE_ResultHandler_OnGetResultViewType();
|
|
OVERRIDE_ResultHandler_GetVirtualString();
|
|
OVERRIDE_ResultHandler_GetVirtualImage();
|
|
OVERRIDE_ResultHandler_AddMenuItems();
|
|
OVERRIDE_ResultHandler_Command();
|
|
OVERRIDE_ResultHandler_HasPropertyPages();
|
|
OVERRIDE_ResultHandler_CreatePropertyPages();
|
|
OVERRIDE_ResultHandler_SortItems();
|
|
|
|
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_IpfmLogDataNodeType;
|
|
}
|
|
|
|
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);
|
|
|
|
// Implementation
|
|
private:
|
|
// Command handlers
|
|
HRESULT OnDelete(ITFSNode * pNode);
|
|
//HRESULT UpdateViewType(ITFSNode * pNode, FILTER_TYPE NewFltrType);
|
|
|
|
HRESULT GetSelectedItem(int *pnIndex, CLogDataInfo *pLogData,
|
|
IResultData *pResultData);
|
|
HRESULT GetSelectedItemState(UINT *puiState, IResultData *pResultData);
|
|
HRESULT MaintainSelection();
|
|
|
|
private:
|
|
SPISpdInfo m_spSpdInfo;
|
|
int m_nSelIndex; //Virtual index of selected item
|
|
CLogDataInfo m_SelLogData; //The selected item
|
|
ITFSComponent *m_pComponent;
|
|
};
|
|
|
|
|
|
#endif _LOGDATA_NODE_H
|