ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Spectre2/Unmounter.hpp
(Generate patch)

Comparing Spectre2/Unmounter.hpp (file contents):
Revision 418 by douglas, 2005-03-02T22:36:24-08:00 vs.
Revision 431 by douglas, 2005-03-26T22:35:26-08:00

# Line 7 | Line 7
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 > class Unmounter
17   {
18   private:
19 <        const api::Path& config;
20 <        virtual void load();
21 <        virtual void run();
19 >        const Share& share;
20   public:
21 <        Unmounter(const api::Path& config);
21 >        Unmounter(const Share& share) : share(share) {}
22 >        operator bool() { return share.mounted() && !share.mountable(); }
23 >        void operator()();
24   };
25  
26 < #endif // _Unmounter_hpp_
26 > #endif//_Unmounter_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines