src/ICalConverter.cpp File Reference

#include <string>
#include "ICalConverter.h"
#include "Common.h"
#include "CAlarm.h"
#include "CalendarErrors.h"
#include "VCalConverter.h"
#include <libical/icalderivedparameter.h>
#include "CUtility.h"
#include <sstream>
#include "CRecurrenceRule.h"

Data Structures

struct  zoneInfor

Functions

bool ical_value_is_valid (icalproperty *pProp)
string getLocation (int offsetstd, bool dstflag, time_t searchDate, time_t dstoffset)
void addEncodingQuotedPrintable (icalproperty *pProp)
static bool stringReplaceAll (string &toChange, const char *changeThis, const char *toThis)
string floatToString (float value)
static bool stringIsRRule (const string &toCheck)
static void stringAddEncodingQuotedPrintable (string &theString)

Variables

struct zoneInfor * info
static const int TZDATE_SIZE = 16
static const int TDATE_SIZE = 15
static const int ALARM_RECORD_ST = 20
static const int MAX_SUPPORTED_YEAR = 2037
string vCalTimeZone

Detailed Description

This file is part of Maemo Calendar . It is the source file for ICalConverter class. This file is used to declare the functions which convert ical to local and local to ical format.

Copyright (C) 2008 Nokia Corporation. All rights reserved.

Contact: Biris Ilias <ilias.biris@nokia.com>

This software, including documentation, is protected by copyright controlled by Nokia Corporation. All rights are reserved. Copying, including reproducing, storing, adapting or translating, any or all of this material requires the prior written consent of Nokia Corporation. This material also contains confidential information which may not be disclosed to others without the prior written consent of Nokia.


Function Documentation

string floatToString ( float  value  ) 

floatToString()

Parameters:
 float value
Returns:
: string
This function converts given float value to string

string getLocation ( int  offsetstd,
bool  dstflag,
time_t  searchDate,
time_t  dstoffset 
)

select Location,RRuleDst,DtStartDst from timezone where (dstflag=d AND TzOffset=d);

References ASSERTION, CCalendarDB::getRecords(), CMulticalendar::getRecurrentTimes(), CCalendarDB::Instance(), CMulticalendar::MCInstance(), and CCalendarDB::sqliteErrorMapper().

Referenced by ICalConverter::findLocationFromOffset().


Variable Documentation

const int TZDATE_SIZE = 16 [static]

static variables used in this file

string vCalTimeZone

While importing we need to pick timezone information from different places for ics and vcs files For ICS format TZID will be specified in DTSTART For VCS format TZID will be specified in CALENDAR component

Referenced by ICalConverter::fillvCalTimeZone(), ICalConverter::findEffectiveDSToffset(), ICalConverter::findLocationFromOffset(), ICalConverter::icalVcalToLocal(), ICalConverter::importEventDateEnd(), and ICalConverter::importEventDateStartAndDateEnd().


Generated on Wed Jul 8 14:17:12 2009 for calendar-backend by  doxygen 1.5.6