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_ |