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 / kio / skipdlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-10  |  1.5 KB  |  62 lines

  1. /* This file is part of the KDE libraries
  2.    Copyright (C) 2000 David Faure <faure@kde.org>
  3.  
  4.    This library is free software; you can redistribute it and/or
  5.    modify it under the terms of the GNU Library General Public
  6.    License version 2 as published by the Free Software Foundation.
  7.  
  8.    This library is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  11.    Library General Public License for more details.
  12.  
  13.    You should have received a copy of the GNU Library General Public License
  14.    along with this library; see the file COPYING.LIB.  If not, write to
  15.    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  16.    Boston, MA 02110-1301, USA.
  17. */
  18.  
  19. #ifndef __kio_skip_dlg__
  20. #define __kio_skip_dlg__
  21.  
  22. #include <kdelibs_export.h>
  23. #include <kdialog.h>
  24.  
  25. class QPushButton;
  26. class QWidget;
  27.  
  28. namespace KIO {
  29.  
  30.   enum SkipDlg_Result { S_SKIP = 1, S_AUTO_SKIP = 2, S_CANCEL = 0 };
  31.  
  32.   KIO_EXPORT SkipDlg_Result open_SkipDlg( bool _multi, const QString& _error_text = QString::null );
  33.  
  34. /**
  35.  * @internal
  36.  */
  37. class KIO_EXPORT SkipDlg : public KDialog
  38. {
  39.   Q_OBJECT
  40. public:
  41.   SkipDlg( QWidget *parent, bool _multi, const QString& _error_text, bool _modal = false );
  42.   ~SkipDlg();
  43.  
  44. protected:
  45.   QPushButton *b0;
  46.   QPushButton *b1;
  47.   QPushButton *b2;
  48.  
  49.   bool modal;
  50.  
  51. public slots:
  52.   void b0Pressed();
  53.   void b1Pressed();
  54.   void b2Pressed();
  55.  
  56. signals:
  57.   void result( SkipDlg *_this, int _button );
  58. };
  59.  
  60. }
  61. #endif
  62.