Rivendellaudio/rdadmin/add_feed.h
Fred Gleason de4c6b0c8c 2020-02-11 Fred Gleason <fredg@paravelsys tems.com>
* Added a check to the 'Add RSS Feed' dialog in rdadmin(1) to
	prevent creation of feeds with a blank name.
2020-02-11 17:03:09 -05:00

64 lines
1.6 KiB
C++

// add_feed.h
//
// Add a Rivendell Feed
//
// (C) Copyright 2002-2020 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// 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., 675 Mass Ave, Cambridge, MA 02139, USA.
//
#ifndef ADD_FEED_H
#define ADD_FEED_H
#include <qcheckbox.h>
#include <qcombobox.h>
#include <qlineedit.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <rddialog.h>
class AddFeed : public RDDialog
{
Q_OBJECT
public:
AddFeed(unsigned *id,QString *keyname,QWidget *parent=0);
~AddFeed();
QSize sizeHint() const;
QSizePolicy sizePolicy() const;
private slots:
void keynameChangedData(const QString &str);
void okData();
void cancelData();
protected:
void resizeEvent(QResizeEvent *e);
private:
QLabel *feed_keyname_label;
QLineEdit *feed_keyname_edit;
QLabel *feed_exemplar_label;
QComboBox *feed_exemplar_box;
QCheckBox *feed_users_box;
QLabel *feed_users_label;
QPushButton *feed_ok_button;
QPushButton *feed_cancel_button;
QString *feed_keyname;
unsigned *feed_id;
};
#endif // ADD_FEED_H