1
/***************************************************************************
2
qfilehack.h - description
4
begin : Tue Oct 29 2002
5
copyright : (C) 2002 by Szombathelyi Gy�rgy
6
email : gyurco@users.sourceforge.net
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
1
/*****************************************************************************
2
* Copyright (C) 2002 Szombathelyi György <gyurco@users.sourceforge.net> *
4
* This program is free software; you can redistribute it and/or modify *
5
* it under the terms of the GNU General Public License as published by *
6
* the Free Software Foundation; either version 2 of the License, or *
7
* (at your option) any later version. *
9
* This package is distributed in the hope that it will be useful, *
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12
* GNU General Public License for more details. *
14
* You should have received a copy of the GNU General Public License *
15
* along with this package; if not, write to the Free Software *
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
17
*****************************************************************************/
18
19
#ifndef QFILEHACK_H
19
20
#define QFILEHACK_H
22
#include <QtCore/QFile>
23
#include <QtCore/QString>
25
*@author Szombathelyi Gy�rgy
26
* Qt thinks if a file is not S_IFREG, you cannot seek in it. It's false (what about
27
* block devices for example?
30
class QFileHack : public QFile {
26
* Qt thinks if a file is not S_IFREG, you cannot seek in it.
27
* It's false (what about block devices for example ?)
29
class QFileHack : public QFile
33
QFileHack( const QString & name );
33
QFileHack(const QString & name);
35
virtual bool open ( QFile::OpenMode m );
35
virtual bool open(QFile::OpenMode m);