blob: 26109b9037a759227cd9a5df8eaeacb4f9447a5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
/*
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
*/
/*
This class handles the system tray icon
begin: Sun Nov 9 2003
copyright: (C) 2003 by Peter Simonsson
email: psn@linux.se
*/
#ifndef TRAYICON_H
#define TRAYICON_H
#include <tqptrlist.h>
#include <tqpixmap.h>
#include <ksystemtray.h>
class TQTimer;
class Server;
namespace Konversation
{
class TrayIcon : public KSystemTray
{
TQ_OBJECT
public:
explicit TrayIcon(TQWidget* parent = 0);
~TrayIcon();
bool notificationEnabled() { return m_notificationEnabled; }
public slots:
void startNotification();
void endNotification();
void setNotificationEnabled(bool notify) { m_notificationEnabled = notify; }
void updateAppearance();
protected slots:
void blinkTimeout();
private:
TQTimer* m_blinkTimer;
bool m_blinkOn;
bool m_notificationEnabled;
TQPixmap m_nomessagePix;
TQPixmap m_messagePix;
};
}
#endif
|