blueZync

Synchronize Bluetooth phone with Thunderbird

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

mozilla-connect-test.cpp File Reference


Detailed Description

Try to connect to mozilla using OpenSync mozilla-sync xml configuration.

Opens a mozilla-sync xml configuration file (name given on command line), and try to connect to mozilla, and:

#include <stdio.h>
#include <stdarg.h>
#include <glib.h>
#include "xml-config.h"
#include "mozilla-xpcom.h"
#include "thunderbird-addressbook.h"
#include "mozilla-calendar.h"

Include dependency graph for mozilla-connect-test.cpp:


Defines

#define LOGLEVEL   100

Functions

void logFunction (int level, const char *szFormat,...)
int main (int argc, char *argv[])
void usage (char *szName)

Define Documentation

#define LOGLEVEL   100

Referenced by logFunction().


Function Documentation

void logFunction ( int  level,
const char *  szFormat,
  ... 
)

Function to log output from child functions we call

Parameters:
level log level
szFormat format specifier and arguments for vprintf

References LOGLEVEL.

Referenced by main(), mozilla_sync_commit_addressbook_change(), mozilla_sync_commit_calendar_change(), mozilla_sync_connect(), mozilla_sync_disconnect(), mozilla_sync_initialize(), mozilla_sync_report_addressbook_changes_to_hash(), and mozilla_sync_report_calendar_changes_to_hash().

int main ( int  argc,
char *  argv[] 
)

void usage ( char *  szName  ) 

Show how the program is used

Referenced by main().