Aegis  4.25.D505
/home/archives/aegis/branch.4/branch.25/delta28933.505/libaegis/rss.h
Go to the documentation of this file.
00001 //
00002 //      aegis - project change supervisor
00003 //      Copyright (C) 2005 Matthew Lee
00004 //      Copyright (C) 2007, 2008, 2011, 2012 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; // 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 *pp, const nstring &state);
00078 
00101 nstring rss_feed_attribute(project *pp, const nstring &filename,
00102     rss_feed_attribute attribute);
00103 
00110 nstring rss_get_project_url(project *pp);
00111 
00123 void rss_add_item_by_change(project *pp, change::pointer cp);
00124 
00137 void rss_add_item(const nstring &filename, project *pp, change::pointer cp);
00138 
00139 #endif // LIBAEGIS_RSS_H
00140 // vim: set ts=8 sw=4 et :