Logo Search packages:      
Sourcecode: libical version File versions


/* -*- Mode: C -*- */
 FILE: icalbdbset_cxx.h
 CREATOR: dml 12/12/01
 (C) COPYRIGHT 2001, Critical Path


extern "C" {
#include <libical/ical.h>
#include <libicalss/icalgauge.h>

#include "vcomponent.h"
#include <db_cxx.h>

typedef     char* string; // Will use the string library from STL

class ICalBDBSet {

  ICalBDBSet(const ICalBDBSet&);
  ICalBDBSet operator=(const ICalBDBSet &);

  ICalBDBSet(const string& path, int flags);


  void free();
  string path();

  icalerrorenum add_component(VComponent* child);
  icalerrorenum remove_component(VComponent* child);
  int count_components(icalcomponent_kind kind);

  // Restrict the component returned by icalbdbset_first, _next to those
  // that pass the gauge. _clear removes the gauge 
  icalerrorenum select(icalgauge *gauge);
  void clear();

  // Get and search for a component by uid 
  VComponent* fetch(string &uid);
  VComponent* fetch_match(icalcomponent *c);
  int has_uid(string &uid);

  // Iterate through components. If a guage has been defined, these
  // will skip over components that do not pass the gauge 
  VComponent* get_current_component();
  VComponent* get_first_component();
  VComponent* get_next_component();

  VComponent* get_component();



Generated by  Doxygen 1.6.0   Back to index