7 |
|
#ifndef _Mounter_hpp_ |
8 |
|
#define _Mounter_hpp_ |
9 |
|
|
10 |
< |
#include "Daemon.hpp" |
10 |
> |
#include "Share.hpp" |
11 |
|
|
12 |
|
#ifdef MENES_PRAGMA_ONCE |
13 |
|
#pragma once |
14 |
|
#endif |
15 |
|
|
16 |
< |
class Mounter : public Daemon |
16 |
> |
class Mounter |
17 |
|
{ |
18 |
|
private: |
19 |
< |
const ext::String& config; |
20 |
< |
virtual void load(); |
21 |
< |
virtual void run(); |
19 |
> |
const Share& share; |
20 |
|
public: |
21 |
< |
Mounter(const ext::String& config); |
21 |
> |
Mounter(const Share& share) : share(share) {} |
22 |
> |
operator bool() { return !share.mounted() && share.mountable(); } |
23 |
> |
void operator()(); |
24 |
|
}; |
25 |
|
|
26 |
< |
#endif // _Mounter_hpp_ |
26 |
> |
#endif//_Mounter_hpp_ |