1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
/*
* File: DeviceTypes.h
*
* Author: Jacob Dekel
* Created on: Oct 15, 2009
*
* Copyright (c) 2009-2013 Jacob Dekel
* $Id$
*
* This object is an interface for driving devices through menus
* (used by both the devices pane and the devices configuration tab)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef DEVICETYPES_H_
#define DEVICETYPES_H_
#include <QIcon>
class DeviceTypes
{
public:
static DeviceTypes& instance();
virtual ~DeviceTypes();
enum Type { Other = 0,
Terminal, Sysg, Console, Printer, CardReader, CardPunch,
LinePrinter, Tape, CTC, DASD , Comm };
enum BaseType { CTCT=100 , CTCI, LCS, QETH, CKD, FBA};
QIcon & getIcon(DeviceTypes::Type type) ;
const char * getName(Type type);
private:
DeviceTypes();
static DeviceTypes mInstance;
const static char *sDeviceNames[];
const static char *sDeviceIconNames[];
static std::vector<QIcon> sDeviceIcons;
};
#endif /* DEVICETYPES_H_ */
|