icalgauge.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*======================================================================
  2. FILE: icalgauge.h
  3. CREATOR: eric 23 December 1999
  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. The Original Code is eric. The Initial Developer of the Original
  14. Code is Eric Busboom
  15. ======================================================================*/
  16. #ifndef ICALGAUGE_H
  17. #define ICALGAUGE_H
  18. #include "libical_icalss_export.h"
  19. #include "icalcomponent.h"
  20. /** @file icalgauge.h
  21. * @brief Routines implementing a filter for ical components
  22. */
  23. typedef struct icalgauge_impl icalgauge;
  24. LIBICAL_ICALSS_EXPORT icalgauge *icalgauge_new_from_sql(char *sql, int expand);
  25. LIBICAL_ICALSS_EXPORT int icalgauge_get_expand(icalgauge *gauge);
  26. LIBICAL_ICALSS_EXPORT void icalgauge_free(icalgauge *gauge);
  27. LIBICAL_ICALSS_EXPORT char *icalgauge_as_sql(icalcomponent *gauge);
  28. LIBICAL_ICALSS_EXPORT void icalgauge_dump(icalgauge *gauge);
  29. /** @brief Return true if comp matches the gauge.
  30. *
  31. * The component must be in
  32. * cannonical form -- a VCALENDAR with one VEVENT, VTODO or VJOURNAL
  33. * sub component
  34. */
  35. LIBICAL_ICALSS_EXPORT int icalgauge_compare(icalgauge *g, icalcomponent *comp);
  36. /** Clone the component, but only return the properties
  37. * specified in the gauge */
  38. LIBICAL_ICALSS_EXPORT icalcomponent *icalgauge_new_clone(icalgauge *g, icalcomponent *comp);
  39. #endif /* ICALGAUGE_H */