File indexing completed on 2025-01-05 04:29:36

0001 /*
0002  * dvbchanneldialog_p.h
0003  *
0004  * Copyright (C) 2007-2011 Christoph Pfister <christophpfister@gmail.com>
0005  *
0006  * This program is free software; you can redistribute it and/or modify
0007  * it under the terms of the GNU General Public License as published by
0008  * the Free Software Foundation; either version 2 of the License, or
0009  * (at your option) any later version.
0010  *
0011  * This program is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0014  * GNU General Public License for more details.
0015  *
0016  * You should have received a copy of the GNU General Public License along
0017  * with this program; if not, write to the Free Software Foundation, Inc.,
0018  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0019  */
0020 
0021 #ifndef DVBCHANNELDIALOG_P_H
0022 #define DVBCHANNELDIALOG_P_H
0023 
0024 #include <QDialog>
0025 #include "dvbchannel.h"
0026 
0027 class QCheckBox;
0028 class QSpinBox;
0029 class QComboBox;
0030 class QLineEdit;
0031 class DvbChannelTableModel;
0032 
0033 Q_DECLARE_METATYPE(QList<DvbSharedChannel>)
0034 
0035 class DvbChannelEditor : public QDialog
0036 {
0037 Q_OBJECT
0038 public:
0039     DvbChannelEditor(DvbChannelTableModel *model_, const DvbSharedChannel &channel_,
0040         QWidget *parent);
0041     ~DvbChannelEditor();
0042 
0043 private:
0044     void accept() override;
0045 
0046     DvbChannelTableModel *model;
0047     DvbSharedChannel channel;
0048     QLineEdit *nameEdit;
0049     QSpinBox *numberBox;
0050     QSpinBox *networkIdBox;
0051     QSpinBox *transportStreamIdBox;
0052     QSpinBox *serviceIdBox;
0053     QComboBox *audioStreamBox;
0054     QList<int> audioPids;
0055     QCheckBox *scrambledBox;
0056 
0057 signals:
0058     void channelPidsChanged(const DvbSharedChannel &channel);
0059 };
0060 
0061 #endif /* DVBCHANNELDIALOG_P_H */