// add_feed.h // // Add a Rivendell Feed // // (C) Copyright 2002-2007,2016 Fred Gleason // // 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 #include #include // // Default XML Templates // #define DEFAULT_HEADER_XML "\n" #define DEFAULT_CHANNEL_XML "%TITLE%\n%DESCRIPTION%\n%CATEGORY%\n%LINK%\n%LANGUAGE%\n%COPYRIGHT%\n%BUILD_DATE%\n%PUBLISH_DATE%\n%WEBMASTER%\n%GENERATOR%" #define DEFAULT_ITEM_XML "%ITEM_TITLE%\n%ITEM_LINK%\n%ITEM_GUID%\n%ITEM_DESCRIPTION%\n%ITEM_AUTHOR%\n%ITEM_COMMENTS%\n%ITEM_SOURCE_TEXT%\n\n%ITEM_CATEGORY%\n%ITEM_PUBLISH_DATE%" class AddFeed : public QDialog { Q_OBJECT public: AddFeed(unsigned *id,QString *keyname,QWidget *parent=0); ~AddFeed(); QSize sizeHint() const; QSizePolicy sizePolicy() const; private slots: void okData(); void cancelData(); private: QCheckBox *feed_users_box; QLineEdit *feed_keyname_edit; QString *feed_keyname; unsigned *feed_id; }; #endif // ADD_FEED_H