bluetoothmgmt/bluetoothclientlib/inc/bt_sock.h
changeset 33 4e80e1b997a8
parent 0 29b1cd4cb562
child 35 14e279d2bbb7
equal deleted inserted replaced
19:4b81101308c6 33:4e80e1b997a8
   189 typedef TPckgBuf<TLMDisconnectACLIoctl> TLMDisconnectACLBuf;	/*!< Package for TLMDisconnectACLIoctl structure */
   189 typedef TPckgBuf<TLMDisconnectACLIoctl> TLMDisconnectACLBuf;	/*!< Package for TLMDisconnectACLIoctl structure */
   190 
   190 
   191 // private tokens for use by RBTBaseband facade and stack
   191 // private tokens for use by RBTBaseband facade and stack
   192 _LIT8(KDisconnectOnePhysicalLink, "1");		/*!< Specifes one physical link should be disconnected */
   192 _LIT8(KDisconnectOnePhysicalLink, "1");		/*!< Specifes one physical link should be disconnected */
   193 _LIT8(KDisconnectAllPhysicalLinks, "A");	/*!< Specifes all physical links should be disconnected */
   193 _LIT8(KDisconnectAllPhysicalLinks, "A");	/*!< Specifes all physical links should be disconnected */
       
   194 _LIT8(KDisconnectAllPhysicalLinksForPowerOff, "P");	/*!< Specifes all physical links should be disconnected for power off*/
   194 
   195 
   195 // HCI Ioctls
   196 // HCI Ioctls
   196 /** Add SCO connnection Ioctl
   197 /** Add SCO connnection Ioctl
   197 @deprecated
   198 @deprecated
   198 */
   199 */
   612 const static TInt KErrRfcommMuxRemoteDisconnect = KRFErrorBase-5;			/*!< RFCOMM remote end disconnected error code. */
   613 const static TInt KErrRfcommMuxRemoteDisconnect = KRFErrorBase-5;			/*!< RFCOMM remote end disconnected error code. */
   613 const static TInt KErrRfcommNotBound = KRFErrorBase-6;						/*!< RFCOMM SAP not bound error code. */
   614 const static TInt KErrRfcommNotBound = KRFErrorBase-6;						/*!< RFCOMM SAP not bound error code. */
   614 const static TInt KErrRfcommParameterNegotiationFailure = KRFErrorBase-7;	/*!< RFCOMM parameter negotiation failure error code. */
   615 const static TInt KErrRfcommParameterNegotiationFailure = KRFErrorBase-7;	/*!< RFCOMM parameter negotiation failure error code. */
   615 const static TInt KErrRfcommNotListening = KRFErrorBase-8;					/*!< RFCOMM not listening error code. */
   616 const static TInt KErrRfcommNotListening = KRFErrorBase-8;					/*!< RFCOMM not listening error code. */
   616 const static TInt KErrRfcommNoMoreServerChannels = KRFErrorBase-9;			/*!< RFCOMM no more server channels available error code. */
   617 const static TInt KErrRfcommNoMoreServerChannels = KRFErrorBase-9;			/*!< RFCOMM no more server channels available error code. */
       
   618 const static TInt KErrRfcommMuxChannelErrored = KRFErrorBase-10;			/*!< RFCOMM Mux channel errored */
   617 
   619 
   618 //RFCOMMIoctls
   620 //RFCOMMIoctls
   619 
   621 
   620 const static TInt KRFCOMMModemStatusCmdIoctl =0;		/*!< RFCOMM status command Ioctl */
   622 const static TInt KRFCOMMModemStatusCmdIoctl =0;		/*!< RFCOMM status command Ioctl */
   621 const static TInt KRFCOMMRemoteLineStatusCmdIoctl = 1;	/*!< RFCOMM remote line status command Ioctl */
   623 const static TInt KRFCOMMRemoteLineStatusCmdIoctl = 1;	/*!< RFCOMM remote line status command Ioctl */
  1531 
  1533 
  1532 	IMPORT_C TInt CreateConnection(const TBTDevAddr& aDevAddr);
  1534 	IMPORT_C TInt CreateConnection(const TBTDevAddr& aDevAddr);
  1533 	IMPORT_C void CancelCreateConnection();
  1535 	IMPORT_C void CancelCreateConnection();
  1534 	IMPORT_C TInt Disconnect(const TBTDevAddr& aDevAddr);
  1536 	IMPORT_C TInt Disconnect(const TBTDevAddr& aDevAddr);
  1535 	IMPORT_C TInt DisconnectAll();
  1537 	IMPORT_C TInt DisconnectAll();
       
  1538 	IMPORT_C TInt DisconnectAllForPowerOff();
  1536 	
  1539 	
  1537 	IMPORT_C TInt Broadcast(const TDesC8& aData);
  1540 	IMPORT_C TInt Broadcast(const TDesC8& aData);
  1538 	IMPORT_C TInt ReadRaw(TDes8& aData);
  1541 	IMPORT_C TInt ReadRaw(TDes8& aData);
  1539 	IMPORT_C TInt Enumerate(RBTDevAddrArray& aBTDevAddrArray, TUint aMaxNumber);
  1542 	IMPORT_C TInt Enumerate(RBTDevAddrArray& aBTDevAddrArray, TUint aMaxNumber);
  1540 
  1543