blueZync

Synchronize Bluetooth phone with Thunderbird

Develpers' detailed documentation for the Thunderbird Extension for synchronizing a bluetooth phone with Thunderbird/Lightning/Sunbird.
A part of blueZync.

bluezync_lib.js File Reference


Detailed Description

JavaScript library for the blueZync Thunderbird Extension.


Functions

void errorReport (string title_string, string error_string)
void errorReportClose (string title_string, string error_string)
void errorReportJs (string where_string, error jserror)
void errorReportJsClose (string where_string, stringerror jserror)
void errorReportLib (string where_string, string error_string, string status_string)
void errorReportLib1 (string where_string, error jserror, string error_string)
void errorReportLibClose (string where_string, string error_string, string status_string)
void errorReportLibClose1 (string where_string, error jserror, string error_string)
void libInit ()
void log (int n, string s)

Variables

nsIConsoleService consoleService
boolean lib_initialized
int logLevel
nsIPromptService promptService
nsIScriptError scriptError

Function Documentation

void errorReport ( string  title_string,
string  error_string 
)

Display error message in a window, and log to JavaScript console

Parameters:
title_string Title for the error window
error_string Explanation of the error

void errorReportClose ( string  title_string,
string  error_string 
)

Display error message in a window, and log to JavaScript console

Parameters:
title_string Title for the error window
error_string Explanation of the error

void errorReportJs ( string  where_string,
error  jserror 
)

Display and log error message from JavaScript

Parameters:
where_string The function in which the error occured
jserror The error itself

void errorReportJsClose ( string  where_string,
stringerror  jserror 
)

Display and log error message from JavaScript. Close window afterwards.

Parameters:
where_string The function in which the error occured
jserror The error itself

void errorReportLib ( string  where_string,
string  error_string,
string  status_string 
)

Display and log error message from xpcom library

Parameters:
where_string The function in which the error occured
error_string Explanation of the error
status_string Last status returned from the xpcom library

void errorReportLib1 ( string  where_string,
error  jserror,
string  error_string 
)

Display and log error message from xpcom library

Parameters:
where_string The function in which the error occured
jserror The JavaScript error
error_string Explanation of the error

void errorReportLibClose ( string  where_string,
string  error_string,
string  status_string 
)

Display and log error message from xpcom library Close window afterwards.

Parameters:
where_string The function in which the error occured
error_string Explanation of the error
status_string Last status returned from the xpcom library

void errorReportLibClose1 ( string  where_string,
error  jserror,
string  error_string 
)

Display and log error message from xpcom library Close window afterwards.

Parameters:
where_string The function in which the error occured
jserror The JavaScript error
error_string Explanation of the error

void libInit (  ) 

Initialize

  • promptService
  • consoleService

void log ( int  n,
string  s 
)

Log message to JavaScript console

Parameters:
n Log level.
  • 10 basic logging
  • 20 detailed logging
  • 30 insane logging
s The string to write to the console


Variable Documentation

nsIConsoleService consoleService

For logging to the JavaScript console

boolean lib_initialized

Remember if already initialized

int logLevel

Global. Level for logging.

  • 10 basic logging
  • 20 detailed logging
  • 30 insane logging

nsIPromptService promptService

For window dialog message

nsIScriptError scriptError

For creating script errors with line numbers and what have you