ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/DecentralizedMedia/DecentralizedMedia.hpp
Revision: 484
Committed: 2005-06-16T21:52:32-07:00 (20 years ago) by douglas
File size: 960 byte(s)
Log Message:
Meep!

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-dbi/connection.hpp>
18 #include <menes-waf/server.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 _H<dbi::Connection> connection;
31 const _L<ext::String>& extensions;
32 ext::RedBlackSet<ext::String> shares;
33 int Destroy() { return process->Join(); }
34 protected:
35 virtual void Process(const net::Http::Request& request, net::Http::Response& response);
36 public:
37 DecentralizedMedia(const _L<ext::String>& extensions, const _L<ext::String>& locals);
38 virtual ~DecentralizedMedia();
39 const ext::RedBlackSet<ext::String>& GetMedia() const;
40 };
41
42 #endif//_DecentralizedMedia_hpp_

Properties

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