get-caldav-report.c File Reference

#include "get-caldav-report.h"
#include <glib.h>
#include <curl/curl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Functions

gboolean caldav_getall (caldav_settings *settings, caldav_error *error)
 Function for getting all events from collection.
gboolean caldav_getrange (caldav_settings *settings, caldav_error *error)
 Function for getting all events within a time range from collection.

Variables

static const char * getall_request
 A static literal string containing the calendar query for fetching all events from collection.
static const char * getrange_request_head
 A static literal string containing the first part of the calendar query.
static const char * getrange_request_foot
 A static literal string containing the last part of the calendar query.

Function Documentation

gboolean caldav_getall ( caldav_settings settings,
caldav_error error 
)

Function for getting all events from collection.

Parameters:
settings A pointer to caldav_settings.
See also:
caldav_settings
Parameters:
error A pointer to caldav_error.
See also:
caldav_error
Returns:
TRUE in case of error, FALSE otherwise.

gboolean caldav_getrange ( caldav_settings settings,
caldav_error error 
)

Function for getting all events within a time range from collection.

Parameters:
settings A pointer to caldav_settings.
See also:
caldav_settings
Parameters:
error A pointer to caldav_error.
See also:
caldav_error
Returns:
TRUE in case of error, FALSE otherwise.


Variable Documentation

const char* getall_request [static]

Initial value:

"<?xml version=\"1.0\" encoding=\"utf-8\" ?>"
"<C:calendar-query xmlns:D=\"DAV:\""
"                 xmlns:C=\"urn:ietf:params:xml:ns:caldav\">"
" <D:prop>"
"   <D:getetag/>"
"   <C:calendar-data/>"
" </D:prop>"
" <C:filter>"
"   <C:comp-filter name=\"VCALENDAR\">"
"     <C:comp-filter name=\"VEVENT\"/>"
"   </C:comp-filter>"
" </C:filter>"
"</C:calendar-query>\r\n"
A static literal string containing the calendar query for fetching all events from collection.

const char* getrange_request_foot [static]

Initial value:

"     </C:comp-filter>"
"   </C:comp-filter>"
" </C:filter>"
"</C:calendar-query>\r\n"
A static literal string containing the last part of the calendar query.

const char* getrange_request_head [static]

Initial value:

"<?xml version=\"1.0\" encoding=\"utf-8\" ?>"

"<C:calendar-query xmlns:C=\"urn:ietf:params:xml:ns:caldav\">"
" <D:prop xmlns:D=\"DAV:\">"

"   <C:calendar-data/>"
" </D:prop>"
" <C:filter>"
"   <C:comp-filter name=\"VCALENDAR\">"
"     <C:comp-filter name=\"VEVENT\">"
A static literal string containing the first part of the calendar query.

The actual VEVENT to search for is added at runtime.


Generated on Tue Apr 8 00:29:58 2008 for libcaldav-0.3.0 by  doxygen 1.5.5