xref: /haiku/src/servers/launch/AbstractEmptyDirectoryJob.h (revision d0ac609964842f8cdb6d54b3c539c6c15293e172)
1 /*
2  * Copyright 2015, Axel Dörfler, axeld@pinc-software.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef ABSTRACT_EMPTY_DIRECTORY_JOB_H
6 #define ABSTRACT_EMPTY_DIRECTORY_JOB_H
7 
8 
9 #include <Job.h>
10 
11 
12 class BEntry;
13 
14 
15 class AbstractEmptyDirectoryJob : public BSupportKit::BJob {
16 public:
17 								AbstractEmptyDirectoryJob(const BString& name);
18 
19 protected:
20 			status_t			CreateAndEmpty(const char* path) const;
21 
22 private:
23 			status_t			_EmptyDirectory(BEntry& directoryEntry,
24 									bool remove) const;
25 };
26 
27 
28 #endif // ABSTRACT_EMPTY_DIRECTORY_JOB_H
29