• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/kopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • kopete
systemtray.h
Go to the documentation of this file.
1 /*
2  systemtray.h - Kopete Tray Dock Icon
3 
4  Copyright (c) 2002 by Nick Betcher <nbetcher@kde.org>
5  Copyright (c) 2002-2003 by Martijn Klingens <klingens@kde.org>
6  Copyright (c) 2003 by Olivier Goffart <ogoffart@kde.org>
7 
8  Kopete (c) 2002-2005 by the Kopete developers <kopete-devel@kde.org>
9 
10  *************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  *************************************************************************
18 */
19 
20 #ifndef SYSTEMTRAY_H
21 #define SYSTEMTRAY_H
22 
23 #include <KStatusNotifierItem>
24 
25 #include "kopetemessageevent.h"
26 
27 class QTimer;
28 class KMenu;
29 
36 class KopeteSystemTray : public KStatusNotifierItem
37 {
38  Q_OBJECT
39 
40 public:
44  static KopeteSystemTray* systemTray( QWidget* parent = 0);
45 
46  virtual ~KopeteSystemTray();
47 
48  // One method, multiple interfaces :-)
49  void startBlink( const QString &icon );
50  void startBlink();
51 
52  void stopBlink();
53  bool isBlinking() const;
54 
55 Q_SIGNALS:
56  void aboutToShowMenu(KMenu *am);
57 
58 private Q_SLOTS:
59  void slotAboutToShowMenu();
60  void activate(const QPoint &pos=QPoint());
61 
62  void slotBlink();
63  void slotNewEvent(Kopete::MessageEvent*);
64  void slotEventDone(Kopete::MessageEvent *);
65  void slotConfigChanged();
66  void slotReevaluateAccountStates();
67 
68 private:
69  KopeteSystemTray( QWidget* parent );
70 
71  QTimer *mBlinkTimer;
72  QString mKopeteIcon;
73  QString mBlinkIcon;
74 
75  bool mIsBlinkIcon;
76 
77  static KopeteSystemTray* s_systemTray;
78 
79  QList<Kopete::MessageEvent*> mEventList;
80 };
81 
82 #endif
83 
84 // vim: set noet ts=4 sts=4 sw=4:
85 
QWidget
KopeteSystemTray::startBlink
void startBlink()
Definition: systemtray.cpp:135
KopeteSystemTray
Definition: systemtray.h:36
QPoint
QTimer
KopeteSystemTray::~KopeteSystemTray
virtual ~KopeteSystemTray()
Definition: systemtray.cpp:92
QString
QList< Kopete::MessageEvent * >
KopeteSystemTray::systemTray
static KopeteSystemTray * systemTray(QWidget *parent=0)
Retrieve the system tray instance.
Definition: systemtray.cpp:40
KopeteSystemTray::aboutToShowMenu
void aboutToShowMenu(KMenu *am)
KopeteSystemTray::stopBlink
void stopBlink()
Definition: systemtray.cpp:140
KopeteSystemTray::isBlinking
bool isBlinking() const
Definition: systemtray.cpp:244
KStatusNotifierItem
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/kopete

Skip menu "kopete/kopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal