haiku/headers/private/userlandfs/private/RequestHandler.h
Ingo Weinhold 83812f6752 Copied userlandfs code from the test tree to the haiku source tree,
where it will be ported to Haiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20216 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-24 00:30:19 +00:00

36 lines
637 B
C++

// RequestHandler.h
#ifndef USERLAND_FS_REQUEST_HANDLER_H
#define USERLAND_FS_REQUEST_HANDLER_H
#include <SupportDefs.h>
namespace UserlandFSUtil {
class Request;
class RequestPort;
class RequestHandler {
public:
RequestHandler();
virtual ~RequestHandler();
void SetPort(RequestPort* port);
bool IsDone() const;
virtual status_t HandleRequest(Request* request) = 0;
protected:
RequestPort* fPort;
bool fDone;
};
} // namespace UserlandFSUtil
using UserlandFSUtil::Request;
using UserlandFSUtil::RequestHandler;
using UserlandFSUtil::RequestPort;
#endif // USERLAND_FS_REQUEST_HANDLER_H