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.
104 lines
3.4 KiB
104 lines
3.4 KiB
/////////////////////////////////////////////////////////////////////////////
|
|
// FILE : OutboundGroups.h //
|
|
// //
|
|
// DESCRIPTION : Header file for CFaxOutboundGroupsNode class //
|
|
// //
|
|
// AUTHOR : yossg //
|
|
// //
|
|
// HISTORY : //
|
|
// Sep 29 1999 yossg create //
|
|
// Jan 3 2000 yossg add new group //
|
|
// //
|
|
// Copyright (C) 1999 Microsoft Corporation All Rights Reserved //
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef H_FAXOUTBOUNDGROUPSNODE_H
|
|
#define H_FAXOUTBOUNDGROUPSNODE_H
|
|
|
|
#include "OutboundRouting.h"
|
|
|
|
#include "snapin.h"
|
|
#include "snpnscp.h" //#include "snpnode.h"
|
|
|
|
class CFaxOutboundRoutingNode;
|
|
class CFaxOutboundRoutingGroupNode;
|
|
|
|
class CFaxOutboundGroupsNode : public CNodeWithScopeChildrenList<CFaxOutboundGroupsNode, FALSE>
|
|
{
|
|
public:
|
|
BEGIN_SNAPINCOMMAND_MAP(CFaxOutboundGroupsNode, FALSE)
|
|
SNAPINCOMMAND_ENTRY(IDM_NEW_GROUP, OnNewGroup)
|
|
END_SNAPINCOMMAND_MAP()
|
|
|
|
BEGIN_SNAPINTOOLBARID_MAP(CFaxOutboundGroupsNode)
|
|
END_SNAPINTOOLBARID_MAP()
|
|
|
|
SNAPINMENUID(IDR_OUTGROUPS_MENU)
|
|
|
|
CFaxOutboundGroupsNode(CSnapInItem * pParentNode, CSnapin * pComponentData) :
|
|
CNodeWithScopeChildrenList<CFaxOutboundGroupsNode, FALSE>(pParentNode, pComponentData )
|
|
{
|
|
m_dwNumOfGroups = FXS_ITEMS_NEVER_COUNTED;
|
|
}
|
|
|
|
~CFaxOutboundGroupsNode()
|
|
{
|
|
}
|
|
|
|
HRESULT InitRPC(PFAX_OUTBOUND_ROUTING_GROUP * pFaxGroupsConfig);
|
|
|
|
virtual HRESULT PopulateScopeChildrenList();
|
|
|
|
HRESULT RepopulateScopeChildrenList();
|
|
|
|
virtual HRESULT InsertColumns(IHeaderCtrl* pHeaderCtrl);
|
|
|
|
virtual HRESULT SetVerbs(IConsoleVerb *pConsoleVerb);
|
|
|
|
STDMETHOD(QueryPagesFor)(DATA_OBJECT_TYPES type)
|
|
{
|
|
if (type == CCT_SCOPE || type == CCT_RESULT)
|
|
return S_OK;
|
|
return S_FALSE;
|
|
}
|
|
|
|
// virtual
|
|
HRESULT OnRefresh(LPARAM arg,
|
|
LPARAM param,
|
|
IComponentData *pComponentData,
|
|
IComponent * pComponent,
|
|
DATA_OBJECT_TYPES type);
|
|
|
|
HRESULT DoRefresh(CSnapInObjectRootBase *pRoot);
|
|
|
|
HRESULT DoRefresh();
|
|
|
|
void InitParentNode(CFaxOutboundRoutingNode *pParentNode)
|
|
{
|
|
m_pParentNode = pParentNode;
|
|
}
|
|
|
|
HRESULT InitDisplayName();
|
|
|
|
HRESULT DeleteGroup(BSTR bstrName, CFaxOutboundRoutingGroupNode *pChildNode);
|
|
|
|
HRESULT OnNewGroup (bool &bHandled, CSnapInObjectRootBase *pRoot);
|
|
|
|
HRESULT OnShowContextHelp(
|
|
IDisplayHelp* pDisplayHelp, LPOLESTR helpFile);
|
|
|
|
private:
|
|
|
|
static CColumnsInfo m_ColsInfo;
|
|
|
|
CFaxOutboundRoutingNode * m_pParentNode;
|
|
|
|
DWORD m_dwNumOfGroups;
|
|
|
|
};
|
|
|
|
typedef CNodeWithScopeChildrenList<CFaxOutboundGroupsNode, FALSE>
|
|
CBaseFaxOutboundGroupsNode;
|
|
|
|
|
|
#endif //H_FAXOUTBOUNDGROUPSNODE_H
|