Back to index

lightning-sunbird  0.9+nobinonly
icalspanlist_cxx.h
Go to the documentation of this file.
00001 /* -*- Mode: C++ -*- */
00002 
00015 #ifndef ICALSPANLIST_CXX_H
00016 #define ICALSPANLIST_CXX_H
00017 
00018 #include "ical.h"
00019 #include "icalss.h"
00020 #include "vcomponent.h"
00021 #include <vector>           /* For as_matrix.. */
00022 
00023 class ICalSpanList {
00024  public:
00026   ICalSpanList(icalset *set, icaltimetype start, icaltimetype end) throw(icalerrorenum);
00027 
00029   ICalSpanList(icalcomponent *comp) throw(icalerrorenum);
00030 
00032   ICalSpanList(VComponent &comp) throw(icalerrorenum);
00033 
00035   ~ICalSpanList();
00036 
00038   VComponent* get_vfreebusy(const char *organizer, const char *attendee) throw(icalerrorenum);
00039 
00041   operator icalspanlist*()    {return data;}
00042 
00044   std::vector<int> as_vector(int delta_t) throw(icalerrorenum);
00045 
00047   void dump()                 {icalspanlist_dump(data);}
00048 
00049  private:
00050   icalspanlist *data;
00051 };
00052 
00053 #endif