File indexing completed on 2024-05-05 04:48:24

0001 /****************************************************************************************
0002  * Copyright (c) 2005 Martin Aumueller <aumuell@reserv.at>                              *
0003  * Copyright (c) 2006 Jeff Mitchell <kde-dev@emailgoeshere.com>                         *
0004  *                                                                                      *
0005  * This program is free software; you can redistribute it and/or modify it under        *
0006  * the terms of the GNU General Public License as published by the Free Software        *
0007  * Foundation; either version 2 of the License, or (at your option) any later           *
0008  * version.                                                                             *
0009  *                                                                                      *
0010  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
0011  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
0012  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
0013  *                                                                                      *
0014  * You should have received a copy of the GNU General Public License along with         *
0015  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
0016  ****************************************************************************************/
0017 
0018 #ifndef DEVICECONFIGUREDIALOG_H
0019 #define DEVICECONFIGUREDIALOG_H
0020 
0021 #include <QDialog>
0022 
0023 class HintLineEdit;
0024 class MediaDevice;
0025 class QCheckBox;
0026 class QRadioButton;
0027 
0028 /**
0029     @author Jeff Mitchell <kde-dev@emailgoeshere.com>
0030 */
0031 class DeviceConfigureDialog : public QDialog
0032 {
0033     Q_OBJECT
0034 
0035     public:
0036         explicit DeviceConfigureDialog( MediaDevice *device );
0037         virtual ~DeviceConfigureDialog();
0038         bool successful() const { return m_accepted; }
0039 
0040     private:
0041         bool            m_accepted;
0042         MediaDevice     *m_device;
0043 
0044         HintLineEdit    *m_connectEdit;
0045         HintLineEdit    *m_disconnectEdit;
0046         QCheckBox       *m_transcodeCheck;
0047         QRadioButton    *m_transcodeAlways;
0048         QRadioButton    *m_transcodeWhenNecessary;
0049         QCheckBox       *m_transcodeRemove;
0050 
0051 };
0052 
0053 #endif