/*
 * dvbchanneldialog_p.h
 *
 * Copyright (C) 2007-2011 Christoph Pfister <christophpfister@gmail.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#ifndef DVBCHANNELDIALOG_P_H
#define DVBCHANNELDIALOG_P_H

#include <QDialog>
#include "dvbchannel.h"

class QCheckBox;
class QSpinBox;
class QComboBox;
class QLineEdit;
class DvbChannelTableModel;

Q_DECLARE_METATYPE(QList<DvbSharedChannel>)

class DvbChannelEditor : public QDialog
{
Q_OBJECT
public:
	DvbChannelEditor(DvbChannelTableModel *model_, const DvbSharedChannel &channel_,
		QWidget *parent);
	~DvbChannelEditor();

private:
	void accept() override;

	DvbChannelTableModel *model;
	DvbSharedChannel channel;
	QLineEdit *nameEdit;
	QSpinBox *numberBox;
	QSpinBox *networkIdBox;
	QSpinBox *transportStreamIdBox;
	QSpinBox *serviceIdBox;
	QComboBox *audioStreamBox;
	QList<int> audioPids;
	QCheckBox *scrambledBox;

signals:
	void channelPidsChanged(const DvbSharedChannel &channel);
};

#endif /* DVBCHANNELDIALOG_P_H */
