| 1 | /* |
| 2 | * File: DasdProperties.h |
| 3 | * |
| 4 | * Author: Jacob Dekel |
| 5 | * Created on: Aug 7, 2009 |
| 6 | * |
| 7 | * Copyright (c) 2009-2013 Jacob Dekel |
| 8 | * $Id$ |
| 9 | * |
| 10 | * |
| 11 | * This object handles the configuration of DASDs |
| 12 | * |
| 13 | * This program is free software: you can redistribute it and/or modify |
| 14 | * it under the terms of the GNU General Public License as published by |
| 15 | * the Free Software Foundation, either version 3 of the License, or |
| 16 | * (at your option) any later version. |
| 17 | * |
| 18 | * This program is distributed in the hope that it will be useful, |
| 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 21 | * GNU General Public License for more details. |
| 22 | * |
| 23 | * You should have received a copy of the GNU General Public License |
| 24 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 25 | * |
| 26 | */ |
| 27 | |
| 28 | #ifndef DASDPROPERTIES_H |
| 29 | #define DASDPROPERTIES_H |
| 30 | |
| 31 | #include "ConfigLine.h" |
| 32 | #include "GenericDeviceProperties.h" |
| 33 | |
| 34 | #include <QtWidgets/QWidget> |
| 35 | #include "ui_DasdProperties.h" |
| 36 | |
| 37 | typedef std::string stringArray[3]; |
| 38 | |
| 39 | class DasdProperties : public GenericDeviceProperties |
| 40 | { |
| 41 | Q_OBJECT |
| 42 | |
| 43 | public: |
| 44 | DasdProperties(ConfigLine& configLine, QWidget *parent = 0); |
| 45 | virtual ~DasdProperties(); |
| 46 | |
| 47 | private: |
| 48 | Ui::DasdPropertiesClass ui; |
| 49 | static std::string ckd[]; |
| 50 | static std::string fba[]; |
| 51 | |
| 52 | void initialize(ConfigLine& line); |
| 53 | bool isInet(const std::string& fileName, stringArray & vec); |
| 54 | bool isFba(const std::string& dev); |
| 55 | void setInet(bool set); |
| 56 | void setLocal(bool set); |
| 57 | void setFba(bool set); |
| 58 | void setCkd(bool set); |
| 59 | |
| 60 | private slots: |
| 61 | virtual void ok(); |
| 62 | virtual void cancel(); |
| 63 | void browseClicked(); |
| 64 | void browseShadowClicked(); |
| 65 | void typeChanged(const QString &); |
| 66 | void localInetChanged(); |
| 67 | }; |
| 68 | |
| 69 | #endif // DASDPROPERTIES_H |