Source code of Windows XP (NT5)
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.

107 lines
2.1 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. nodes.h
  7. result pane node definitions
  8. FILE HISTORY:
  9. */
  10. #ifndef _NODES_H
  11. #define _NODES_H
  12. #ifndef _WINSHAND_H
  13. #include "winshand.h"
  14. #endif
  15. #ifndef _SERVER_H
  16. #include "server.h"
  17. #endif
  18. class CReplicationPartner : public CWinsHandler
  19. {
  20. public:
  21. CReplicationPartner(ITFSComponentData * pTFSCompData, CWinsServerObj *pobj);
  22. ~CReplicationPartner(){ };
  23. // Interface
  24. public:
  25. // Result handler functionality
  26. OVERRIDE_ResultHandler_HasPropertyPages() { return hrOK; }
  27. OVERRIDE_ResultHandler_CreatePropertyPages();
  28. OVERRIDE_ResultHandler_AddMenuItems();
  29. OVERRIDE_ResultHandler_Command();
  30. OVERRIDE_ResultHandler_GetString();
  31. // base result handler overrides
  32. OVERRIDE_BaseResultHandlerNotify_OnResultPropertyChange();
  33. // Implementation
  34. public:
  35. // CWinsHandler overrides
  36. virtual HRESULT InitializeNode(ITFSNode * pNode);
  37. // Get/Set Functions
  38. const CString &GetServerName()
  39. {
  40. return m_strServerName;
  41. }
  42. void SetRecordName(CString& strName)
  43. {
  44. m_strServerName = strName;
  45. }
  46. const CString &GetType()
  47. {
  48. return m_strType;
  49. }
  50. void SetType(CString &strType)
  51. {
  52. m_strType = strType;
  53. }
  54. const CString &GetIPAddress()
  55. {
  56. return m_strIPAddress;
  57. }
  58. void SetIPAddress(CString& strName)
  59. {
  60. m_strIPAddress = strName;
  61. }
  62. const CString &GetReplicationTime()
  63. {
  64. return m_strReplicationTime;
  65. }
  66. void SetReplicationTime(CString& strName)
  67. {
  68. m_strReplicationTime = strName;
  69. }
  70. CWinsServerObj m_Server;
  71. private:
  72. CString m_strServerName;
  73. CString m_strType;
  74. CString m_strIPAddress;
  75. CString m_strReplicationTime;
  76. // info from the Wins Record Object
  77. DWORD m_dwIPAddress;
  78. DWORD m_dwReplicationTime;
  79. // functions
  80. CString ToIPAddressString();
  81. HRESULT OnSendPushTrigger(CWinsServerHandler *pServer);
  82. HRESULT OnSendPullTrigger(CWinsServerHandler *pServer);
  83. };
  84. #endif