2013-04-29 09:23:34 +04:00
|
|
|
/*
|
|
|
|
grive: an GPL program to sync a local directory with Google Drive
|
|
|
|
Copyright (C) 2012 Wan Wai Ho
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation version 2
|
|
|
|
of the License.
|
|
|
|
|
|
|
|
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
2015-05-17 16:54:04 +03:00
|
|
|
#include "Feed.hh"
|
2013-04-29 09:23:34 +04:00
|
|
|
|
2015-05-17 16:54:04 +03:00
|
|
|
#include "Entry.hh"
|
2013-04-29 09:23:34 +04:00
|
|
|
|
2015-05-17 16:54:04 +03:00
|
|
|
#include "http/Agent.hh"
|
2013-04-29 09:23:34 +04:00
|
|
|
|
2015-05-17 16:54:04 +03:00
|
|
|
namespace gr {
|
|
|
|
|
|
|
|
Feed::Feed( const std::string &url ):
|
|
|
|
m_next( url )
|
2013-04-29 09:23:34 +04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2019-02-10 01:01:00 +03:00
|
|
|
Feed::~Feed()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-05-17 16:54:04 +03:00
|
|
|
Feed::iterator Feed::begin() const
|
|
|
|
{
|
|
|
|
return m_entries.begin() ;
|
|
|
|
}
|
2013-04-29 09:23:34 +04:00
|
|
|
|
2015-05-17 16:54:04 +03:00
|
|
|
Feed::iterator Feed::end() const
|
2013-04-29 09:23:34 +04:00
|
|
|
{
|
2015-05-17 16:54:04 +03:00
|
|
|
return m_entries.end() ;
|
|
|
|
}
|
2013-04-29 09:23:34 +04:00
|
|
|
|
2015-05-17 16:54:04 +03:00
|
|
|
} // end of namespace gr::v1
|