1 |
// 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/socket.hpp> |
17 |
#include <menes-api/path.hpp> |
18 |
#include <menes-dbi/connection.hpp> |
19 |
|
20 |
class Share : public ext::ReferenceCounted |
21 |
{ |
22 |
private: |
23 |
mutable _R<dbi::Connection> connection; |
24 |
public: |
25 |
static api::Path shares; |
26 |
api::Address host; |
27 |
cse::String share; |
28 |
api::Path path; |
29 |
Share(const _R<dbi::Connection>& connection, const api::InternetAddress& host, const cse::String& share); |
30 |
~Share(); |
31 |
}; |
32 |
|
33 |
#endif//_Share_hpp_ |