Bringing ChocolateCaste-0.7 into the main branch.
[AROS-Contrib.git] / FryingPan / Optical / CfgIOMeas.h
blob3a81f8a3374454b51d83e9d3d6b0d57b8b2993f6
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_CFGIOMEAS_H_
21 #define _OPTICAL_CFGIOMEAS_H_
23 #include <Generic/Types.h>
25 class CfgIOMeas
27 protected:
28 uint32 discsize;
29 uint16 iospeed;
30 uint16 count;
31 uint16 time;
33 uint32 ctime;
34 uint32 ctenth;
35 public:
36 CfgIOMeas(uint32 ds, uint16 io, uint16 cnt=0, uint32 time=0);
37 virtual ~CfgIOMeas();
38 virtual void setTime(uint16 time);
39 virtual uint16 getTime();
40 virtual uint32 getDiscSize();
41 virtual uint16 getIOSpeed();
42 virtual uint16 getCount();
44 virtual void begin(); // initialize var for time count
45 virtual void end(); // calculate time & store it
46 virtual uint16 getProgress(); // returns value from 0 to 100
49 #endif