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