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 / k3bclonejob.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-05-27  |  2.5 KB  |  100 lines

  1. /* 
  2.  *
  3.  * $Id: k3bclonejob.h 619556 2007-01-03 17:38:12Z trueg $
  4.  * Copyright (C) 2003 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_CLONE_JOB_H_
  17. #define _K3B_CLONE_JOB_H_
  18.  
  19. #include <k3bjob.h>
  20. #include "k3b_export.h"
  21. #include <qstring.h>
  22.  
  23.  
  24. namespace K3bDevice {
  25.   class Device;
  26. }
  27. class K3bCdrecordWriter;
  28. class K3bReadcdReader;
  29.  
  30.  
  31. class LIBK3B_EXPORT K3bCloneJob : public K3bBurnJob
  32. {
  33.   Q_OBJECT
  34.  
  35.  public:
  36.   K3bCloneJob( K3bJobHandler*, QObject* parent = 0, const char* name = 0 );
  37.   ~K3bCloneJob();
  38.  
  39.   K3bDevice::Device* writer() const { return m_writerDevice; }
  40.   K3bDevice::Device* readingDevice() const { return m_readerDevice; }
  41.  
  42.   QString jobDescription() const;
  43.   QString jobDetails() const;
  44.  
  45.  public slots:
  46.   void start();
  47.   void cancel();
  48.  
  49.   void setWriterDevice( K3bDevice::Device* w ) { m_writerDevice = w; }
  50.   void setReaderDevice( K3bDevice::Device* w ) { m_readerDevice = w; }
  51.   void setImagePath( const QString& p ) { m_imagePath = p; }
  52.   void setNoCorrection( bool b ) { m_noCorrection = b; }
  53.   void setRemoveImageFiles( bool b ) { m_removeImageFiles = b; }
  54.   void setOnlyCreateImage( bool b ) { m_onlyCreateImage = b; }
  55.   void setOnlyBurnExistingImage( bool b ) { m_onlyBurnExistingImage = b; }
  56.   void setSimulate( bool b ) { m_simulate = b; }
  57.   void setWriteSpeed( int s ) { m_speed = s; }
  58.   void setCopies( int c ) { m_copies = c; }
  59.   void setReadRetries( int i ) { m_readRetries = i; }
  60.  
  61.  private slots:
  62.   void slotWriterPercent( int );
  63.   void slotWriterFinished( bool );
  64.   void slotWriterNextTrack( int, int );
  65.   void slotReadingPercent( int );
  66.   void slotReadingFinished( bool );
  67.  
  68.  private:
  69.   void removeImageFiles();
  70.   void prepareReader();
  71.   void prepareWriter();
  72.   void startWriting();
  73.  
  74.   K3bDevice::Device* m_writerDevice;
  75.   K3bDevice::Device* m_readerDevice;
  76.   QString m_imagePath;
  77.  
  78.   K3bCdrecordWriter* m_writerJob;
  79.   K3bReadcdReader* m_readcdReader;
  80.  
  81.   bool m_noCorrection;
  82.   bool m_removeImageFiles;
  83.  
  84.   bool m_canceled;
  85.   bool m_running;
  86.  
  87.   bool m_simulate;
  88.   int m_speed;
  89.   int m_copies;
  90.   bool m_onlyCreateImage;
  91.   bool m_onlyBurnExistingImage;
  92.   int m_readRetries;
  93.  
  94.   class Private;
  95.   Private* d;
  96. };
  97.  
  98.  
  99. #endif
  100.