disable the unrecognized nls and x flags
[AROS-Contrib.git] / FryingPan / DTLib / rSplitISOData.h
blob2f375ceca6a972a9a390045bdc8f73b0b951e580
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 _R_SPLITISODATA_H_
21 #define _R_SPLITISODATA_H_
23 #include <Generic/LibrarySpool.h>
24 #include "IFileReader.h"
25 #include <Generic/HookT.h>
26 #include <Generic/DynList.h>
27 #include <Optical/IOptItem.h>
28 #include <Generic/String.h>
29 #include <Generic/VectorT.h>
30 #include "DTLib.h"
32 class rSplitISOData : public IFileReader
34 struct PartDescriptor
36 String fileName;
37 String md5sum;
38 uint32 sectors;
41 protected:
42 String sFileName;
43 IOptItem *item;
44 uint64 sector_count;
45 uint16 sector_size;
46 int32 num_parts;
47 VectorT<PartDescriptor*> descs;
49 BPTR current_file;
50 uint32 current_pos;
51 uint32 current_size;
52 uint16 current_elem;
53 protected:
54 rSplitISOData(const char* sFileName, EDtError &rc);
55 virtual ~rSplitISOData();
56 bool readDescriptor(EDtError &rc);
57 bool validatePart(PartDescriptor *pdesc);
58 public:
59 static IFileReader *openRead(const char* sFile, EDtError &rc);
60 static bool checkFile(const char* sFile, EDtError &rc);
62 virtual const char *getName();
63 virtual bool isAudio();
64 virtual bool isData();
66 static bool static_isAudio();
67 static bool static_isData();
68 static bool static_isSession();
69 static const char *static_getName();
71 virtual const char* getTrackName();
72 virtual bool readData(const IOptItem*, void* pBuff, int pLen);
73 virtual bool setUp();
74 virtual void cleanUp();
75 virtual void dispose();
76 virtual unsigned long getBlockCount();
77 virtual unsigned short getBlockSize();
78 virtual bool fillOptItem(IOptItem *item);
81 #endif /*RAWAUDIO_H_*/