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 __tdeio_skip_dlg__ 00020 #define __tdeio_skip_dlg__ 00021 00022 #include <tdelibs_export.h> 00023 #include <kdialog.h> 00024 00025 class TQPushButton; 00026 class TQWidget; 00027 00028 namespace TDEIO { 00029 00030 enum SkipDlg_Result { S_SKIP = 1, S_AUTO_SKIP = 2, S_CANCEL = 0 }; 00031 00032 TDEIO_EXPORT SkipDlg_Result open_SkipDlg( bool _multi, const TQString& _error_text = TQString::null ); 00033 00037 class TDEIO_EXPORT SkipDlg : public KDialog 00038 { 00039 Q_OBJECT 00040 public: 00041 SkipDlg( TQWidget *parent, bool _multi, const TQString& _error_text, bool _modal = false ); 00042 ~SkipDlg(); 00043 00044 protected: 00045 TQPushButton *b0; 00046 TQPushButton *b1; 00047 TQPushButton *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