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