icalgaugeimpl.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*======================================================================
  2. FILE: icalgaugeimpl.h
  3. CREATOR: eric 09 Aug 2000
  4. (C) COPYRIGHT 2000, Eric Busboom <eric@softwarestudio.org>
  5. http://www.softwarestudio.org
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of either:
  8. The LGPL as published by the Free Software Foundation, version
  9. 2.1, available at: http://www.gnu.org/licenses/lgpl-2.1.html
  10. Or:
  11. The Mozilla Public License Version 1.0. You may obtain a copy of
  12. the License at http://www.mozilla.org/MPL/
  13. ======================================================================*/
  14. #ifndef ICALGAUGEIMPL_H
  15. #define ICALGAUGEIMPL_H
  16. #include "icalcomponent.h"
  17. typedef enum icalgaugecompare
  18. {
  19. ICALGAUGECOMPARE_EQUAL = ICAL_XLICCOMPARETYPE_EQUAL,
  20. ICALGAUGECOMPARE_LESS = ICAL_XLICCOMPARETYPE_LESS,
  21. ICALGAUGECOMPARE_LESSEQUAL = ICAL_XLICCOMPARETYPE_LESSEQUAL,
  22. ICALGAUGECOMPARE_GREATER = ICAL_XLICCOMPARETYPE_GREATER,
  23. ICALGAUGECOMPARE_GREATEREQUAL = ICAL_XLICCOMPARETYPE_GREATEREQUAL,
  24. ICALGAUGECOMPARE_NOTEQUAL = ICAL_XLICCOMPARETYPE_NOTEQUAL,
  25. ICALGAUGECOMPARE_REGEX = ICAL_XLICCOMPARETYPE_REGEX,
  26. ICALGAUGECOMPARE_ISNULL = ICAL_XLICCOMPARETYPE_ISNULL,
  27. ICALGAUGECOMPARE_ISNOTNULL = ICAL_XLICCOMPARETYPE_ISNOTNULL,
  28. ICALGAUGECOMPARE_NONE = 0
  29. } icalgaugecompare;
  30. typedef enum icalgaugelogic
  31. {
  32. ICALGAUGELOGIC_NONE,
  33. ICALGAUGELOGIC_AND,
  34. ICALGAUGELOGIC_OR
  35. } icalgaugelogic;
  36. struct icalgauge_where
  37. {
  38. icalgaugelogic logic;
  39. icalcomponent_kind comp;
  40. icalproperty_kind prop;
  41. icalgaugecompare compare;
  42. char *value;
  43. };
  44. struct icalgauge_impl
  45. {
  46. pvl_list select; /**< Of icalgaugecompare, using only prop and comp fields*/
  47. pvl_list from; /**< List of component_kinds, as integers */
  48. pvl_list where; /**< List of icalgaugecompare */
  49. int expand;
  50. };
  51. #endif