Leaked source code of windows server 2003
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.

55 lines
1.4 KiB

  1. // Message.h: interface for the CArchiveMsg class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_MESSAGE_H__C1376D20_394B_4B2F_BF50_0585A2A85AE2__INCLUDED_)
  5. #define AFX_MESSAGE_H__C1376D20_394B_4B2F_BF50_0585A2A85AE2__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #ifndef NUMERIC_CMP
  10. #define NUMERIC_CMP(a,b) (((a) == (b)) ? 0 : (((a) < (b)) ? -1 : 1))
  11. #endif
  12. class CArchiveMsg : public CFaxMsg
  13. {
  14. public:
  15. DECLARE_DYNCREATE(CArchiveMsg)
  16. CArchiveMsg () {}
  17. virtual ~CArchiveMsg() {}
  18. DWORD Init (PFAX_MESSAGE pMsg, CServerNode* pServer);
  19. DWORD Copy(const CArchiveMsg& other);
  20. //
  21. // Operations:
  22. //
  23. DWORD GetTiff (CString &cstrTiffLocation) const;
  24. DWORD Delete ();
  25. //
  26. // Item retrival:
  27. //
  28. const CString &GetSenderName () const
  29. { ASSERT (m_bValid); return m_cstrSenderName; }
  30. const CString &GetSenderNumber () const
  31. { ASSERT (m_bValid); return m_cstrSenderNumber; }
  32. const CFaxDuration &GetTransmissionDuration () const
  33. { ASSERT (m_bValid); return m_tmTransmissionDuration; }
  34. private:
  35. CString m_cstrSenderNumber;
  36. CString m_cstrSenderName;
  37. CFaxDuration m_tmTransmissionDuration;
  38. };
  39. #endif // !defined(AFX_MESSAGE_H__C1376D20_394B_4B2F_BF50_0585A2A85AE2__INCLUDED_)