UpdateTime.h 640 B

1234567891011121314151617181920212223242526272829
  1. #ifndef NULLSOFT_UPDATETIMEH
  2. #define NULLSOFT_UPDATETIMEH
  3. #include <time.h>
  4. /* This header file is used by FeedsDialog.h
  5. It provides a set of helper functions to deal with the combo box for update time
  6. basically - converts between combo box choice and __time64_t
  7. */
  8. namespace Update
  9. {
  10. enum
  11. {
  12. TIME_MANUALLY = 0,
  13. TIME_WEEKLY,
  14. TIME_DAILY,
  15. TIME_HOURLY,
  16. TIME_NUMENTRIES
  17. };
  18. extern __time64_t times[];
  19. const wchar_t *GetTitle(int position, wchar_t *buffer, int bufferMax);
  20. bool GetAutoUpdate(int selection);
  21. __time64_t GetTime(int selection);
  22. int GetSelection(__time64_t selTime, bool autoUpdate);
  23. }
  24. #endif