home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / k3btempfile.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-05-27  |  1.3 KB  |  44 lines

  1. /* 
  2.  *
  3.  * $Id: sourceheader 511311 2006-02-19 14:51:05Z trueg $
  4.  * Copyright (C) 2006 Sebastian Trueg <trueg@k3b.org>
  5.  *
  6.  * This file is part of the K3b project.
  7.  * Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
  8.  *
  9.  * This program is free software; you can redistribute it and/or modify
  10.  * it under the terms of the GNU General Public License as published by
  11.  * the Free Software Foundation; either version 2 of the License, or
  12.  * (at your option) any later version.
  13.  * See the file "COPYING" for the exact licensing terms.
  14.  */
  15.  
  16. #ifndef _K3B_TEMP_FILE_H_
  17. #define _K3B_TEMP_FILE_H_
  18.  
  19. #include <ktempfile.h>
  20.  
  21. #include <k3b_export.h>
  22.  
  23. /**
  24.  * K3bTempFile does only change one thing over KTempFile:
  25.  * It tries to use a default temp dir which is always world-readable.
  26.  *
  27.  * This is important in the following situation:
  28.  *
  29.  * cdrecord often runs suid root. Some distributions like Mandriva
  30.  * set the default KDE temp dir to $HOME/tmp-$USER. Thus, if the home
  31.  * dir is mounted via NFS root has no read permissions htere and cdrecord
  32.  * fails to read the temp files.
  33.  */
  34. class LIBK3B_EXPORT K3bTempFile : public KTempFile
  35. {
  36.  public:
  37.   K3bTempFile( const QString& filePrefix = QString::null, 
  38.            const QString& fileExtension = QString::null, 
  39.            int mode = 0600 );
  40.   ~K3bTempFile();
  41. };
  42.  
  43. #endif
  44.