mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-01 14:20:11 +01:00
2020-02-11 Fred Gleason <fredg@paravelsys tems.com>
* Added an 'RDFeed::create()' method. * Added a 'Base Feed On' dropdown to the 'Add RSS Feed' dialog in rdadmin(1).
This commit is contained in:
@@ -22,33 +22,38 @@
|
||||
#define ADD_FEED_H
|
||||
|
||||
#include <qcheckbox.h>
|
||||
#include <qcombobox.h>
|
||||
#include <qlineedit.h>
|
||||
#include <qlabel.h>
|
||||
#include <qpushbutton.h>
|
||||
|
||||
#include <rddialog.h>
|
||||
|
||||
//
|
||||
// Default XML Templates
|
||||
//
|
||||
#define DEFAULT_HEADER_XML "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\">"
|
||||
#define DEFAULT_CHANNEL_XML "<title>%TITLE%</title>\n<description>%DESCRIPTION%</description>\n<category>%CATEGORY%</category>\n<link>%LINK%</link>\n<language>%LANGUAGE%</language>\n<copyright>%COPYRIGHT%</copyright>\n<lastBuildDate>%BUILD_DATE%</lastBuildDate>\n<pubDate>%PUBLISH_DATE%</pubDate>\n<webMaster>%WEBMASTER%</webMaster>\n<generator>%GENERATOR%</generator>"
|
||||
#define DEFAULT_ITEM_XML "<title>%ITEM_TITLE%</title>\n<link>%ITEM_LINK%</link>\n<guid isPermaLink=\"false\">%ITEM_GUID%</guid>\n<description>%ITEM_DESCRIPTION%</description>\n<author>%ITEM_AUTHOR%</author>\n<comments>%ITEM_COMMENTS%</comments>\n<source url=\"%ITEM_SOURCE_URL%\">%ITEM_SOURCE_TEXT%</source>\n<enclosure url=\"%ITEM_AUDIO_URL%\" length=\"%ITEM_AUDIO_LENGTH%\" type=\"audio/mpeg\" />\n<category>%ITEM_CATEGORY%</category>\n<pubDate>%ITEM_PUBLISH_DATE%</pubDate>"
|
||||
|
||||
class AddFeed : public RDDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
AddFeed(unsigned *id,QString *keyname,QWidget *parent=0);
|
||||
~AddFeed();
|
||||
QSize sizeHint() const;
|
||||
QSizePolicy sizePolicy() const;
|
||||
public:
|
||||
AddFeed(unsigned *id,QString *keyname,QWidget *parent=0);
|
||||
~AddFeed();
|
||||
QSize sizeHint() const;
|
||||
QSizePolicy sizePolicy() const;
|
||||
|
||||
private slots:
|
||||
void okData();
|
||||
void cancelData();
|
||||
private slots:
|
||||
void okData();
|
||||
void cancelData();
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent *e);
|
||||
|
||||
private:
|
||||
QCheckBox *feed_users_box;
|
||||
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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user