blueZync

Synchronize Bluetooth phone with Thunderbird

Develpers' detailed documentation for the mozilla-sync plugin for OpenSync. A part of blueZync.

thunderbird-card.cpp File Reference


Detailed Description

Functions to manipulate thunderbird addressbooks.

Todo:
check which ADDREF's are missing
Todo:
free memory used by strings and other...

#include <glib.h>
#include <libxml/encoding.h>
#include <libxml/xmlwriter.h>
#include <libxml/xpath.h>
#include "mozilla-headers.h"
#include <nsComponentManagerUtils.h>
#include <nsIAbMDBCard.h>
#include "mozilla-sync-utils.h"
#include "thunderbird-card.h"
#include "thunderbird-addressbook.h"

Include dependency graph for thunderbird-card.cpp:


Classes

struct  _XMLAttributeDef
struct  _XMLContactDef
struct  _XMLEntryDef
struct  _XMLGroupDef

Defines

#define ATTRIBUTE_END   ((void*) 0)
 No attribute.
#define ATTRIBUTE_EQUAL   ((void*) 1)
 Attribute value shall match specified value.
#define ATTRIBUTE_NOTEQUAL   ((void*) 2)
 Attribute muat be absent or NOT match specified value.
#define MAX_ATTRIBUTES   5
 Max number of XMLAttributeDef's in a XMLGroupDef.
#define MAX_ENTRIES   10
 Max number of XMLEntryDef's in a XMLGroupDef.
#define MAX_GROUPS   20
 Max number of XMLGroupDef's in a XMLContactDef.
#define MY_ENCODING   NULL

Typedefs

typedef struct _XMLAttributeDef XMLAttributeDef
typedef struct _XMLContactDef XMLContactDef
typedef struct _XMLEntryDef XMLEntryDef
typedef struct _XMLGroupDef XMLGroupDef

Functions

void GHFuncAddCap (gpointer key, gpointer value, gpointer user_data)

Variables

static XMLContactDef xmlContactDef

Define Documentation

#define ATTRIBUTE_END   ((void*) 0)

No attribute.

#define ATTRIBUTE_EQUAL   ((void*) 1)

Attribute value shall match specified value.

Referenced by ThunderbirdCard::UpdateFromXML().

#define ATTRIBUTE_NOTEQUAL   ((void*) 2)

Attribute muat be absent or NOT match specified value.

Referenced by ThunderbirdCard::UpdateFromXML().

#define MAX_ATTRIBUTES   5

Max number of XMLAttributeDef's in a XMLGroupDef.

#define MAX_ENTRIES   10

Max number of XMLEntryDef's in a XMLGroupDef.

#define MAX_GROUPS   20

Max number of XMLGroupDef's in a XMLContactDef.

#define MY_ENCODING   NULL

Referenced by ThunderbirdCard::GetXML().


Typedef Documentation

typedef struct _XMLContactDef XMLContactDef

typedef struct _XMLEntryDef XMLEntryDef

typedef struct _XMLGroupDef XMLGroupDef


Function Documentation

void GHFuncAddCap ( gpointer  key,
gpointer  value,
gpointer  user_data 
)

Todo:
Some fields still do not match up to file-sync
Todo:
Add missing Thunderbird fields: WebPage1 (work web page) aimScreenName ---------- anniversaryDay anniversaryMonth anniversaryYear birthDay birthMonth birthYear cardType category cellularNumberType defaultAddress defaultEmail faxNumberType homePhoneType pagerNumberType phoneticFirstName phoneticLastName popularityIndex spouseName workPhoneType readonly PRBool isAnEmailAddress readonly PRBool isANormalCard readonly PRBool isASpecialGroup PRBool isMailList PRUint32 lastModifiedDate char* mailListURI
Todo:
Should we use UI-Slot on e.g. email ???

Referenced by ThunderbirdCard::PGListCapabilities().


Variable Documentation

Definition of how to match a Thunderbird abCard with an xmlformat-card Elements and sub-elements must be in the sequence defined by http://opensync.org/browser/trunk/misc/schemas/xmlformat-contact.xsd