public class AddrBookActivator
extends java.lang.Object
implements org.osgi.framework.BundleActivator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PNAME_ENABLE_DEFAULT_IM_APPLICATION_CHANGE
Boolean property that defines whether changing the default IM application
is enabled or not.
|
static java.lang.String |
PNAME_ENABLE_MACOSX_ADDRESS_BOOK_SEARCH
Boolean property that defines whether the integration of the OS X
address book is enabled.
|
static java.lang.String |
PNAME_ENABLE_MICROSOFT_OUTLOOK_SEARCH
Boolean property that defines whether the integration of the Outlook
address book is enabled.
|
static java.lang.String |
PNAME_MAKE_JITSI_DEFAULT_IM_APPLICATION
Boolean property that defines whether Jitsi should be the default IM
Application or not.
|
Constructor and Description |
---|
AddrBookActivator() |
Modifier and Type | Method and Description |
---|---|
static CalendarServiceImpl |
getCalendarService() |
static org.jitsi.service.configuration.ConfigurationService |
getConfigService()
Gets the ConfigurationService to be used by the
functionality of the addrbook plug-in.
|
static PhoneNumberI18nService |
getPhoneNumberI18nService()
Returns the PhoneNumberI18nService.
|
static java.util.List<ProtocolProviderService> |
getProtocolProviders() |
static org.jitsi.service.resources.ResourceManagementService |
getResources()
Gets the ResourceManagementService to be used by the
functionality of the addrbook plug-in.
|
static void |
setAsDefaultIMApplication()
Sets Jitsi as Default IM application.
|
void |
start(org.osgi.framework.BundleContext bundleContext)
Starts the addrbook plug-in.
|
(package private) static void |
startCalendarService()
Tries to start the calendar service.
|
(package private) static void |
startService()
Starts the address book service.
|
void |
stop(org.osgi.framework.BundleContext bundleContext)
Stops the addrbook plug-in.
|
(package private) static void |
stopCalendarService()
Stops the calendar service.
|
(package private) static void |
stopService()
Stop the previously registered service.
|
static void |
unsetDefaultIMApplication()
Unsets Jitsi as Default IM application.
|
public static final java.lang.String PNAME_ENABLE_MICROSOFT_OUTLOOK_SEARCH
public static final java.lang.String PNAME_ENABLE_MACOSX_ADDRESS_BOOK_SEARCH
public static final java.lang.String PNAME_ENABLE_DEFAULT_IM_APPLICATION_CHANGE
public static final java.lang.String PNAME_MAKE_JITSI_DEFAULT_IM_APPLICATION
public static org.jitsi.service.resources.ResourceManagementService getResources()
public static CalendarServiceImpl getCalendarService()
public static org.jitsi.service.configuration.ConfigurationService getConfigService()
public void start(org.osgi.framework.BundleContext bundleContext) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
bundleContext
- the BundleContext in which the addrbook
plug-in is to be startedjava.lang.Exception
- if anything goes wrong while starting the addrbook
plug-inBundleActivator.start(BundleContext)
public void stop(org.osgi.framework.BundleContext bundleContext) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
bundleContext
- the BundleContext in which the addrbook
plug-in is to be stoppedjava.lang.Exception
- if anything goes wrong while stopping the addrbook
plug-inBundleActivator.stop(BundleContext)
static void startService()
static void startCalendarService()
static void stopCalendarService()
static void stopService()
public static void setAsDefaultIMApplication()
public static void unsetDefaultIMApplication()
public static java.util.List<ProtocolProviderService> getProtocolProviders()
public static PhoneNumberI18nService getPhoneNumberI18nService()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.