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.

69 lines
2.4 KiB

  1. //***************************************************************************
  2. // IMAP4 Spooler Task Object Header File
  3. // Written by Raymond Cheng, 6/27/97
  4. //***************************************************************************
  5. #ifndef __IMAPTASK_H
  6. #define __IMAPTASK_H
  7. //---------------------------------------------------------------------------
  8. // Includes
  9. //---------------------------------------------------------------------------
  10. #include "spoolapi.h"
  11. #include "imnact.h"
  12. //---------------------------------------------------------------------------
  13. // Forward Declarations
  14. //---------------------------------------------------------------------------
  15. class CIMAPFolderMgr;
  16. //---------------------------------------------------------------------------
  17. // CIMAPTask Class Definition
  18. //---------------------------------------------------------------------------
  19. class CIMAPTask : public ISpoolerTask
  20. {
  21. public:
  22. // Constructor, Destructor
  23. CIMAPTask(void);
  24. ~CIMAPTask(void);
  25. // IUnknown Methods
  26. HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject);
  27. ULONG STDMETHODCALLTYPE AddRef(void);
  28. ULONG STDMETHODCALLTYPE Release(void);
  29. // ISpoolerTask Methods
  30. HRESULT STDMETHODCALLTYPE Init(DWORD dwFlags, ISpoolerBindContext *pBindCtx);
  31. HRESULT STDMETHODCALLTYPE BuildEvents(ISpoolerUI *pSpoolerUI,
  32. IImnAccount *pAccount, LPCTSTR pszFolder);
  33. HRESULT STDMETHODCALLTYPE Execute(EVENTID eid, DWORD dwTwinkie);
  34. HRESULT STDMETHODCALLTYPE ShowProperties(HWND hwndParent, EVENTID eid, DWORD dwTwinkie);
  35. HRESULT STDMETHODCALLTYPE GetExtendedDetails(EVENTID eid, DWORD dwTwinkie,
  36. LPSTR *ppszDetails);
  37. HRESULT STDMETHODCALLTYPE Cancel(void);
  38. HRESULT STDMETHODCALLTYPE IsDialogMessage(LPMSG pMsg);
  39. HRESULT STDMETHODCALLTYPE OnFlagsChanged(DWORD dwFlags);
  40. private:
  41. // Module variables
  42. long m_lRefCount;
  43. ISpoolerBindContext *m_pBindContext;
  44. ISpoolerUI *m_pSpoolerUI;
  45. char m_szAccountName[CCHMAX_ACCOUNT_NAME];
  46. LPCSTR m_pszFolder;
  47. CIMAPFolderMgr *m_pIMAPFolderMgr;
  48. HWND m_hwnd;
  49. EVENTID m_CurrentEID;
  50. BOOL m_fFailuresEncountered;
  51. DWORD m_dwTotalTicks;
  52. DWORD m_dwFlags;
  53. // Functions
  54. static LRESULT CALLBACK IMAPTaskWndProc(HWND hwnd, UINT uMsg,
  55. WPARAM wParam, LPARAM lParam);
  56. }; // class CIMAPTask
  57. #endif // __IMAPTASK_H