Now the systrayicon change it's color when a download is in progress. I simply change...
[kdenetwork.git] / kget / logwindow.h
bloba2aa13d503aa9960e105dc65581c83171092176c
1 /***************************************************************************
2 * logwindow.h
3 * -------------------
5 * Revision : $Id$
6 * begin : Tue Jan 29 2002
7 * copyright : (C) 2002 by Patrick Charbonnier
8 * : Based On Caitoo v.0.7.3 (c) 1998 - 2000, Matej Koss
9 * email : pch@freeshell.org
11 ****************************************************************************/
13 /***************************************************************************
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 2 of the License, or
18 * (at your option) any later version.
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 ***************************************************************************/
28 #ifndef _LOGWINDOW_H
29 #define _LOGWINDOW_H
31 #include <qmap.h>
33 #include <kdialogbase.h>
35 class QListView;
36 class QTextEdit;
39 class SeparatedLog:public QWidget
42 Q_OBJECT public:
43 SeparatedLog(QWidget * parent);
44 ~SeparatedLog()
46 void addLog(uint id, const QString & filename, const QString & message);
47 void refresh();
49 protected slots:
50 void transferSelected(QListViewItem * item);
52 private:
53 QListView * lv_log;
54 QTextEdit *ml_log;
56 typedef QMap < uint, QString > TransferMap;
57 TransferMap trMap;
59 uint idSelected;
63 class LogWindow:public KDialogBase
66 Q_OBJECT public:
67 LogWindow();
68 ~LogWindow()
70 void logGeneral(const QString & message);
71 QString getText() const;
73 public slots:
74 void logTransfer(uint id, const QString & filename, const QString & message);
76 protected:
77 void closeEvent(QCloseEvent *);
79 private:
80 QTextEdit * mixed_log;
81 SeparatedLog *sep_log;
85 #endif // _LOGWINDOW_H