1 /* 2 * Copyright 2007-2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com 3 * 4 * All rights reserved. Distributed under the terms of the MIT License. 5 * 6 */ 7 8 #ifndef _CONNECTION_INCOMING_H_ 9 #define _CONNECTION_INCOMING_H_ 10 11 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> 19 20 namespace Bluetooth { 21 22 class RemoteDevice; 23 24 class ConnectionView 25 : public BView 26 { 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(); 33 34 private: 35 36 37 }; 38 39 40 class ConnectionIncoming : public BWindow 41 { 42 public: 43 ConnectionIncoming(RemoteDevice* rDevice); 44 ~ConnectionIncoming(); 45 virtual void MessageReceived(BMessage *message); 46 virtual bool QuitRequested(); 47 48 private: 49 ConnectionView* _ConnectionView; 50 }; 51 52 } 53 54 #ifndef _BT_USE_EXPLICIT_NAMESPACE 55 using Bluetooth::ConnectionIncoming; 56 #endif 57 58 59 #endif 60