| 1 | /* |
| 2 | * File: DeviceTypes.h |
| 3 | * |
| 4 | * Author: Jacob Dekel |
| 5 | * Created on: Oct 15, 2009 |
| 6 | * |
| 7 | * Copyright (c) 2009-2013 Jacob Dekel |
| 8 | * $Id$ |
| 9 | * |
| 10 | * This object is an interface for driving devices through menus |
| 11 | * (used by both the devices pane and the devices configuration tab) |
| 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 | |
| 29 | #ifndef DEVICETYPES_H_ |
| 30 | #define DEVICETYPES_H_cxx . . $ `HercConfiguration/DeviceTypes.h:30:9`! |
| 31 | |
| 32 | #include <QIcon> |
| 33 | |
| 34 | class DeviceTypescxx . . $ DeviceTypes# |
| 35 | { |
| 36 | public: |
| 37 | static DeviceTypescxx . . $ DeviceTypes#& instancecxx . . $ DeviceTypes#instance(c065a99473e12f8e).(); |
| 38 | virtual ~cxx . . $ DeviceTypes#`~DeviceTypes`(49f6e7a06ebc5aa8).DeviceTypescxx . . $ DeviceTypes#(); |
| 39 | enum Typecxx . . $ DeviceTypes#Type# { Othercxx . . $ DeviceTypes#Other. = 0, |
| 40 | Terminalcxx . . $ DeviceTypes#Terminal., Sysgcxx . . $ DeviceTypes#Sysg., Consolecxx . . $ DeviceTypes#Console., Printercxx . . $ DeviceTypes#Printer., CardReadercxx . . $ DeviceTypes#CardReader., CardPunchcxx . . $ DeviceTypes#CardPunch., |
| 41 | LinePrintercxx . . $ DeviceTypes#LinePrinter., Tapecxx . . $ DeviceTypes#Tape., CTCcxx . . $ DeviceTypes#CTC., DASDcxx . . $ DeviceTypes#DASD. , Commcxx . . $ DeviceTypes#Comm. }; |
| 42 | enum BaseTypecxx . . $ DeviceTypes#BaseType# { CTCTcxx . . $ DeviceTypes#CTCT.=100 , CTCIcxx . . $ DeviceTypes#CTCI., LCScxx . . $ DeviceTypes#LCS., QETHcxx . . $ DeviceTypes#QETH., CKDcxx . . $ DeviceTypes#CKD., FBAcxx . . $ DeviceTypes#FBA.}; |
| 43 | QIconcxx . . $ QIcon# & getIconcxx . . $ DeviceTypes#getIcon(bb7825627a920bdb).(DeviceTypescxx . . $ DeviceTypes#::Typecxx . . $ DeviceTypes#Type# type) ; |
| 44 | const char * getNamecxx . . $ DeviceTypes#getName(22828f0427237af0).(Typecxx . . $ DeviceTypes#Type# type); |
| 45 | private: |
| 46 | DeviceTypescxx . . $ DeviceTypes#DeviceTypes(49f6e7a06ebc5aa8).(); |
| 47 | static DeviceTypescxx . . $ DeviceTypes# mInstancecxx . . $ DeviceTypes#mInstance.; |
| 48 | const static char *sDeviceNamescxx . . $ DeviceTypes#sDeviceNames.[]; |
| 49 | const static char *sDeviceIconNamescxx . . $ DeviceTypes#sDeviceIconNames.[]; |
| 50 | static stdcxx . . $ std/::vectorcxx . . $ std/vector#<QIconcxx . . $ QIcon#> sDeviceIconscxx . . $ DeviceTypes#sDeviceIcons.; |
| 51 | }; |
| 52 | |
| 53 | #endif /* DEVICETYPES_H_ */ |