File indexing completed on 2024-04-21 04:50:09

0001 /* 
0002     SPDX-FileCopyrightText: 1998-2007 Sebastian Trueg <trueg@k3b.org>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef _K3B_DATAMODE_WIDGET_H_
0007 #define _K3B_DATAMODE_WIDGET_H_
0008 
0009 #include <KConfigGroup>
0010 
0011 #include <QComboBox>
0012 
0013 
0014 namespace K3b {
0015 class DataModeWidget : public QComboBox
0016 {
0017   Q_OBJECT
0018 
0019  public:
0020   explicit DataModeWidget( QWidget* parent = 0 );
0021   ~DataModeWidget() override;
0022 
0023   /**
0024    * returns K3b::DataMode
0025    */
0026   int dataMode() const;
0027 
0028   void saveConfig( KConfigGroup );
0029   void loadConfig( const KConfigGroup& );
0030 
0031  public Q_SLOTS:
0032   void setDataMode( int );
0033 };
0034 }
0035 
0036 #endif