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.

78 lines
2.9 KiB

  1. // --------------------------------------------------------------------------------
  2. // Pop3call.h
  3. // --------------------------------------------------------------------------------
  4. #ifndef __POP3CALL_H
  5. #define __POP3CALL_H
  6. #include "imnxport.h"
  7. HRESULT HrCreatePOP3Transport(IPOP3Transport **ppPOP3);
  8. // --------------------------------------------------------------------------------
  9. // CPOP3Callback Implementation
  10. // --------------------------------------------------------------------------------
  11. class CPOP3Callback : public IPOP3Callback
  12. {
  13. private:
  14. ULONG m_cRef;
  15. public:
  16. // ----------------------------------------------------------------------------
  17. // Construction
  18. // ----------------------------------------------------------------------------
  19. CPOP3Callback(void);
  20. ~CPOP3Callback(void);
  21. // ----------------------------------------------------------------------------
  22. // IUnknown methods
  23. // ----------------------------------------------------------------------------
  24. STDMETHODIMP QueryInterface(REFIID, LPVOID *);
  25. STDMETHODIMP_(ULONG) AddRef(void);
  26. STDMETHODIMP_(ULONG) Release(void);
  27. // ----------------------------------------------------------------------------
  28. // ITransportCallback methods
  29. // ----------------------------------------------------------------------------
  30. STDMETHODIMP OnLogonPrompt(
  31. LPINETSERVER pInetServer,
  32. IInternetTransport *pTransport);
  33. STDMETHODIMP_(INT) OnPrompt(
  34. HRESULT hrError,
  35. LPCTSTR pszText,
  36. LPCTSTR pszCaption,
  37. UINT uType,
  38. IInternetTransport *pTransport);
  39. STDMETHODIMP OnStatus(
  40. IXPSTATUS ixpstatus,
  41. IInternetTransport *pTransport);
  42. STDMETHODIMP OnError(
  43. IXPSTATUS ixpstatus,
  44. LPIXPRESULT pIxpResult,
  45. IInternetTransport *pTransport);
  46. STDMETHODIMP OnProgress(
  47. DWORD dwIncrement,
  48. DWORD dwCurrent,
  49. DWORD dwMaximum,
  50. IInternetTransport *pTransport);
  51. STDMETHODIMP OnCommand(
  52. CMDTYPE cmdtype,
  53. LPSTR pszLine,
  54. HRESULT hrResponse,
  55. IInternetTransport *pTransport);
  56. STDMETHODIMP OnTimeout(
  57. DWORD *pdwTimeout,
  58. IInternetTransport *pTransport);
  59. // ----------------------------------------------------------------------------
  60. // IPOP3Callback methods
  61. // ----------------------------------------------------------------------------
  62. STDMETHODIMP OnResponse(
  63. LPPOP3RESPONSE pResponse);
  64. };
  65. #endif // __POP3CALL_H