javaextensions/bluetooth/bluetoothplugins/btspppushplugin/inc.s60/btrfcommserverconnection.h
equal
deleted
inserted
replaced
37 class RFCOMMServerConnection: public MBluetoothSocketNotifier |
37 class RFCOMMServerConnection: public MBluetoothSocketNotifier |
38 { |
38 { |
39 public: |
39 public: |
40 OS_IMPORT RFCOMMServerConnection( |
40 OS_IMPORT RFCOMMServerConnection( |
41 java::bluetooth::BluetoothFunctionServer* server); |
41 java::bluetooth::BluetoothFunctionServer* server); |
|
42 |
42 OS_IMPORT ~RFCOMMServerConnection(); |
43 OS_IMPORT ~RFCOMMServerConnection(); |
43 |
44 |
44 OS_IMPORT int openServer(bool authorize, bool authenticate, bool encrypt); |
45 OS_IMPORT int openServer(bool authorize, bool authenticate, bool encrypt); |
45 |
46 |
46 // To create and initializes the service record. |
47 // To create and initializes the service record. |
58 |
59 |
59 // Needed in case of push. Restore the service updates from file. |
60 // Needed in case of push. Restore the service updates from file. |
60 OS_IMPORT int restorePersistentRecord(); |
61 OS_IMPORT int restorePersistentRecord(); |
61 |
62 |
62 OS_IMPORT int |
63 OS_IMPORT int |
63 ServerOpen(TBool authorize, TBool authenticate, TBool encrypt); |
64 ServerOpen(TBool authorize, TBool authenticate, TBool encrypt); |
64 |
65 |
65 OS_IMPORT long Accept(); |
66 OS_IMPORT long Accept(); |
66 |
|
67 OS_IMPORT int CloseServer(); |
|
68 |
67 |
69 OS_IMPORT int GetRfListeningChannel(); |
68 OS_IMPORT int GetRfListeningChannel(); |
70 |
69 |
71 OS_IMPORT ServiceRecord *getServiceRecordHandle(); |
70 OS_IMPORT ServiceRecord *getServiceRecordHandle(); |
72 |
71 |
94 |
93 |
95 //Notification of a shutdown complete event |
94 //Notification of a shutdown complete event |
96 void HandleShutdownCompleteL(TInt err); |
95 void HandleShutdownCompleteL(TInt err); |
97 |
96 |
98 void avoidFilter(); |
97 void avoidFilter(); |
|
98 |
|
99 int CloseServer(); |
99 |
100 |
100 private: |
101 private: |
101 RFCOMMServerConnection(); |
102 RFCOMMServerConnection(); |
102 |
103 |
103 void ServerOpenL(TBool authorize, TBool authenticate, TBool encrypt); |
104 void ServerOpenL(TBool authorize, TBool authenticate, TBool encrypt); |