mirror of https://github.com/vitalif/grive2
commit
a295641cb0
|
@ -9,7 +9,18 @@ message(WARNING "Version to build: ${GRIVE_VERSION}")
|
|||
# common compile options
|
||||
add_definitions( -DVERSION="${GRIVE_VERSION}" )
|
||||
add_definitions( -D_FILE_OFFSET_BITS=64 -std=c++0x )
|
||||
if ( APPLE )
|
||||
add_definitions( -Doff64_t=off_t )
|
||||
endif ( APPLE )
|
||||
|
||||
find_program(
|
||||
HAVE_SYSTEMD systemd
|
||||
PATHS /lib/systemd /usr/lib/systemd
|
||||
NO_DEFAULT_PATH
|
||||
)
|
||||
if ( HAVE_SYSTEMD )
|
||||
add_subdirectory( systemd )
|
||||
endif( HAVE_SYSTEMD )
|
||||
|
||||
add_subdirectory( systemd )
|
||||
add_subdirectory( libgrive )
|
||||
add_subdirectory( grive )
|
||||
|
|
|
@ -30,6 +30,10 @@ Feed::Feed( const std::string &url ):
|
|||
{
|
||||
}
|
||||
|
||||
Feed::~Feed()
|
||||
{
|
||||
}
|
||||
|
||||
Feed::iterator Feed::begin() const
|
||||
{
|
||||
return m_entries.begin() ;
|
||||
|
|
|
@ -41,6 +41,7 @@ public :
|
|||
public :
|
||||
Feed( const std::string& url );
|
||||
virtual bool GetNext( http::Agent *http ) = 0 ;
|
||||
virtual ~Feed() = 0 ;
|
||||
iterator begin() const ;
|
||||
iterator end() const ;
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@ Feed2::Feed2( const std::string& url ):
|
|||
{
|
||||
}
|
||||
|
||||
Feed2::~Feed2()
|
||||
{
|
||||
}
|
||||
|
||||
bool Feed2::GetNext( http::Agent *http )
|
||||
{
|
||||
if ( m_next.empty() )
|
||||
|
|
|
@ -31,6 +31,7 @@ class Feed2: public Feed
|
|||
{
|
||||
public :
|
||||
Feed2( const std::string& url ) ;
|
||||
~Feed2() ;
|
||||
bool GetNext( http::Agent *http ) ;
|
||||
} ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue