1b12daa5fSOliver Ruiz Dorantes/*
2b12daa5fSOliver Ruiz Dorantes * Copyright 2007-2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
3b12daa5fSOliver Ruiz Dorantes *
4b12daa5fSOliver Ruiz Dorantes * All rights reserved. Distributed under the terms of the MIT License.
5b12daa5fSOliver Ruiz Dorantes *
6b12daa5fSOliver Ruiz Dorantes */
7b12daa5fSOliver Ruiz Dorantes
8b12daa5fSOliver Ruiz Dorantes#ifndef _CONNECTION_INCOMING_H_
9b12daa5fSOliver Ruiz Dorantes#define _CONNECTION_INCOMING_H_
10b12daa5fSOliver Ruiz Dorantes
11b12daa5fSOliver Ruiz Dorantes
12b12daa5fSOliver Ruiz Dorantes//----------------------- Global includes  ----------------------
13b12daa5fSOliver Ruiz Dorantes#include <AppKit.h>
14b12daa5fSOliver Ruiz Dorantes#include <SupportKit.h>
15b12daa5fSOliver Ruiz Dorantes#include <InterfaceKit.h>
167ac433fcSMichael Lotz#include <iostream>
17b12daa5fSOliver Ruiz Dorantes#include <stdio.h>
18b12daa5fSOliver Ruiz Dorantes#include <stdlib.h>
19b12daa5fSOliver Ruiz Dorantes
203205e523SOliver Ruiz Dorantesnamespace Bluetooth {
213205e523SOliver Ruiz Dorantes
22b12daa5fSOliver Ruiz Dorantesclass RemoteDevice;
23b12daa5fSOliver Ruiz Dorantes
24b12daa5fSOliver Ruiz Dorantesclass ConnectionView
25b12daa5fSOliver Ruiz Dorantes		: public BView
26b12daa5fSOliver Ruiz Dorantes{
27b12daa5fSOliver Ruiz Dorantespublic:
283205e523SOliver Ruiz Dorantes						ConnectionView(BRect frame, const char *name);
29b12daa5fSOliver Ruiz Dorantes						~ConnectionView();
30b12daa5fSOliver Ruiz Dorantes	virtual void		MessageReceived(BMessage *message);
31b12daa5fSOliver Ruiz Dorantes	void				Draw(BRect update);
32b12daa5fSOliver Ruiz Dorantes	void				Pulse();
33b12daa5fSOliver Ruiz Dorantes
34b12daa5fSOliver Ruiz Dorantesprivate:
35b12daa5fSOliver Ruiz Dorantes
36b12daa5fSOliver Ruiz Dorantes
37b12daa5fSOliver Ruiz Dorantes};
38b12daa5fSOliver Ruiz Dorantes
39b12daa5fSOliver Ruiz Dorantes
403205e523SOliver Ruiz Dorantesclass ConnectionIncoming : public BWindow
41b12daa5fSOliver Ruiz Dorantes{
42b12daa5fSOliver Ruiz Dorantespublic:
43b12daa5fSOliver Ruiz Dorantes						ConnectionIncoming(RemoteDevice* rDevice);
44b12daa5fSOliver Ruiz Dorantes						~ConnectionIncoming();
45b12daa5fSOliver Ruiz Dorantes	virtual void		MessageReceived(BMessage *message);
46b12daa5fSOliver Ruiz Dorantes	virtual bool		QuitRequested();
47b12daa5fSOliver Ruiz Dorantes
48b12daa5fSOliver Ruiz Dorantesprivate:
49b12daa5fSOliver Ruiz Dorantes	ConnectionView*				_ConnectionView;
50b12daa5fSOliver Ruiz Dorantes};
51b12daa5fSOliver Ruiz Dorantes
523205e523SOliver Ruiz Dorantes}
533205e523SOliver Ruiz Dorantes
543205e523SOliver Ruiz Dorantes#ifndef _BT_USE_EXPLICIT_NAMESPACE
553205e523SOliver Ruiz Dorantesusing Bluetooth::ConnectionIncoming;
563205e523SOliver Ruiz Dorantes#endif
573205e523SOliver Ruiz Dorantes
583205e523SOliver Ruiz Dorantes
59b12daa5fSOliver Ruiz Dorantes#endif
60