SystemTrayIcon Class Reference

This shows the small icon in the system tray. More...

#include <systemtrayicon.h>

List of all members.

Public Member Functions

 SystemTrayIcon (QWidget *parent, QIcon trayIcon, KAction *actionRefresh)
void drawNumber (int n, const QColor &color)
void clear ()
void showLooking ()

Protected Slots

void slotFlash ()

Protected Member Functions

void drawLooking ()

Private Attributes

QIcon _icon
QTimer * flashingTimer
bool flasherFlag

Detailed Description

This shows the small icon in the system tray.

Definition at line 38 of file systemtrayicon.h.


Constructor & Destructor Documentation

SystemTrayIcon::SystemTrayIcon ( QWidget *  parent,
QIcon  trayIcon,
KAction *  actionRefresh 
)

Constructor

Parameters:
parent parent widget
Parameters:
trayIcon icon
Parameters:
actionRefresh refresh action

Definition at line 21 of file systemtrayicon.cpp.


Member Function Documentation

void SystemTrayIcon::clear (  ) 

Clears the number from the icon

Definition at line 70 of file systemtrayicon.cpp.

void SystemTrayIcon::drawLooking (  )  [protected]

Draws a question mark

Definition at line 93 of file systemtrayicon.cpp.

void SystemTrayIcon::drawNumber ( int  n,
const QColor &  color 
)

Draws the given number on the icon.

Parameters:
n number to draw
Parameters:
color color

Definition at line 39 of file systemtrayicon.cpp.

void SystemTrayIcon::showLooking (  ) 

Shows a flashing question mark

Definition at line 77 of file systemtrayicon.cpp.

void SystemTrayIcon::slotFlash (  )  [protected, slot]

Receives the timer event and depending on flasherFlag it calls drawLooking() or clears the icon.

See also:
flasherFlag
drawLooking

Definition at line 118 of file systemtrayicon.cpp.


Member Data Documentation

QIcon SystemTrayIcon::_icon [private]

the icon

Definition at line 74 of file systemtrayicon.h.

auxiliary flag for the flasher

TRUE - question mark is on; FALSE - question mark is off

Definition at line 85 of file systemtrayicon.h.

QTimer* SystemTrayIcon::flashingTimer [private]

Timer to animate the ?

Definition at line 79 of file systemtrayicon.h.


The documentation for this class was generated from the following files:
Generated on Sun Mar 13 15:27:10 2011 for KShowmail by  doxygen 1.6.3