disable the unrecognized nls and x flags
[AROS-Contrib.git] / FryingPan / DTLib / FileWriter.h
blobd432bb2e6df9359730961f6dcff28f42953ba118
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 FILEWRITER_H_
21 #define FILEWRITER_H_
23 #include <Generic/LibrarySpool.h>
24 #include <Optical/IOptItem.h>
25 #include <dos/dos.h>
26 #include "IFileWriter.h"
27 #include <Generic/String.h>
28 #include "DTLib.h"
30 class FileWriter : public IFileWriter
32 private:
33 BPTR fh;
34 String sFileName;
35 bool isLE;
36 unsigned short sectorSize;
37 unsigned long sectorCount;
39 protected:
40 FileWriter(const char* sFileName, EDtError &rc);
42 BPTR getFile();
43 const char* getFileName();
45 void setLittleEndian(bool isLittle);
46 public: // non pure-virtual
47 virtual ~FileWriter();
48 virtual bool writeData(void* pBuff, int len);
49 virtual bool setUp();
50 virtual void cleanUp();
51 virtual const char *getTrackName();
52 virtual void dispose();
53 virtual unsigned short getBlockSize();
54 virtual unsigned long getBlockCount();
55 virtual void deleteFiles();
56 virtual void setBlockSize(unsigned short size);
57 virtual void setBlockCount(unsigned long count);
60 #endif /*FILEREADER_H_*/
61 // vim: ts=3 et