bluetoothengine/btaudioman/src/BTAccServer.cpp
changeset 1 6a1fe72036e3
parent 0 f63038272f30
child 6 6a29d5ad0713
equal deleted inserted replaced
0:f63038272f30 1:6a1fe72036e3
     1 /*
     1 /*
     2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    56 CBTAccServer::~CBTAccServer()
    56 CBTAccServer::~CBTAccServer()
    57     {
    57     {
    58     delete iAccMan;  
    58     delete iAccMan;  
    59     delete iTimer;
    59     delete iTimer;
    60     iSessions.Close();
    60     iSessions.Close();
    61     
    61     RProperty::Delete( KPSUidBluetoothEnginePrivateCategory, KBTHfpATCommand );
    62     RProperty::Delete( KPSUidBluetoothEnginePrivateCategory, KBTATCodec );
    62     RProperty::Delete( KPSUidBluetoothEnginePrivateCategory, KBTHfpATResponse );
    63     
       
    64     TRACE_FUNC
    63     TRACE_FUNC
    65     }
    64     }
    66 
    65 
    67 // ---------------------------------------------------------
    66 // ---------------------------------------------------------
    68 // NewL
    67 // NewL
   150     {
   149     {
   151     iAccMan = CBasrvAccMan::NewL();
   150     iAccMan = CBasrvAccMan::NewL();
   152     iAccMan->LoadServicesL();
   151     iAccMan->LoadServicesL();
   153     
   152     
   154     User::LeaveIfError(RProperty::Define(KPSUidBluetoothEnginePrivateCategory,
   153     User::LeaveIfError(RProperty::Define(KPSUidBluetoothEnginePrivateCategory,
   155                                          KBTATCodec, RProperty::EByteArray,
   154                                          KBTHfpATCommand, RProperty::EByteArray,
       
   155                                          KBTEngPSKeyReadPolicy,
       
   156                                          KBTEngPSKeyWritePolicy));
       
   157     User::LeaveIfError(RProperty::Define(KPSUidBluetoothEnginePrivateCategory,
       
   158                                          KBTHfpATResponse, RProperty::EByteArray,
   156                                          KBTEngPSKeyReadPolicy,
   159                                          KBTEngPSKeyReadPolicy,
   157                                          KBTEngPSKeyWritePolicy));
   160                                          KBTEngPSKeyWritePolicy));
   158     }
   161     }
   159 
   162 
   160 void CBTAccServer::CancelShutdownTimer()
   163 void CBTAccServer::CancelShutdownTimer()