foobar2000 SDK  2015-08-03
Public Member Functions | Private Member Functions
foobar2000_io::file_dynamicinfoabstract

#include <filesystem.h>

+ Inheritance diagram for foobar2000_io::file_dynamicinfo:

Public Member Functions

virtual bool get_dynamic_info (class file_info &p_out)=0
 
virtual bool get_static_info (class file_info &p_out)=0
 
virtual bool is_dynamic_info_enabled ()=0
 
- Public Member Functions inherited from foobar2000_io::file
virtual bool can_seek ()=0
 
void ensure_local ()
 
void ensure_seekable ()
 
 FB2K_MAKE_SERVICE_INTERFACE (file, service_base)
 
virtual bool get_content_type (pfc::string_base &p_out)=0
 
virtual t_filesize get_position (abort_callback &p_abort)=0
 
t_filesize get_remaining (abort_callback &p_abort)
 
virtual t_filesize get_size (abort_callback &p_abort)=0
 
t_filesize get_size_ex (abort_callback &p_abort)
 
t_filestats get_stats (abort_callback &p_abort)
 
virtual t_filetimestamp get_timestamp (abort_callback &p_abort)
 
bool is_eof (abort_callback &p_abort)
 
virtual bool is_in_memory ()
 
virtual bool is_remote ()=0
 
virtual void on_idle (abort_callback &p_abort)
 
void probe_remaining (t_filesize bytes, abort_callback &p_abort)
 
virtual void reopen (abort_callback &p_abort)=0
 
virtual void resize (t_filesize p_size, abort_callback &p_abort)=0
 
virtual void seek (t_filesize p_position, abort_callback &p_abort)=0
 
virtual void seek_ex (t_sfilesize p_position, t_seek_mode p_mode, abort_callback &p_abort)
 
void seek_probe (t_filesize p_position, abort_callback &p_abort)
 
void set_eof (abort_callback &p_abort)
 
t_filesize skip (t_filesize p_bytes, abort_callback &p_abort)
 
t_filesize skip_seek (t_filesize p_bytes, abort_callback &p_abort)
 
void truncate (t_filesize p_position, abort_callback &p_abort)
 
- Public Member Functions inherited from service_base
template<typename outPtr_t >
bool cast (outPtr_t &outPtr)
 
virtual int service_add_ref ()=0 throw ()
 
virtual bool service_query (service_ptr_t< service_base > &p_out, const GUID &p_guid)
 
template<class T >
bool service_query_t (service_ptr_t< T > &p_out)
 
virtual int service_release ()=0 throw ()
 
- Public Member Functions inherited from foobar2000_io::stream_reader
virtual t_size read (void *p_buffer, t_size p_bytes, abort_callback &p_abort)=0
 
template<typename T >
void read_bendian_t (T &p_object, abort_callback &p_abort)
 
template<typename T >
void read_lendian_t (T &p_object, abort_callback &p_abort)
 
virtual void read_object (void *p_buffer, t_size p_bytes, abort_callback &p_abort)
 
template<typename T >
void read_object_t (T &p_object, abort_callback &p_abort)
 
void read_string (pfc::string_base &p_out, abort_callback &p_abort)
 
pfc::string read_string (abort_callback &p_abort)
 
void read_string_ex (pfc::string_base &p_out, t_size p_bytes, abort_callback &p_abort)
 
pfc::string read_string_ex (t_size p_len, abort_callback &p_abort)
 
void read_string_nullterm (pfc::string_base &out, abort_callback &abort)
 
void read_string_raw (pfc::string_base &p_out, abort_callback &p_abort)
 
template<typename t_outArray >
void read_till_eof (t_outArray &out, abort_callback &abort)
 
virtual void skip_object (t_filesize p_bytes, abort_callback &p_abort)
 
t_filesize skip_till_eof (abort_callback &abort)
 
- Public Member Functions inherited from foobar2000_io::stream_writer
virtual void write (const void *p_buffer, t_size p_bytes, abort_callback &p_abort)=0
 
template<typename T >
void write_bendian_t (const T &p_object, abort_callback &p_abort)
 
template<typename T >
void write_lendian_t (const T &p_object, abort_callback &p_abort)
 
void write_object (const void *p_buffer, t_size p_bytes, abort_callback &p_abort)
 
template<typename T >
void write_object_t (const T &p_object, abort_callback &p_abort)
 
void write_string (const char *p_string, abort_callback &p_abort)
 
void write_string (const char *p_string, t_size p_len, abort_callback &p_abort)
 
template<typename T >
void write_string (const T &val, abort_callback &p_abort)
 
void write_string_nullterm (const char *p_string, abort_callback &p_abort)
 
void write_string_raw (const char *p_string, abort_callback &p_abort)
 

Private Member Functions

 FB2K_MAKE_SERVICE_INTERFACE (file_dynamicinfo, file)
 

Additional Inherited Members

- Public Types inherited from foobar2000_io::file
enum  t_seek_mode { seek_from_beginning = 0, seek_from_current = 1, seek_from_eof = 2 }
 
- Public Types inherited from service_base
typedef service_base t_interface
 
- Static Public Member Functions inherited from foobar2000_io::file
static t_filesize g_transfer (stream_reader *src, stream_writer *dst, t_filesize bytes, abort_callback &p_abort)
 
static t_filesize g_transfer (service_ptr_t< file > p_src, service_ptr_t< file > p_dst, t_filesize p_bytes, abort_callback &p_abort)
 
static void g_transfer_file (const service_ptr_t< file > &p_from, const service_ptr_t< file > &p_to, abort_callback &p_abort)
 
static void g_transfer_object (stream_reader *src, stream_writer *dst, t_filesize bytes, abort_callback &p_abort)
 
static void g_transfer_object (service_ptr_t< file > p_src, service_ptr_t< file > p_dst, t_filesize p_bytes, abort_callback &p_abort)
 
- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 
- Protected Member Functions inherited from foobar2000_io::stream_reader
 stream_reader ()
 
 ~stream_reader ()
 
- Protected Member Functions inherited from foobar2000_io::stream_writer
 stream_writer ()
 
 ~stream_writer ()
 

Detailed Description

Extension for shoutcast dynamic metadata handling.

Definition at line 327 of file filesystem.h.

Member Function Documentation

foobar2000_io::file_dynamicinfo::FB2K_MAKE_SERVICE_INTERFACE ( file_dynamicinfo  ,
file   
)
private
virtual bool foobar2000_io::file_dynamicinfo::get_dynamic_info ( class file_info p_out)
pure virtual

Retrieves dynamic stream info (e.g. online stream track titles). Returns true on success, false when info has not changed since last call.

virtual bool foobar2000_io::file_dynamicinfo::get_static_info ( class file_info p_out)
pure virtual

Retrieves "static" info that doesn't change in the middle of stream, such as station names etc. Returns true on success; false when static info is not available.

virtual bool foobar2000_io::file_dynamicinfo::is_dynamic_info_enabled ( )
pure virtual

Returns whether dynamic info is available on this stream or not.


The documentation for this class was generated from the following file: