1 /*
2  * $Id: rfcomm.h,v 1.1.1.1 2004/04/03 21:29:46 bozo Exp $
3  *
4  * G N A P P L E T
5  *
6  * gnapplet is a gnbus protocol driver for symbian phones.
7  *
8  * This file is part of gnokii.
9  *
10  * Gnokii is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * Gnokii is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with gnokii; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23  *
24  * Copyright (C) 2004 BORBELY Zoltan
25  *
26  * This file provides RfCOMM support.
27  *
28  */
29 
30 #ifndef	__GNAPPLET_RFCOMM_H
31 #define	__GNAPPLET_RFCOMM_H
32 
33 #include <bt_sock.h>
34 
35 #include "device.h"
36 
37 
38 class RfCOMM: public Device {
39 	RSocketServ rserv;
40 	RSocket listen;
41 	RSocket conn;
42 public:
RfCOMM(void)43 	RfCOMM(void) {};
44 	~RfCOMM(void);
45 	void ConstructL(int port);
46 	void AcceptL(TRequestStatus &rs);
47 	void CloseL(void);
48 	void ReadL(TRequestStatus &rs, TDes8 &buf);
49 	void WriteL(TRequestStatus &rs, const TDes8 &buf);
50 };
51 
52 #endif
53