Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.galagonotification
Class GalagoNotificationActivator

java.lang.Object
  extended by net.java.sip.communicator.impl.galagonotification.GalagoNotificationActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class GalagoNotificationActivator
extends Object
implements org.osgi.framework.BundleActivator

Implements BundleActivator for the galagonotification bundle which provides an implementation of PopupMessageHandler according to the freedesktop.org Desktop Notifications spec.

Author:
Lubomir Marinov

Field Summary
(package private) static long dbusConnection
          The DBusConnection pointer to the D-Bus connection through which the freedesktop.org Desktop Notifications are being sent.
 
Constructor Summary
GalagoNotificationActivator()
           
 
Method Summary
static ResourceManagementService getResources()
          Gets the resources such as internationalized and localized text and images used by the galagonotification bundle.
 void start(org.osgi.framework.BundleContext bundleContext)
          Starts the galagonotification bundle.
 void stop(org.osgi.framework.BundleContext bundleContext)
          Stops the galagonotification bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbusConnection

static long dbusConnection
The DBusConnection pointer to the D-Bus connection through which the freedesktop.org Desktop Notifications are being sent.

Constructor Detail

GalagoNotificationActivator

public GalagoNotificationActivator()
Method Detail

getResources

public static ResourceManagementService getResources()
Gets the resources such as internationalized and localized text and images used by the galagonotification bundle.

Returns:
the resources such as internationalized and localized text and images used by the galagonotification bundle

start

public void start(org.osgi.framework.BundleContext bundleContext)
           throws Exception
Starts the galagonotification bundle. Registers its PopupMessageHandler implementation if it is supported by the current operating system.

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - the context in which the galagonotification bundle is to execute
Throws:
Exception - if the PopupMessageHandler implementation of the galagonotification bundle is not supported by the current operating system
See Also:
BundleActivator.start(BundleContext)

stop

public void stop(org.osgi.framework.BundleContext bundleContext)
          throws Exception
Stops the galagonotification bundle.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - the context in which the galagonotification bundle is to stop its execution
Throws:
Exception - if there was an error during the stopping of the native functionality supporting the PopupNotificationHandler implementation of the galagonotification bundle

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.