1 /**************************************************************************
2 *   Copyright (C) 2005-2020 by Oleksandr Shneyder                         *
3 *                              <o.shneyder@phoca-gmbh.de>                 *
4 *                                                                         *
5 *   This program is free software; you can redistribute it and/or modify  *
6 *   it under the terms of the GNU General Public License as published by  *
7 *   the Free Software Foundation; either version 2 of the License, or     *
8 *   (at your option) any later version.                                   *
9 *   This program is distributed in the hope that it will be useful,       *
10 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12 *   GNU General Public License for more details.                          *
13 *                                                                         *
14 *   You should have received a copy of the GNU General Public License     *
15 *   along with this program.  If not, see <https://www.gnu.org/licenses/>. *
16 ***************************************************************************/
17 
18 #ifndef ONMAINWINDOWPRIVAT_H
19 #define ONMAINWINDOWPRIVAT_H
20 
21 
22 #include <QTextStream>
23 #include <QTranslator>
24 #include <QToolButton>
25 #include <QPainter>
26 
27 #include "version.h"
28 #include "x2goclientconfig.h"
29 #include "x2goutils.h"
30 #include "onmainwindow.h"
31 #include "userbutton.h"
32 #include "exportdialog.h"
33 #include "printprocess.h"
34 #include "helpdialog.h"
35 #include "appdialog.h"
36 #include "InteractionDialog.h"
37 #include <QDesktopServices>
38 #include <QApplication>
39 #include <QScrollBar>
40 #include <QVBoxLayout>
41 #include <QHBoxLayout>
42 #include <QFile>
43 
44 #include "httpbrokerclient.h"
45 #include <QTimer>
46 #include <QComboBox>
47 #include <QMessageBox>
48 #include <QProcess>
49 #include <QGroupBox>
50 #include <QTextEdit>
51 #include <QDesktopWidget>
52 #include <QLineEdit>
53 #include <QLabel>
54 #include <QScrollArea>
55 #include <QAction>
56 #include <QMenu>
57 #include <QMenuBar>
58 #include <QToolBar>
59 #include <QShortcut>
60 #include "x2gosettings.h"
61 #include <QStatusBar>
62 #include <QInputDialog>
63 #include <QDir>
64 #include <QTreeView>
65 #include <QStandardItem>
66 #include <QStandardItemModel>
67 #include <QHeaderView>
68 #include <QCheckBox>
69 #include <QTemporaryFile>
70 #include <QFileDialog>
71 #include <QUrl>
72 #include <QLocalSocket>
73 #if QT_VERSION < 0x050000
74 #include <QPlastiqueStyle>
75 #endif
76 #include "imgframe.h"
77 #include <QToolTip>
78 #include "clicklineedit.h"
79 #include <QThread>
80 
81 #include "brokerpassdlg.h"
82 
83 #include "sshmasterconnection.h"
84 #include "contest.h"
85 
86 #if !defined Q_OS_WIN
87 #include <sys/mount.h>
88 #ifdef Q_OS_UNIX
89 #include <X11/Xatom.h>
90 #include <X11/xpm.h>
91 //#include <linux/fs.h>
92 #endif // Q_OS_UNIX
93 #endif // !defined Q_OS_WIN
94 
95 #include <errno.h>
96 #include <sys/types.h>
97 #include <sys/stat.h>
98 
99 #include <QCoreApplication>
100 
101 #include <QDesktopWidget>
102 
103 #define ldap_SUCCESS 0
104 #define ldap_INITERROR 1
105 #define ldap_OPTERROR 2
106 #define ldap_BINDERROR 3
107 #define ldap_SEARCHERROR 4
108 #define ldap_NOBASE 5
109 
110 
111 
112 //LDAP attributes
113 #define SESSIONID "sn"
114 #define USERNAME  "cn"
115 #define CLIENT    "registeredAddress"
116 #define SERVER    "postalAddress"
117 #define RES       "title"
118 #define DISPLAY   "street"
119 #define STATUS    "st"
120 #define STARTTIME "telephoneNumber"
121 #define CREATTIME "telexNumber"
122 #define SUSPTIME  "internationaliSDNNumber"
123 
124 #define SESSIONCMD "o"
125 #define FIRSTUID "ou"
126 #define LASTUID "l"
127 
128 #define SNDSUPPORT "sn"
129 #define NETSOUNDSYSTEM "o"
130 #define SNDSUPPORT "sn"
131 #define SNDPORT   "ou"
132 #define STARTSNDSERVER "title"
133 
134 
135 
136 #include <QDateTime>
137 
138 #include "SVGFrame.h"
139 #include "configdialog.h"
140 #include "editconnectiondialog.h"
141 #include "sessionbutton.h"
142 #include "folderbutton.h"
143 #include "sessionexplorer.h"
144 #include "sessionmanagedialog.h"
145 #include "x2gologdebug.h"
146 #include <QMouseEvent>
147 
148 #ifdef Q_OS_WIN
149 #include "wapi.h"
150 #include <QHostInfo>
151 #endif
152 
153 #ifdef Q_OS_UNIX
154 #if QT_VERSION < 0x050000
155 #include <QX11Info>
156 #else
157 #include <QtX11Extras/QX11Info>
158 #endif
159 #include <X11/Xlib.h>
160 #include <X11/Xutil.h>
161 #endif
162 
163 
164 #endif //ONMAINWINDOWPRIVAT_H
165