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 EXPORTDIALOG_H
19 #define EXPORTDIALOG_H
20 
21 #include "x2goclientconfig.h"
22 #include <QDialog>
23 class QListView;
24 class QPushButton;
25 class QModelIndex;
26 class ONMainWindow;
27 
28 
29 /**
30 	@author Oleksandr Shneyder <oleksandr.shneyder@obviously-nice.de>
31 */
32 class ExportDialog : public QDialog
33 {
34     Q_OBJECT
35 public:
36     ExportDialog(QString sid,QWidget * par, Qt::WindowFlags f = 0);
37 
38     ~ExportDialog();
getExport()39     QString getExport(){return directory;}
40 private:
41     QListView* sessions;
42     QPushButton* editSession;
43     QPushButton* exportDir;
44     QPushButton* newDir;
45     QString directory;
46     ONMainWindow* parent;
47     void loadSessions();
48     QString sessionId;
49 private slots:
50     void slot_activated(const QModelIndex& index);
51     void slotNew();
52     void slot_edit();
53     void slot_dclicked(const QModelIndex& index);
54     void slot_accept();
55 };
56 
57 #endif
58