2
** Copyright 2004-2007 - INL
3
** Written by Eric Leblond <eric.leblond@inl.fr>
4
** Vincent Deffontaines <vincent@inl.fr>
5
** INL http://www.inl.fr/
7
** This program is free software; you can redistribute it and/or modify
8
** it under the terms of the GNU General Public License as published by
9
** the Free Software Foundation, version 2 of the License.
11
** This program is distributed in the hope that it will be useful,
12
** but WITHOUT ANY WARRANTY; without even the implied warranty of
13
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
** GNU General Public License for more details.
16
** You should have received a copy of the GNU General Public License
17
** along with this program; if not, write to the Free Software
18
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
#include <QMainWindow>
27
#include <QSystemTrayIcon>
30
#include "preferences.h"
31
#include "thread_session.h"
33
class NuAppSystray : public QSystemTrayIcon {
41
void onClick(QSystemTrayIcon::ActivationReason reason);
42
void start_auth(QString _username, QString _password);
46
void tray_set_connected();
47
void tray_set_stopped();
48
void tray_set_trying();
49
void tray_report_error();
50
void tray_report_connected();
51
void tray_report_disconnected();
58
void createTrayIcon();
60
void parse_cmdline_options(int argc, char **argv);
63
// Authentication related
69
QAction *preferencesAct;
72
QAction *disconnectAct;
74
ThreadCheckConn timer;
76
NuAppAuthDialog* auth_dlg;
77
NuLogsWindow* logs_dlg;
78
NuAppPreferences* pref_dlg;
81
#endif /* __SYSTRAY__ */