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.

62 lines
1.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1994 - 1996.
  5. //
  6. // File: trigprop.hxx
  7. //
  8. // Contents: Class to hold trigger properties.
  9. //
  10. // Classes: CTriggerProp
  11. //
  12. // History: 01-04-96 DavidMun Created
  13. //
  14. //----------------------------------------------------------------------------
  15. #ifndef __TRIGPROP_HXX
  16. #define __TRIGPROP_HXX
  17. //+---------------------------------------------------------------------------
  18. //
  19. // Class: CTrigProp
  20. //
  21. // Purpose: Collect the trigger properties.
  22. //
  23. // History: 01-04-96 DavidMun Created
  24. //
  25. //----------------------------------------------------------------------------
  26. class CTrigProp
  27. {
  28. public:
  29. CTrigProp();
  30. VOID Clear();
  31. VOID Dump();
  32. HRESULT Parse(WCHAR **ppwsz);
  33. HRESULT InitFromActual(ITaskTrigger *pTrigger);
  34. HRESULT SetActual(ITaskTrigger *pTrigger);
  35. TASK_TRIGGER Trigger;
  36. ULONG flSet;
  37. ULONG flSetFlags;
  38. private:
  39. HRESULT _ParseTriggerArguments(
  40. WCHAR **ppwsz,
  41. TASK_TRIGGER_TYPE TriggerType);
  42. VOID _DumpTypeArguments();
  43. };
  44. #define TP_STARTDATE 0x0001
  45. #define TP_ENDDATE 0x0002
  46. #define TP_STARTTIME 0x0004
  47. #define TP_MINUTESDURATION 0x0008
  48. #define TP_MINUTESINTERVAL 0x0010
  49. #define TP_TYPE 0x0020
  50. #define TP_TYPEARGUMENTS 0x0040
  51. #endif // __TRIGPROP_HXX