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.

65 lines
1.4 KiB

  1. //
  2. // MODULE: SNIFFLOCAL.CPP
  3. //
  4. // PURPOSE: sniffing class for local TS
  5. //
  6. // COMPANY: Saltmine Creative, Inc. (206)-284-7511 [email protected]
  7. //
  8. // AUTHOR: Oleg Kalosha
  9. //
  10. // ORIGINAL DATE: 12-11-98
  11. //
  12. // NOTES: This is concrete implementation of CSniff class for Local TS
  13. //
  14. // Version Date By Comments
  15. //--------------------------------------------------------------------
  16. // V3.2 12-11-98 OK
  17. //
  18. #include "stdafx.h"
  19. #include "tshoot.h"
  20. #include "SniffLocal.h"
  21. #include "SniffControllerLocal.h"
  22. //////////////////////////////////////////////////////////////////////
  23. // CSniffLocal implementation
  24. //////////////////////////////////////////////////////////////////////
  25. CSniffLocal::CSniffLocal(CSniffConnector* pSniffConnector, CTopic* pTopic)
  26. : CSniff(),
  27. m_pTopic(pTopic),
  28. m_pSniffConnector(pSniffConnector)
  29. {
  30. m_pSniffControllerLocal = new CSniffControllerLocal(pTopic);
  31. }
  32. CSniffLocal::~CSniffLocal()
  33. {
  34. delete m_pSniffControllerLocal;
  35. }
  36. CSniffController* CSniffLocal::GetSniffController()
  37. {
  38. return m_pSniffControllerLocal;
  39. }
  40. CSniffConnector* CSniffLocal::GetSniffConnector()
  41. {
  42. return m_pSniffConnector;
  43. }
  44. CTopic* CSniffLocal::GetTopic()
  45. {
  46. return m_pTopic;
  47. }
  48. void CSniffLocal::SetSniffConnector(CSniffConnector* pSniffConnector)
  49. {
  50. m_pSniffConnector = pSniffConnector;
  51. }
  52. void CSniffLocal::SetTopic(CTopic* pTopic)
  53. {
  54. m_pTopic = pTopic;
  55. m_pSniffControllerLocal->SetTopic(pTopic);
  56. }