blob: 8c05ad3d324a49a60750b529e4b67a451747ec12 (
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
|
/*
* status.h
* Copyright (C) 1999 Kurt Granroth <granroth@kde.org>
*
* This file contains the declaration of the KBiffStatus
* widget.
*
* $Id$
*/
#ifndef KBIFFSTATUS_H
#define KBIFFSTATUS_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <qframe.h>
#include <qlist.h>
#include <qstring.h>
class QListView;
class QPoint;
class KBiffStatusItem : QObject
{
Q_OBJECT
public:
KBiffStatusItem(const QString& mailbox, const int num_new);
KBiffStatusItem(const QString& mailbox, const int num_new,const int num_cur);
virtual ~KBiffStatusItem();
QString mailbox() const { return _mailbox; }
QString newMessages() const { return _newMessages; }
QString curMessages() const { return _curMessages; }
protected:
QString _mailbox;
QString _newMessages;
QString _curMessages;
};
typedef QList<KBiffStatusItem> KBiffStatusList;
typedef QListIterator<KBiffStatusItem> KBiffStatusListIterator;
class KBiffStatus : public QFrame
{
Q_OBJECT
public:
KBiffStatus(QWidget *parent, const QString& profile, const KBiffStatusList& list);
virtual ~KBiffStatus();
void updateListView(const KBiffStatusList& list);
void popup(const QPoint& pos);
protected:
QListView *_listView;
};
#endif // KBIFFSTATUS_H
|