skipdlg.h

00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2000 David Faure <faure@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016    Boston, MA 02110-1301, USA.
00017 */
00018 
00019 #ifndef __kio_skip_dlg__
00020 #define __kio_skip_dlg__
00021 
00022 #include <kdelibs_export.h>
00023 #include <kdialog.h>
00024 
00025 class QPushButton;
00026 class QWidget;
00027 
00028 namespace KIO {
00029 
00030   enum SkipDlg_Result { S_SKIP = 1, S_AUTO_SKIP = 2, S_CANCEL = 0 };
00031 
00032   KIO_EXPORT SkipDlg_Result open_SkipDlg( bool _multi, const QString& _error_text = QString::null );
00033 
00037 class KIO_EXPORT SkipDlg : public KDialog
00038 {
00039   Q_OBJECT
00040 public:
00041   SkipDlg( QWidget *parent, bool _multi, const QString& _error_text, bool _modal = false );
00042   ~SkipDlg();
00043 
00044 protected:
00045   QPushButton *b0;
00046   QPushButton *b1;
00047   QPushButton *b2;
00048 
00049   bool modal;
00050 
00051 public slots:
00052   void b0Pressed();
00053   void b1Pressed();
00054   void b2Pressed();
00055 
00056 signals:
00057   void result( SkipDlg *_this, int _button );
00058 };
00059 
00060 }
00061 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys