~ubuntu-branches/ubuntu/vivid/krusader/vivid-proposed

« back to all changes in this revision

Viewing changes to iso/qfilehack.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-05-05 22:26:37 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505222637-ydv3cwjwy365on2r
Tags: 1:2.1.0~beta1-1ubuntu1
* Merge from Debian Unstable.  Remaining changes:
  - Retain Kubuntu doc path

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
                          qfilehack.h  -  description
3
 
                             -------------------
4
 
    begin                : Tue Oct 29 2002
5
 
    copyright            : (C) 2002 by Szombathelyi Gy�rgy
6
 
    email                : gyurco@users.sourceforge.net
7
 
 ***************************************************************************/
8
 
 
9
 
/***************************************************************************
10
 
 *                                                                         *
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.                                   *
15
 
 *                                                                         *
16
 
 ***************************************************************************/
 
1
/*****************************************************************************
 
2
 * Copyright (C) 2002 Szombathelyi György <gyurco@users.sourceforge.net>     *
 
3
 *                                                                           *
 
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.                                       *
 
8
 *                                                                           *
 
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.                              *
 
13
 *                                                                           *
 
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
 *****************************************************************************/
17
18
 
18
19
#ifndef QFILEHACK_H
19
20
#define QFILEHACK_H
20
21
 
21
 
#include <qfile.h>
22
 
#include <qstring.h>
 
22
#include <QtCore/QFile>
 
23
#include <QtCore/QString>
23
24
 
24
25
/**
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?
28
 
  */
29
 
 
30
 
class QFileHack : public QFile  {
31
 
public: 
 
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 ?)
 
28
 */
 
29
class QFileHack : public QFile
 
30
{
 
31
public:
32
32
    QFileHack();
33
 
    QFileHack( const QString & name );
 
33
    QFileHack(const QString & name);
34
34
    ~QFileHack();
35
 
    virtual bool open ( QFile::OpenMode m );
 
35
    virtual bool open(QFile::OpenMode m);
36
36
};
37
37
 
38
38
#endif