bluetoothengine/btmac/src/btmonobearer/bmbcmdlistener.cpp
branchRCL_3
changeset 21 0ba996a9b75d
parent 1 6a1fe72036e3
equal deleted inserted replaced
20:eede1356aa52 21:0ba996a9b75d
    33 CBmbCmdListener::~CBmbCmdListener()
    33 CBmbCmdListener::~CBmbCmdListener()
    34     {
    34     {
    35    	Cancel();
    35    	Cancel();
    36    	iATCmdProperty.Close();
    36    	iATCmdProperty.Close();
    37    	iATRespProperty.Close();
    37    	iATRespProperty.Close();
       
    38    	iAtCmdBuf.Close();
    38     }
    39     }
    39 
    40 
    40 // ---------------------------------------------------------------------------
    41 // ---------------------------------------------------------------------------
    41 // Send the response via PS, and starts listening the next command
    42 // Send the response via PS, and starts listening the next command
    42 // to be handled by this bearer.
    43 // to be handled by this bearer.
    58 void CBmbCmdListener::ConstructL()
    59 void CBmbCmdListener::ConstructL()
    59     {
    60     {
    60 	TRACE_FUNC
    61 	TRACE_FUNC
    61     LEAVE_IF_ERROR(iATCmdProperty.Attach(KPSUidBluetoothEnginePrivateCategory, KBTHfpATCommand));
    62     LEAVE_IF_ERROR(iATCmdProperty.Attach(KPSUidBluetoothEnginePrivateCategory, KBTHfpATCommand));
    62 	LEAVE_IF_ERROR(iATRespProperty.Attach(KPSUidBluetoothEnginePrivateCategory, KBTHfpATResponse));
    63 	LEAVE_IF_ERROR(iATRespProperty.Attach(KPSUidBluetoothEnginePrivateCategory, KBTHfpATResponse));
       
    64 	iAtCmdBuf.CreateL(KDefaultCmdBufLength);
    63 	Subscribe();
    65 	Subscribe();
    64     }
    66     }
    65 
    67 
    66 void CBmbCmdListener::RunL()
    68 void CBmbCmdListener::RunL()
    67     {
    69     {