1 | /* |
2 | * This file is part of the KDE project |
3 | * Copyright (C) 2009 Shaun Reich <shaun.reich@kdemail.net> |
4 | * Copyright (C) 2006-2008 Rafael Fernández López <ereslibre@kde.org> |
5 | * Copyright (C) 2000 Matej Koss <koss@miesto.sk> |
6 | * David Faure <faure@kde.org> |
7 | * |
8 | * This library is free software; you can redistribute it and/or |
9 | * modify it under the terms of the GNU Library General Public |
10 | * License version 2 as published by the Free Software Foundation. |
11 | * |
12 | * This library is distributed in the hope that it will be useful, |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 | * Library General Public License for more details. |
16 | * |
17 | * You should have received a copy of the GNU Library General Public License |
18 | * along with this library; see the file COPYING.LIB. If not, write to |
19 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
20 | * Boston, MA 02110-1301, USA. |
21 | */ |
22 | |
23 | #ifndef UISERVER_H |
24 | #define UISERVER_H |
25 | |
26 | #include <QListView> |
27 | |
28 | #include <kxmlguiwindow.h> |
29 | |
30 | #include "jobview.h" |
31 | |
32 | |
33 | #include <kuiserversettings.h> |
34 | |
35 | class ProgressListModel; |
36 | class ProgressListDelegate; |
37 | class QToolBar; |
38 | class KSystemTrayIcon; |
39 | |
40 | class UiServer : public KXmlGuiWindow |
41 | { |
42 | Q_OBJECT |
43 | |
44 | public: |
45 | explicit UiServer(ProgressListModel* model); |
46 | ~UiServer(); |
47 | |
48 | public Q_SLOTS: |
49 | void updateConfiguration(); |
50 | void applySettings(); |
51 | |
52 | protected: |
53 | virtual void closeEvent(QCloseEvent *event); |
54 | |
55 | private Q_SLOTS: |
56 | void showConfigurationDialog(); |
57 | |
58 | private: |
59 | ProgressListDelegate *progressListDelegate; |
60 | QListView *listProgress; |
61 | |
62 | QToolBar *toolBar; |
63 | KSystemTrayIcon *m_systemTray; |
64 | |
65 | }; |
66 | |
67 | #endif // UISERVER_H |
68 | |