kmail

KMSystemTray Class Reference

KMSystemTray extends KSystemTray and handles system tray notification for KMail. More...

#include <kmsystemtray.h>

Inheritance diagram for KMSystemTray:

List of all members.


Public Member Functions

void hideKMail ()
 KMSystemTray (QWidget *parent=0, const char *name=0)
int mode () const
void setMode (int mode)
 ~KMSystemTray ()

Protected Member Functions

void buildPopupMenu ()
bool mainWindowIsOnCurrentDesktop ()
void mousePressEvent (QMouseEvent *)
QString prettyName (KMFolder *)
void showKMail ()
void updateCount ()

Detailed Description

KMSystemTray extends KSystemTray and handles system tray notification for KMail.

Definition at line 41 of file kmsystemtray.h.


Constructor & Destructor Documentation

KMSystemTray::KMSystemTray ( QWidget parent = 0,
const char *  name = 0 
)

construtor

Construct a KSystemTray icon to be displayed when new mail has arrived in a non-system folder.

The KMSystemTray listens for updateNewMessageNotification events from each non-system KMFolder and maintains a store of all folders with unread messages.

The KMSystemTray also provides a popup menu listing each folder with its count of unread messages, allowing the user to jump to the first unread message in each folder.

Initiate connections between folders and this object

Definition at line 60 of file kmsystemtray.cpp.

KMSystemTray::~KMSystemTray (  ) 

destructor

Definition at line 141 of file kmsystemtray.cpp.


Member Function Documentation

void KMSystemTray::buildPopupMenu (  )  [protected]

Definition at line 107 of file kmsystemtray.cpp.

void KMSystemTray::hideKMail (  ) 

Definition at line 420 of file kmsystemtray.cpp.

bool KMSystemTray::mainWindowIsOnCurrentDesktop (  )  [protected]

Definition at line 374 of file kmsystemtray.cpp.

int KMSystemTray::mode (  )  const

Definition at line 173 of file kmsystemtray.cpp.

void KMSystemTray::mousePressEvent ( QMouseEvent e  )  [protected]

On left mouse click, switch focus to the first KMMainWidget.

On right click, bring up a list of all folders with a count of unread messages.

Definition at line 297 of file kmsystemtray.cpp.

QString KMSystemTray::prettyName ( KMFolder fldr  )  [protected]

Return the name of the folder in which the mail is deposited, prepended with the account name if the folder is IMAP.

Definition at line 352 of file kmsystemtray.cpp.

void KMSystemTray::setMode ( int  mode  ) 

Definition at line 150 of file kmsystemtray.cpp.

void KMSystemTray::showKMail (  )  [protected]

Shows and raises the first KMMainWidget and switches to the appropriate virtual desktop.

Definition at line 392 of file kmsystemtray.cpp.

void KMSystemTray::updateCount (  )  [protected]

Update the count of unread messages.

If there are unread messages, overlay the count on top of a transparent version of the KMail icon. If there is no unread mail, restore the normal KMail icon.

Definition at line 183 of file kmsystemtray.cpp.


The documentation for this class was generated from the following files: