vfs: check userland buffers before reading them.
[haiku.git] / headers / private / bluetooth / ConnectionIncoming.h
blobf8292f892f0751d9b14323b9e5c9e71f890415d3
1 /*
2 * Copyright 2007-2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
4 * All rights reserved. Distributed under the terms of the MIT License.
6 */
8 #ifndef _CONNECTION_INCOMING_H_
9 #define _CONNECTION_INCOMING_H_
12 //----------------------- Global includes ----------------------
13 #include <AppKit.h>
14 #include <SupportKit.h>
15 #include <InterfaceKit.h>
16 #include <iostream>
17 #include <stdio.h>
18 #include <stdlib.h>
20 namespace Bluetooth {
22 class RemoteDevice;
24 class ConnectionView
25 : public BView
27 public:
28 ConnectionView(BRect frame, const char *name);
29 ~ConnectionView();
30 virtual void MessageReceived(BMessage *message);
31 void Draw(BRect update);
32 void Pulse();
34 private:
40 class ConnectionIncoming : public BWindow
42 public:
43 ConnectionIncoming(RemoteDevice* rDevice);
44 ~ConnectionIncoming();
45 virtual void MessageReceived(BMessage *message);
46 virtual bool QuitRequested();
48 private:
49 ConnectionView* _ConnectionView;
54 #ifndef _BT_USE_EXPLICIT_NAMESPACE
55 using Bluetooth::ConnectionIncoming;
56 #endif
59 #endif