35 else if (p_fresh)
return p_old_stats!= p_new_stats;
36 else return p_old_stats.m_timestamp < p_new_stats.m_timestamp;
48 metadb_info_container::ptr
info, browse;
50 if (info.is_valid() && browse.is_valid()) {
51 infoMerged = info->info();
53 }
else if (info.is_valid()) {
54 infoMerged = info->info();
55 }
else if (browse.is_valid()) {
56 infoMerged = browse->info();
71 t_filestats
const & stats() {
74 bool isInfoPartial() {
87 metadb_info_container::ptr
info;
89 if (!info->isInfoPartial())
return info;
94 input_info_reader::ptr reader;
98 obj->m_stats = reader->get_file_stats( aborter );
Template implementing reference-counting features of service_base. Intended for dynamic instantiation...
void info(const char *p_message)
static const t_filestats filestats_invalid
Invalid/unknown file stats constant. See: t_filestats.
void merge_fallback(const file_info &fallback)
static void g_open_for_info_read(service_ptr_t< input_info_reader > &p_instance, service_ptr_t< file > p_filehint, const char *p_path, abort_callback &p_abort, bool p_from_redirect=false)
const t_filetimestamp filetimestamp_invalid
Invalid/unknown file timestamp constant. Also see: t_filetimestamp.
Main interface class for information about some playable object.
This is free and unencumbered software released into the public domain Anyone is free to compile
t_uint64 t_filetimestamp
Type used for file timestamp related variables. 64-bit value representing the number of 100-nanosecon...
t_uint64 t_filesize
Type used for file size related variables.
Helper template used to easily access core services. Usage: static_api_ptr_t<myclass> api; api->doso...