Back to index

lightning-sunbird  0.9+nobinonly
Classes | Namespaces | Functions
calUtils.cpp File Reference
#include "nsComponentManagerUtils.h"
#include "nsServiceManagerUtils.h"
#include "nsIScriptError.h"
#include "calBaseCID.h"
#include "calUtils.h"
#include "ical.h"

Go to the source code of this file.


class  cal::UTF8StringEnumerator


namespace  cal


nsresult cal::createUTF8StringEnumerator (nsAutoPtr< nsCStringArray > &takeOverArray, nsIUTF8StringEnumerator **ppRet)
 Creates a UTF8 string enumerator.
nsresult cal::logError (PRUnichar const *msg)
 Logs an error.
nsresult cal::logWarning (PRUnichar const *msg)
 Logs a warning.
nsresult cal::log (PRUnichar const *msg)
 Just logs.
nsCOMPtr< nsIConsoleService >
cal::getConsoleService ()
 Gets the global console service.
nsCOMPtr< calIICSService > constcal::getICSService ()
 Gets the global ICS service.
nsCOMPtr< calITimezoneService >
cal::getTimezoneService ()
 Gets the global timezone service.
nsCOMPtr< calITimezone > constcal::floating ()
 Gets the "floating" timezone.
nsCOMPtr< calITimezone > constcal::UTC ()
 Gets the "UTC" timezone.
nsCOMPtr< calITimezonecal::detectTimezone (icaltimetype const &icalt, calITimezoneProvider *tzProvider)
 Detects the timezone icalt refers to, either using the passed timezone provider or the global timezone service.
void cal::logMissingTimezone (char const *tzid)
 Logs a missing timezone into the js console.
icaltimezone * cal::getIcalTimezone (calITimezone *tz)
 Returns the libical VTIMEZONE component, null if floating.