29 |
|
_H<api::Thread> block; |
30 |
|
_H<api::Process> process; |
31 |
|
mutable _H<dbi::Connection> connection; |
32 |
< |
const ext::RedBlackSet<ext::String>& extensions; |
33 |
< |
ext::RedBlackMap<ext::String, _H<Share> > sharesByPath; |
34 |
< |
ext::RedBlackMap<ext::String, ext::RedBlackMap<ext::String, _H<Share> > > sharesByHost; |
35 |
< |
void Media(ios::Reader& media); |
32 |
> |
const ext::RedBlackSet<cse::String>& extensions; |
33 |
> |
ext::RedBlackMap<cse::String, _H<Share> > sharesByPath; |
34 |
> |
ext::RedBlackMap<api::Address, ext::RedBlackMap<cse::String, _H<Share> > > sharesByHost; |
35 |
> |
void Media(ios::Reader& media, const api::Address& host = api::InternetAddress()); |
36 |
|
void Media(const _H<xml::Node>& folder, const api::Path& path, const api::Path& root); |
37 |
|
int Destroy() { return process->Join(); } |
38 |
|
protected: |
39 |
|
virtual void Process(const net::Http::Request& request, net::Http::Response& response); |
40 |
|
public: |
41 |
< |
DecentralizedMedia(const ext::RedBlackSet<ext::String>& extensions, const ext::RedBlackSet<api::Path>& locals); |
41 |
> |
DecentralizedMedia(const ext::RedBlackSet<cse::String>& extensions, const ext::RedBlackSet<api::Path>& locals); |
42 |
|
virtual ~DecentralizedMedia(); |
43 |
< |
_L<ext::String> GetArtists() const; |
44 |
< |
_L<ext::String> GetTitles() const; |
45 |
< |
_L<ext::String> GetAlbums() const; |
46 |
< |
_L<ext::String> GetGenres() const; |
43 |
> |
_L<cse::String> GetArtists() const; |
44 |
> |
_L<cse::String> GetTitles() const; |
45 |
> |
_L<cse::String> GetAlbums() const; |
46 |
> |
_L<cse::String> GetGenres() const; |
47 |
|
_L<MediaFolder> GetFolders() const; |
48 |
|
}; |
49 |
|
|