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.

72 lines
1.4 KiB

  1. /*++
  2. 1998 Seagate Software, Inc. All rights reserved.
  3. Module Name:
  4. SchdTask.h
  5. Abstract:
  6. CSchdTask - Class that allows access to a scheduled task.
  7. Author:
  8. Art Bragg 9/4/97
  9. Revision History:
  10. --*/
  11. #ifndef _SCHDTASK_H
  12. #define _SCHDTASK_H
  13. #include "mstask.h"
  14. class CSchdTask
  15. {
  16. // Construction/Destruction
  17. public:
  18. CSchdTask
  19. (
  20. CString szComputerName,
  21. const TCHAR* task,
  22. int propPageTitleID,
  23. const TCHAR* parameters,
  24. const TCHAR* comment,
  25. CEdit* pEdit
  26. );
  27. ~CSchdTask ();
  28. // Public Functions
  29. HRESULT CheckTaskExists (
  30. BOOL bCreateTask
  31. );
  32. HRESULT CreateTask();
  33. HRESULT DeleteTask();
  34. HRESULT ShowPropertySheet();
  35. HRESULT UpdateDescription();
  36. HRESULT Save();
  37. // Properties
  38. private:
  39. CString m_szParameters;
  40. CString m_szComment;
  41. CString m_szComputerName; // Name of HSM computer
  42. CComPtr <ITask> m_pTask; // Pointer to ITask - NULL task doesn't exist
  43. CEdit *m_pEdit; // Pointer to Edit Control
  44. CString m_szJobTitle; // Job Title
  45. CComPtr <ISchedulingAgent> m_pSchedAgent; // Pointer to Scheduling Agent
  46. CComPtr<ITaskTrigger> m_pTrigger; // Pointer to task trigger
  47. int m_propPageTitleID;
  48. };
  49. #endif