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:
- open the thunderbird address book
#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"
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[] | |||
) |
Try to connect to mozilla using OpenSync mozilla-sync xml configuration file
- Parameters:
-
argc number of arguments argv array of arguments
References MozillaCalendar::Close(), ThunderbirdAddressbook::Close(), MozillaCalendar::Init(), ThunderbirdAddressbook::Init(), logFunction(), MozillaCalendar::LogInfo(), ThunderbirdAddressbook::LogInfo(), mozilla_config_check(), mozilla_log_info(), mozilla_shutdown(), mozilla_startup(), _MozillaConfig::szAddressbookFile, _MozillaConfig::szCalendarId, _MozillaConfig::szProfileDirectory, and usage().
void usage | ( | char * | szName | ) |
Show how the program is used
Referenced by main().