Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.sysactivity
Class NetworkManagerListenerImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.sysactivity.NetworkManagerListenerImpl
All Implemented Interfaces:
org.freedesktop.dbus.DBusSigHandler

public class NetworkManagerListenerImpl
extends Object
implements org.freedesktop.dbus.DBusSigHandler

Responsible for subscribe and dispatch signals from NetworkManager. Uses dbus to connect.

Author:
Damian Minkov

Method Summary
static NetworkManagerListenerImpl getInstance()
          Gets the instance of NetworkManagerListenerImpl.
 void handle(org.freedesktop.dbus.DBusSignal dBusSignal)
          Receives signals and dispatch them.
 boolean isConnected()
          Whether we are connected to the network manager through dbus.
 void start()
          Starts
 void stop()
          Stops.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static NetworkManagerListenerImpl getInstance()
Gets the instance of NetworkManagerListenerImpl.

Returns:
the NetworkManagerListenerImpl.

start

public void start()
Starts


stop

public void stop()
Stops.


handle

public void handle(org.freedesktop.dbus.DBusSignal dBusSignal)
Receives signals and dispatch them.

Specified by:
handle in interface org.freedesktop.dbus.DBusSigHandler
Parameters:
dBusSignal - signal to handle.

isConnected

public boolean isConnected()
Whether we are connected to the network manager through dbus.

Returns:
whether we are connected to the network manager.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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