00001 // 00002 // aegis - project change supervisor 00003 // Copyright (C) 2005 Matthew Lee 00004 // Copyright (C) 2007, 2008 Peter Miller 00005 // 00006 // This program is free software; you can redistribute it and/or modify 00007 // it under the terms of the GNU General Public License as published by 00008 // the Free Software Foundation; either version 3 of the License, or 00009 // (at your option) any later version. 00010 // 00011 // This program is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 // GNU General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU General Public License 00017 // along with this program. If not, see 00018 // <http://www.gnu.org/licenses/>. 00019 // 00020 00021 #ifndef LIBAEGIS_RSS_H 00022 #define LIBAEGIS_RSS_H 00023 00024 #include <common/nstring.h> 00025 00026 struct project_ty; // forward 00027 00028 00033 enum rss_feed_attribute 00034 { 00035 rss_feed_description, 00036 rss_feed_title, 00037 rss_feed_language, 00038 }; 00039 00040 00045 extern const nstring rss_script_name_placeholder; 00046 00047 00077 nstring rss_feed_filename(project_ty *pp, const nstring &state); 00078 00100 nstring rss_feed_attribute(project_ty *pp, const nstring &filename, 00101 rss_feed_attribute attribute); 00102 00109 nstring rss_get_project_url(project_ty *pp); 00110 00122 void rss_add_item_by_change(project_ty *pp, change::pointer cp); 00123 00136 void rss_add_item(const nstring &filename, project_ty *pp, change::pointer cp); 00137 00138 #endif // LIBAEGIS_RSS_H