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
12class BEntry;
13
14
15class AbstractEmptyDirectoryJob : public BSupportKit::BJob {
16public:
17								AbstractEmptyDirectoryJob(const BString& name);
18
19protected:
20			status_t			CreateAndEmpty(const char* path) const;
21
22private:
23			status_t			_EmptyDirectory(BEntry& directoryEntry,
24									bool remove) const;
25};
26
27
28#endif // ABSTRACT_EMPTY_DIRECTORY_JOB_H
29