Ubuntu TV Media Scanner
A centralized index for removable media content.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | List of all members
mediascanner::MediaRootManager Class Reference

#include <mediascanner/mediaroot.h>

Classes

class  Listener
 

Public Member Functions

 MediaRootManager ()
 
 ~MediaRootManager ()
 
void initialize ()
 Explicitly runs the initializer instead of waiting for the main loop to trigger initialization. More...
 
void add_listener (Listener *listener)
 
void remove_listener (Listener *listener)
 
std::vector< MediaRootmedia_roots () const
 
MediaRoot AddRelativeRoot (const std::string &relative_path)
 
void AddManualRoot (const std::string &path)
 
std::vector< std::string > manual_roots () const
 
void set_enabled (bool enabled)
 
bool enabled () const
 
MediaRoot make_root (const std::string &path) const
 

Constructor & Destructor Documentation

mediascanner::MediaRootManager::MediaRootManager ( )
mediascanner::MediaRootManager::~MediaRootManager ( )

Member Function Documentation

void mediascanner::MediaRootManager::add_listener ( Listener listener)
void mediascanner::MediaRootManager::AddManualRoot ( const std::string &  path)
MediaRoot mediascanner::MediaRootManager::AddRelativeRoot ( const std::string &  relative_path)
bool mediascanner::MediaRootManager::enabled ( ) const
void mediascanner::MediaRootManager::initialize ( )

Explicitly runs the initializer instead of waiting for the main loop to trigger initialization.

MediaRoot mediascanner::MediaRootManager::make_root ( const std::string &  path) const
std::vector<std::string> mediascanner::MediaRootManager::manual_roots ( ) const
std::vector<MediaRoot> mediascanner::MediaRootManager::media_roots ( ) const
void mediascanner::MediaRootManager::remove_listener ( Listener listener)
void mediascanner::MediaRootManager::set_enabled ( bool  enabled)