Debian Codegraph @

HercUtilities/DasdInit.h

raw symbols SCIP
1 /*
2 * File: DasdInit.h
3 *
4 * Author: Jacob Dekel
5 * Created on: Aug 7, 2009
6 *
7 * Copyright (c) 2009-2013 Jacob Dekel
8 * $Id$
9 *
10 * Dasdinit utility object
11 *
12 * This program is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 *
25 */
26
27 #ifndef DASDINIT_H
28 #define DASDINIT_H
29
30 #include "UtilityExecutor.h"
31 #include "GenericUtility.h"
32
33 #include <QtWidgets/QDialog>
34 #include <QtWidgets/QWidget>
35 #include <QThread>
36 #include <QValidator>
37 #include "ui_DasdInit.h"
38
39 class UtilityExecutor;
40 class DasdInit : public GenericUtility
41 {
42 Q_OBJECT
43
44 public:
45 DasdInit(QWidget *parent = 0);
46 virtual ~DasdInit();
47
48 private:
49 Ui::dasdinitClass ui;
50 bool mEnded;
51
52 void initialize();
53 void setSizeValue();
54 virtual void finishedSlot();
55
56 class VolserValidator : public QValidator
57 {
58 public:
59 VolserValidator(QObject * parent);
60 virtual State validate(QString & input, int & pos) const;
61 };
62
63 private slots:
64 void rawSlot(int);
65 void sizeClicked();
66 void exitClicked();
67 void runClicked();
68 void newDevType();
69 void browseClicked();
70 void filenameFocus();
71 void runnerMaximumChanged(int maximum);
72 void runnerValueChanged(int value);
73 };
74
75 #endif // DASDINIT_H