Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.linpoch.kde.systemtray
Class LinPochSystemTray  view LinPochSystemTray download LinPochSystemTray.java

java.lang.Object
  extended byKSystemTray
      extended byorg.linpoch.kde.systemtray.LinPochSystemTray
All Implemented Interfaces:
plp.presentation.DeviceListener

public class LinPochSystemTray
extends KSystemTray
implements plp.presentation.DeviceListener


Field Summary
private  org.linpoch.kde.config.Config config
           
private  plp.presentation.Epoc6Device device
           
(package private)  boolean disconnected
           
(package private)  QPixmap imageConnected
           
(package private)  QPixmap imageDisconnected
           
private  java.util.Map ports
           
 
Constructor Summary
LinPochSystemTray(QWidget widget, plp.presentation.Epoc6Device device, org.linpoch.kde.config.Config config)
           
 
Method Summary
private  void addPort(int menuIndex, java.lang.String port)
           
private  void checkPortInPopUpMenu(int index)
           
private  org.linpoch.kde.config.Config getConfig()
          Returns the config.
 plp.presentation.Epoc6Device getDevice()
           
private  QPixmap getImageConnected()
          Returns the imageConnected.
private  QPixmap getImageDisconnected()
          Returns the imageDisconnected.
private  java.lang.String getPort(int menuIndex)
           
private  java.util.Map getPorts()
          Returns the ports.
 void handleDeviceConnectedEvent(plp.presentation.Epoc6Device device)
           
 void handleDeviceDisconnectedEvent(plp.presentation.Epoc6Device device)
           
 void handlePortSelected(int index)
           
private  void setConfig(org.linpoch.kde.config.Config config)
          Sets the config.
private  void setConnected()
           
private  void setDevice(plp.presentation.Epoc6Device device)
          Sets the device.
private  void setDisconnected()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imageDisconnected

QPixmap imageDisconnected

imageConnected

QPixmap imageConnected

disconnected

boolean disconnected

device

private plp.presentation.Epoc6Device device

ports

private java.util.Map ports

config

private org.linpoch.kde.config.Config config
Constructor Detail

LinPochSystemTray

public LinPochSystemTray(QWidget widget,
                         plp.presentation.Epoc6Device device,
                         org.linpoch.kde.config.Config config)
Method Detail

getDevice

public plp.presentation.Epoc6Device getDevice()

setConnected

private void setConnected()

setDisconnected

private void setDisconnected()

handleDeviceConnectedEvent

public void handleDeviceConnectedEvent(plp.presentation.Epoc6Device device)
Specified by:
handleDeviceConnectedEvent in interface plp.presentation.DeviceListener

handleDeviceDisconnectedEvent

public void handleDeviceDisconnectedEvent(plp.presentation.Epoc6Device device)
Specified by:
handleDeviceDisconnectedEvent in interface plp.presentation.DeviceListener

setDevice

private void setDevice(plp.presentation.Epoc6Device device)
Sets the device.


getImageConnected

private QPixmap getImageConnected()
Returns the imageConnected.


getImageDisconnected

private QPixmap getImageDisconnected()
Returns the imageDisconnected.


handlePortSelected

public void handlePortSelected(int index)

checkPortInPopUpMenu

private void checkPortInPopUpMenu(int index)

getPorts

private java.util.Map getPorts()
Returns the ports.


addPort

private void addPort(int menuIndex,
                     java.lang.String port)

getPort

private java.lang.String getPort(int menuIndex)

getConfig

private org.linpoch.kde.config.Config getConfig()
Returns the config.


setConfig

private void setConfig(org.linpoch.kde.config.Config config)
Sets the config.