OpenAB  1.0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
DAVHelper Class Reference

Helper class handling DAV responses parsing. More...

#include <DAVHelper.hpp>

Collaboration diagram for DAVHelper:

Classes

struct  DAVPropStat
 DAV PropStat. More...
 
struct  DAVResponse
 DAV Response. More...
 

Public Types

typedef unsigned int DAVStatusCode
 DAV response status code - uses the same values as HTTP response codes. More...
 

Public Member Functions

 DAVHelper ()
 Constructor. More...
 
virtual ~DAVHelper ()
 Destructor, virtual by default. More...
 
bool parseDAVMultistatus (const std::string &xml, std::vector< DAVResponse > &responses)
 Parses multistatus DAV response. More...
 
bool parseDAVMultistatus (const std::string &xml, std::vector< DAVResponse > &responses, std::string &syncToken)
 

Static Public Attributes

static const std::string PROPERTY_ETAG = "getetag"
 
static const std::string PROPERTY_CTAG = "getctag"
 
static const std::string PROPERTY_SYNC_TOKEN = "sync-token"
 
static const std::string PROPERTY_RESOURCE_TYPE = "resourcetype"
 
static const std::string PROPERTY_RESOURCE_TYPE_ADDRESSBOOK = "resourcetype:addressbook"
 
static const std::string PROPERTY_RESOURCE_TYPE_CALENDAR = "resourcetype:calendar"
 
static const std::string PROPERTY_ADDRESSBOOK_HOME_SET_HREF = "addressbook-home-set:href"
 
static const std::string PROPERTY_CALENDAR_HOME_SET_HREF = "calendar-home-set:href"
 
static const std::string PROPERTY_CURRENT_USER_PRINCIPAL_HREF = "current-user-principal:href"
 
static const std::string PROPERTY_ADDRESS_DATA = "address-data"
 
static const std::string PROPERTY_CALENDAR_DATA = "calendar-data"
 
static const std::string PROPERTY_DISPLAY_NAME = "displayname"
 
static const std::string PROPERTY_SUPPORTED_CALENDAR_COMPONENT_SET_EVENT = "supported-calendar-component-set:comp:VEVENT"
 
static const std::string PROPERTY_SUPPORTED_CALENDAR_COMPONENT_SET_TODO = "supported-calendar-component-set:comp:VTODO"
 
static const std::string PROPERTY_SUPPORTED_CALENDAR_COMPONENT_SET_JOURNAL = "supported-calendar-component-set:comp:VJOURNAL"
 
static const std::string ERROR_UID_CONFLICT = "no-uid-conflict"
 

Detailed Description

Helper class handling DAV responses parsing.

Member Typedef Documentation

typedef unsigned int DAVHelper::DAVStatusCode

DAV response status code - uses the same values as HTTP response codes.

Constructor & Destructor Documentation

DAVHelper::DAVHelper ( )

Constructor.

DAVHelper::~DAVHelper ( )
virtual

Destructor, virtual by default.

Member Function Documentation

bool DAVHelper::parseDAVMultistatus ( const std::string &  xml,
std::vector< DAVResponse > &  responses 
)

Parses multistatus DAV response.

Parameters
[in]xmlDAV response in XML format.
[out]responsesvector where parsed responses will be stored
Returns
true if response was parsed successfully, false otherwise.
bool DAVHelper::parseDAVMultistatus ( const std::string &  xml,
std::vector< DAVResponse > &  responses,
std::string &  syncToken 
)

Member Data Documentation

const std::string DAVHelper::ERROR_UID_CONFLICT = "no-uid-conflict"
static
const std::string DAVHelper::PROPERTY_ADDRESS_DATA = "address-data"
static
const std::string DAVHelper::PROPERTY_ADDRESSBOOK_HOME_SET_HREF = "addressbook-home-set:href"
static
const std::string DAVHelper::PROPERTY_CALENDAR_DATA = "calendar-data"
static
const std::string DAVHelper::PROPERTY_CALENDAR_HOME_SET_HREF = "calendar-home-set:href"
static
const std::string DAVHelper::PROPERTY_CTAG = "getctag"
static
const std::string DAVHelper::PROPERTY_CURRENT_USER_PRINCIPAL_HREF = "current-user-principal:href"
static
const std::string DAVHelper::PROPERTY_DISPLAY_NAME = "displayname"
static
const std::string DAVHelper::PROPERTY_ETAG = "getetag"
static
const std::string DAVHelper::PROPERTY_RESOURCE_TYPE = "resourcetype"
static
const std::string DAVHelper::PROPERTY_RESOURCE_TYPE_ADDRESSBOOK = "resourcetype:addressbook"
static
const std::string DAVHelper::PROPERTY_RESOURCE_TYPE_CALENDAR = "resourcetype:calendar"
static
const std::string DAVHelper::PROPERTY_SUPPORTED_CALENDAR_COMPONENT_SET_EVENT = "supported-calendar-component-set:comp:VEVENT"
static
const std::string DAVHelper::PROPERTY_SUPPORTED_CALENDAR_COMPONENT_SET_JOURNAL = "supported-calendar-component-set:comp:VJOURNAL"
static
const std::string DAVHelper::PROPERTY_SUPPORTED_CALENDAR_COMPONENT_SET_TODO = "supported-calendar-component-set:comp:VTODO"
static
const std::string DAVHelper::PROPERTY_SYNC_TOKEN = "sync-token"
static

The documentation for this class was generated from the following files: