#include <stdlib.h>#include <qtopia/config.h>#include "vobject_p.h"#include "qfiledirect_p.h"#include <string.h>#include <stdio.h>#include <fcntl.h>Include dependency graph for vobject.cpp:

Go to the source code of this file.
Defines | |
| #define | NAME_OF(o) o->id |
| #define | VALUE_TYPE(o) o->valType |
| #define | STRINGZ_VALUE_OF(o) o->val.strs |
| #define | INTEGER_VALUE_OF(o) o->val.i |
| #define | LONG_VALUE_OF(o) o->val.l |
| #define | ANY_VALUE_OF(o) o->val.any |
| #define | VOBJECT_VALUE_OF(o) o->val.vobj |
| #define | STRTBLSIZE 255 |
| #define | PD_BEGIN 0x1 |
| #define | PD_INTERNAL 0x2 |
| #define | OFILE_REALLOC_SIZE 256 |
| #define | MAXQUADS 16 |
Typedefs | |
| typedef ValueItem | ValueItem |
| typedef StrItem | StrItem |
| typedef OFile | OFile |
Enumerations | |
| enum | { EightBit, QuotedPrintable, Base64 } |
Functions | |
| DLLEXPORT (const char **) fieldedProp | |
| DLLEXPORT (VObject *) newVObject_(const char *id) | |
| DLLEXPORT (void) deleteVObject(VObject *p) | |
| DLLEXPORT (char *) dupStr(const char *s | |
| static unsigned int | hashStr (const char *s) |
| DLLEXPORT (const char *) lookupStr(const char *s) | |
| static struct PreDefProp * | lookupPropInfo (const char *str) |
| static void | appendcOFile_ (OFile *fp, char c) |
| static void | appendcOFile (OFile *fp, char c) |
| static void | appendsOFile (OFile *fp, const char *s) |
| static void | appendsOFileEncCs (OFile *fp) |
| static void | initOFile (OFile *fp, FILE *ofp) |
| static int | writeBase64 (OFile *fp, unsigned char *s, long len) |
| static const char * | qpReplaceChar (unsigned char c) |
| static void | writeEncString (OFile *fp, const char *s, bool nosemi) |
| static bool | includesUnprintable (VObject *o, bool nosemi) |
| static void | writeVObject_ (OFile *fp, VObject *o) |
| static void | writeValue (OFile *fp, VObject *o, unsigned long size, bool nosemi) |
| static void | writeAttrValue (OFile *fp, VObject *o) |
| static void | writeGroup (OFile *fp, VObject *o) |
| static int | inList (const char **list, const char *s) |
| static void | writeProp (OFile *fp, VObject *o) |
| static void | initVObjectEncoding () |
| void | writeVObject (FILE *fp, VObject *o) |
Variables | |
| static char | vobj_cs [10] |
| static enum { ... } | vobj_enc |
| static const char * | vobj_enc_s = 0 |
| static const char * | adrFields [] |
| static const char * | nameFields [] |
| static const char * | orgFields [] |
| static const char * | AAlarmFields [] |
| static const char * | DAlarmFields [] |
| static const char * | MAlarmFields [] |
| static const char * | PAlarmFields [] |
| static struct PreDefProp | propNames [] |
|
|
Definition at line 61 of file vobject.cpp. Referenced by DLLEXPORT(), and writeValue(). |
|
|
Definition at line 59 of file vobject.cpp. Referenced by writeValue(). |
|
|
Definition at line 60 of file vobject.cpp. Referenced by writeProp(), and writeValue(). |
|
|
Referenced by writeBase64(). |
|
|
Definition at line 56 of file vobject.cpp. Referenced by writeAttrValue(), writeGroup(), writeProp(), and writeVObject_(). |
|
|
Definition at line 848 of file vobject.cpp. Referenced by appendcOFile_(). |
|
|
Definition at line 570 of file vobject.cpp. Referenced by writeProp(), and writeVObject_(). |
|
|
Definition at line 571 of file vobject.cpp. Referenced by writeAttrValue(). |
|
|
Definition at line 58 of file vobject.cpp. Referenced by includesUnprintable(), writeGroup(), and writeValue(). |
|
|
Referenced by hashStr(). |
|
|
Definition at line 57 of file vobject.cpp. Referenced by DLLEXPORT(), includesUnprintable(), writeAttrValue(), writeProp(), and writeValue(). |
|
|
Definition at line 62 of file vobject.cpp. Referenced by writeValue(). |
|
|
|
|
|
Definition at line 84 of file vobject.cpp. |
|
|
|
|
|
Definition at line 65 of file vobject.cpp. |
|
||||||||||||
|
Definition at line 937 of file vobject.cpp. References appendcOFile_(). Referenced by appendsOFile(), writeAttrValue(), writeBase64(), writeEncString(), writeProp(), writeValue(), and writeVObject_(). |
|
||||||||||||
|
Definition at line 912 of file vobject.cpp. References OFile::alloc, OFile::fail, OFile::fp, OFile::len, OFile::limit, OFILE_REALLOC_SIZE, and OFile::s. Referenced by appendcOFile(). |
|
||||||||||||
|
Definition at line 948 of file vobject.cpp. References appendcOFile(). Referenced by appendsOFileEncCs(), writeAttrValue(), writeBase64(), writeEncString(), writeGroup(), writeProp(), writeValue(), and writeVObject_(). |
|
|
Definition at line 959 of file vobject.cpp. References appendsOFile(), VCCharSetProp, VCEncodingProp, vobj_cs, and vobj_enc_s. Referenced by writeAttrValue(), and writeProp(). |
|
|
Definition at line 500 of file vobject.cpp. References hashStr(), StrItem::next, qstricmp(), StrItem::refCnt, and StrItem::s. |
|
|
|
|
|
Definition at line 122 of file vobject.cpp. |
|
|
Definition at line 106 of file vobject.cpp. References ANY_VALUE_OF, VObject::id, VObject::next, p, VObject::prop, and VALUE_TYPE. |
|
|
|
|
|
Definition at line 490 of file vobject.cpp. References STRTBLSIZE. Referenced by DLLEXPORT(). |
|
||||||||||||
|
Definition at line 1106 of file vobject.cpp. References FALSE, qpReplaceChar(), STRINGZ_VALUE_OF, TRUE, VALUE_TYPE, and VCVT_STRINGZ. Referenced by writeAttrValue(), and writeProp(). |
|
||||||||||||
|
Definition at line 970 of file vobject.cpp. References OFile::alloc, OFile::fail, OFile::fp, OFile::len, OFile::limit, and OFile::s. Referenced by writeVObject(). |
|
|
Definition at line 1294 of file vobject.cpp. References Base64, EightBit, Config::File, Config::isValid(), QString::latin1(), QuotedPrintable, Config::readEntry(), Config::setGroup(), VCBase64Prop, VCQuotedPrintableProp, vobj_cs, vobj_enc, and vobj_enc_s. Referenced by writeVObject(). |
|
||||||||||||
|
Definition at line 1192 of file vobject.cpp. References qstricmp(). Referenced by writeProp(). |
|
|
Definition at line 801 of file vobject.cpp. References name, and qstricmp(). Referenced by writeAttrValue(), writeProp(), and writeVObject_(). |
|
|
Definition at line 1022 of file vobject.cpp. References rem. Referenced by includesUnprintable(), and writeEncString(). |
|
||||||||||||
|
Definition at line 1159 of file vobject.cpp. References appendcOFile(), appendsOFile(), appendsOFileEncCs(), PreDefProp::flags, includesUnprintable(), lookupPropInfo(), NAME_OF, PD_INTERNAL, TRUE, VALUE_TYPE, and writeValue(). Referenced by writeProp(). |
|
||||||||||||||||
|
Definition at line 980 of file vobject.cpp. References appendcOFile(), appendsOFile(), and MAXQUADS. Referenced by writeEncString(), and writeValue(). |
|
||||||||||||||||
|
Definition at line 1055 of file vobject.cpp. References appendcOFile(), appendsOFile(), Base64, EightBit, qpReplaceChar(), QuotedPrintable, vobj_enc, and writeBase64(). Referenced by writeValue(). |
|
||||||||||||
|
Definition at line 1178 of file vobject.cpp. References appendsOFile(), NAME_OF, STRINGZ_VALUE_OF, and VCGroupingProp. Referenced by writeProp(). |
|
||||||||||||
|
Definition at line 1202 of file vobject.cpp. References appendcOFile(), appendsOFile(), appendsOFileEncCs(), FALSE, PreDefProp::fields, PreDefProp::flags, includesUnprintable(), inList(), LONG_VALUE_OF, lookupPropInfo(), NAME_OF, PD_BEGIN, qstricmp(), TRUE, VALUE_TYPE, VCDataSizeProp, VCGroupingProp, writeAttrValue(), writeGroup(), writeValue(), and writeVObject_(). Referenced by writeVObject_(). |
|
||||||||||||||||||||
|
Definition at line 1127 of file vobject.cpp. References ANY_VALUE_OF, appendcOFile(), appendsOFile(), buf, INTEGER_VALUE_OF, LONG_VALUE_OF, STRINGZ_VALUE_OF, VALUE_TYPE, VCVT_RAW, VCVT_STRINGZ, VCVT_UINT, VCVT_ULONG, VCVT_VOBJECT, VOBJECT_VALUE_OF, writeBase64(), writeEncString(), and writeVObject_(). Referenced by writeAttrValue(), and writeProp(). |
|
||||||||||||
|
Definition at line 1319 of file vobject.cpp. References initOFile(), initVObjectEncoding(), and writeVObject_(). Referenced by OTodoAccessVCal::save(), Opie::OPimTodoAccessVCal::save(), OContactAccessBackend_VCard::save(), Opie::OPimContactAccessBackend_VCard::save(), Task::writeVCalendar(), Event::writeVCalendar(), and Contact::writeVCard(). |
|
||||||||||||
|
Definition at line 1270 of file vobject.cpp. References appendcOFile(), appendsOFile(), begin, PreDefProp::flags, lookupPropInfo(), NAME_OF, PD_BEGIN, and writeProp(). Referenced by writeProp(), writeValue(), and writeVObject(). |
|
|
Initial value: Definition at line 602 of file vobject.cpp. |
|
|
Initial value: {
VCPostalBoxProp,
VCExtAddressProp,
VCStreetAddressProp,
VCCityProp,
VCRegionProp,
VCPostalCodeProp,
VCCountryNameProp,
0
}
Definition at line 573 of file vobject.cpp. |
|
|
Initial value: Definition at line 613 of file vobject.cpp. |
|
|
Initial value: Definition at line 621 of file vobject.cpp. |
|
|
Initial value: {
VCFamilyNameProp,
VCGivenNameProp,
VCAdditionalNamesProp,
VCNamePrefixesProp,
VCNameSuffixesProp,
NULL
}
Definition at line 584 of file vobject.cpp. |
|
|
Initial value: Definition at line 593 of file vobject.cpp. |
|
|
Initial value: Definition at line 630 of file vobject.cpp. |
|
|
Definition at line 638 of file vobject.cpp. |
|
|
Definition at line 64 of file vobject.cpp. Referenced by appendsOFileEncCs(), and initVObjectEncoding(). |
|
|
Referenced by initVObjectEncoding(), and writeEncString(). |
|
|
Definition at line 66 of file vobject.cpp. Referenced by appendsOFileEncCs(), and initVObjectEncoding(). |
1.4.2