2008-06-19 00:57:27 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2007-2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
|
|
|
|
*
|
|
|
|
* All rights reserved. Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _CONNECTION_INCOMING_H_
|
|
|
|
#define _CONNECTION_INCOMING_H_
|
|
|
|
|
|
|
|
|
|
|
|
//----------------------- Global includes ----------------------
|
|
|
|
#include <AppKit.h>
|
|
|
|
#include <SupportKit.h>
|
|
|
|
#include <InterfaceKit.h>
|
2009-02-01 20:29:42 +03:00
|
|
|
#include <iostream>
|
2008-06-19 00:57:27 +04:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2008-07-25 00:50:49 +04:00
|
|
|
namespace Bluetooth {
|
|
|
|
|
2008-06-19 00:57:27 +04:00
|
|
|
class RemoteDevice;
|
|
|
|
|
|
|
|
class ConnectionView
|
|
|
|
: public BView
|
|
|
|
{
|
|
|
|
public:
|
2008-07-25 00:50:49 +04:00
|
|
|
ConnectionView(BRect frame, const char *name);
|
2008-06-19 00:57:27 +04:00
|
|
|
~ConnectionView();
|
|
|
|
virtual void MessageReceived(BMessage *message);
|
|
|
|
void Draw(BRect update);
|
|
|
|
void Pulse();
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-07-25 00:50:49 +04:00
|
|
|
class ConnectionIncoming : public BWindow
|
2008-06-19 00:57:27 +04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
ConnectionIncoming(RemoteDevice* rDevice);
|
|
|
|
~ConnectionIncoming();
|
|
|
|
virtual void MessageReceived(BMessage *message);
|
|
|
|
virtual bool QuitRequested();
|
|
|
|
|
|
|
|
private:
|
|
|
|
ConnectionView* _ConnectionView;
|
|
|
|
};
|
|
|
|
|
2008-07-25 00:50:49 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifndef _BT_USE_EXPLICIT_NAMESPACE
|
|
|
|
using Bluetooth::ConnectionIncoming;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2008-06-19 00:57:27 +04:00
|
|
|
#endif
|