xref: /haiku/headers/private/netservices/UrlProtocolAsynchronousListener.h (revision c237c4ce593ee823d9867fd997e51e4c447f5623)
1 /*
2  * Copyright 2010 Haiku Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _B_URL_PROTOCOL_ASYNCHRONOUS_LISTENER_H_
6 #define _B_URL_PROTOCOL_ASYNCHRONOUS_LISTENER_H_
7 
8 
9 #include <Handler.h>
10 #include <Message.h>
11 #include <UrlProtocolDispatchingListener.h>
12 
13 
14 namespace BPrivate {
15 
16 namespace Network {
17 
18 
19 class BUrlProtocolAsynchronousListener : public BHandler,
20 	public BUrlProtocolListener {
21 public:
22 								BUrlProtocolAsynchronousListener(
23 									bool transparent = false);
24 	virtual						~BUrlProtocolAsynchronousListener();
25 
26 	// Synchronous listener access
27 			BUrlProtocolListener* SynchronousListener();
28 
29 	// BHandler interface
30 	virtual	void				MessageReceived(BMessage* message);
31 
32 private:
33 			BUrlProtocolDispatchingListener*
34 						 		fSynchronousListener;
35 };
36 
37 
38 } // namespace Network
39 
40 } // namespace BPrivate
41 
42 #endif // _B_URL_PROTOCOL_ASYNCHRONOUS_LISTENER_H_
43