enable utils compilation.
[AROS-Contrib.git] / FryingPan / Optical / CfgHardware.h
blob9833825e852f962a3a9bd914ed7f0d95a5dbee0e
1 /*
2 * FryingPan - Amiga CD/DVD Recording Software (User Interface and supporting Libraries only)
3 * Copyright (C) 2001-2011 Tomasz Wiszkowski Tomasz.Wiszkowski at gmail.com
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public License
7 * as published by the Free Software Foundation; either version 2.1
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef _OPTICAL_CFGHARDWARE_H_
21 #define _OPTICAL_CFGHARDWARE_H_
23 #include <Generic/Generic.h>
24 #include <Generic/ConfigParser.h>
25 #include "CfgCDInfo.h"
27 using namespace GenNS;
29 class CfgHardware
31 protected:
32 String driveid;
33 ConfigParser *config;
34 CfgCDInfo *cdinfo;
35 CfgCDInfo *dvdminusinfo;
36 CfgCDInfo *dvdplusinfo;
37 uint16 readspd;
38 uint16 writespd;
39 public:
40 CfgHardware(ConfigParser *parent, int32 id);
41 virtual ~CfgHardware();
42 virtual CfgCDInfo *CDInfo();
43 virtual CfgCDInfo *DVDMinusInfo();
44 virtual CfgCDInfo *DVDPlusInfo();
45 virtual String &getDriveID();
46 virtual void setDriveID(const char*);
47 virtual uint16 getReadSpeed();
48 virtual uint16 getWriteSpeed();
49 virtual void setReadSpeed(uint16);
50 virtual void setWriteSpeed(uint16);
52 virtual void onWrite();
55 #endif