ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/DecentralizedMedia/Share.hpp
Revision: 514
Committed: 2005-06-20T00:19:47-07:00 (20 years ago) by douglas
File size: 564 byte(s)
Log Message:
Added beginnings of Share stuff.

File Contents

# User Rev Content
1 douglas 514 // Share
2     //
3     // Douglas Thrift
4     //
5     // $Id$
6    
7     #ifndef _Share_hpp_
8     #define _Share_hpp_
9    
10     #include <menes/platform.hpp>
11    
12     #ifdef MENES_PRAGMA_ONCE
13     #pragma once
14     #endif
15    
16     #include <menes-api/path.hpp>
17     #include <menes-dbi/connection.hpp>
18    
19     class Share : public ext::ReferenceCounted
20     {
21     private:
22     mutable _H<dbi::Connection> connection;
23     public:
24     ext::String host, share;
25     api::Path path;
26     Share(const _H<dbi::Connection>& connection, const ext::String& host, const ext::String& share);
27     ~Share() { Unmount(); }
28     void Mount() const;
29     void Unmount() const;
30     };
31    
32     #endif//_Share_hpp_

Properties

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