ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/DecentralizedMedia/DecentralizedMedia.hpp
Revision: 509
Committed: 2005-06-19T04:29:32-07:00 (20 years ago) by douglas
File size: 1298 byte(s)
Log Message:
Getting somewhere, it would seem.

File Contents

# Content
1 // Decentralized Media
2 //
3 // Douglas Thrift
4 //
5 // $Id$
6
7 #ifndef _DecentralizedMedia_hpp_
8 #define _DecentralizedMedia_hpp_
9
10 #include <menes/platform.hpp>
11
12 #ifdef MENES_PRAGMA_ONCE
13 #pragma once
14 #endif
15
16 #include <menes-api/process.hpp>
17 #include <menes-waf/server.hpp>
18 #include <menes-xml/nodeset.hpp>
19
20 #include "BeepRemote.hpp"
21 #include "MediaFolder.hpp"
22
23 class DecentralizedMedia : public waf::Server
24 {
25 public:
26 BeepRemote bmp;
27 private:
28 _H<api::Thread> block;
29 _H<api::Process> process;
30 mutable _H<dbi::Connection> connection;
31 const ext::RedBlackSet<ext::String>& extensions/*, shares*/;
32 void Media(ios::Reader& media);
33 void Media(const _H<xml::Node>& folder, const api::Path& path, const api::Path& root);
34 ext::String Share(const ext::String& host, const ext::String& share);
35 int Destroy() { return process->Join(); }
36 protected:
37 virtual void Process(const net::Http::Request& request, net::Http::Response& response);
38 public:
39 DecentralizedMedia(const ext::RedBlackSet<ext::String>& extensions, const ext::RedBlackSet<ext::String>& locals);
40 virtual ~DecentralizedMedia();
41 _L<ext::String> GetArtists() const;
42 _L<ext::String> GetTitles() const;
43 _L<ext::String> GetAlbums() const;
44 _L<ext::String> GetGenres() const;
45 _L<MediaFolder> GetFolders() const;
46 };
47
48 #endif//_DecentralizedMedia_hpp_

Properties

Name Value
svn:eol-style native
svn:keywords Id