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 / k3bsimplejobhandler.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-05-27  |  1.6 KB  |  62 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_SIMPLE_JOB_HANDLER_H_
  17. #define _K3B_SIMPLE_JOB_HANDLER_H_
  18.  
  19. #include <k3b_export.h>
  20.  
  21. #include <qobject.h>
  22. #include <k3bjobhandler.h>
  23.  
  24.  
  25. /**
  26.  * This is a simplified job handler which just consumes the
  27.  * job handler calls without doing anything.
  28.  * Use it for very simple jobs that don't need the job handler
  29.  * methods.
  30.  */
  31. class LIBK3B_EXPORT K3bSimpleJobHandler : public QObject, public K3bJobHandler
  32. {
  33.   Q_OBJECT
  34.  
  35.  public:
  36.   K3bSimpleJobHandler( QObject* parent = 0 );
  37.   ~K3bSimpleJobHandler();
  38.  
  39.   /*
  40.    * \return 0
  41.    */
  42.   int waitForMedia( K3bDevice::Device*,
  43.             int mediaState = K3bDevice::STATE_EMPTY,
  44.             int mediaType = K3bDevice::MEDIA_WRITABLE_CD,
  45.             const QString& message = QString::null );
  46.   /**
  47.    * \return true
  48.    */
  49.   bool questionYesNo( const QString& text,
  50.               const QString& caption = QString::null,
  51.               const QString& yesText = QString::null,
  52.               const QString& noText = QString::null );
  53.  
  54.   /**
  55.    * Does nothing
  56.    */
  57.   void blockingInformation( const QString& text,
  58.                 const QString& caption = QString::null );
  59. };
  60.  
  61. #endif
  62.