blueZync

Synchronize Bluetooth phone with Thunderbird

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

mozilla-config.h File Reference


Detailed Description

Definition of configuration for mozilla-sync, and functions to extract Plugin configuration into it.

#include <glib.h>
#include <opensync/opensync.h>
#include <opensync/opensync-plugin.h>

Include dependency graph for mozilla-config.h:

This graph shows which files directly or indirectly include this file:


Classes

struct  _MozillaConfig
 configuration for mozilla-sync More...

Typedefs

typedef struct _MozillaConfig MozillaConfig

Functions

gboolean mozilla_config_check (MozillaConfig *pMozillaConfig, char **pSzError, void(*pLogFunction)(int level, bool sensitive, const char *szFile, int iLine, const char *szFunc, const char *szFormat,...))
gboolean mozilla_config_extract (OSyncPluginConfig *pOSyncPluginConfig, MozillaConfig *pMozillaConfig, char **pSzError, void(*pLogFunction)(int level, bool sensitive, const char *szFile, int iLine, const char *szFunc, const char *szFormat,...))

Typedef Documentation

typedef struct _MozillaConfig MozillaConfig


Function Documentation

gboolean mozilla_config_check ( MozillaConfig pMozillaConfig,
char **  pSzError,
void(*)(int level, bool sensitive, const char *szFile, int iLine, const char *szFunc, const char *szFormat,...)  pLogFunction 
)

Very brief check of the validity of a mozilla-sync configuration

Basically, just check that files and directories are really there

Parameters:
pMozillaConfig The configuration we shall check
pSzError Pointer to string, into which we shall write an error message if we return false
pLogFunction Function used to log information text
Returns:
TRUE on success; FALSE on error

References ERROR, GFREE, LOG, _MozillaConfig::szAddressbookFile, and _MozillaConfig::szProfileDirectory.

Referenced by main(), and mozilla_sync_initialize().

gboolean mozilla_config_extract ( OSyncPluginConfig *  pOSyncPluginConfig,
MozillaConfig pMozillaConfig,
char **  pSzError,
void(*)(int level, bool sensitive, const char *szFile, int iLine, const char *szFunc, const char *szFormat,...)  pLogFunction 
)

Extract information from Plugin Configuration into configuration for mozilla-sync

Parameters:
pOSyncPluginConfig The Plugin Configuration from OpenSync
pMozillaConfig The mozilla-sync configuration we shall fill out
pSzError Pointer to string, into which we shall write an error message if we return false
pLogFunction Function used to log information text
Returns:
TRUE on success; FALSE on error

References ERROR, find_default_profile_directory(), LOG, _MozillaConfig::szAddressbookFile, _MozillaConfig::szCalendarId, _MozillaConfig::szProfileDirectory, and _MozillaConfig::thunderbirdAddressbook.

Referenced by mozilla_sync_initialize().

Here is the call graph for this function: