xref: /haiku/src/apps/haikudepot/server/AbstractSingleFileServerProcess.h (revision 3995592cdf304335132305e27c40cbb0b1ac46e3)
1 /*
2  * Copyright 2017, Andrew Lindesay <apl@lindesay.co.nz>.
3  * All rights reserved. Distributed under the terms of the MIT License.
4  */
5 
6 #ifndef ABSTRACT_SINGLE_FILE_SERVER_PROCESS_H
7 #define ABSTRACT_SINGLE_FILE_SERVER_PROCESS_H
8 
9 
10 #include "AbstractServerProcess.h"
11 
12 
13 class AbstractSingleFileServerProcess : public AbstractServerProcess {
14 public:
15 								AbstractSingleFileServerProcess(
16 									AbstractServerProcessListener* listener,
17 									uint32 options);
18 	virtual						~AbstractSingleFileServerProcess();
19 
20 protected:
21 	virtual status_t			RunInternal();
22 
23 	virtual status_t			ProcessLocalData() = 0;
24 
25 	virtual	BString				UrlPathComponent() = 0;
26 
27 	virtual	BPath&				LocalPath() = 0;
28 };
29 
30 #endif // ABSTRACT_SINGLE_FILE_SERVER_PROCESS_H