bluetoothengine/btnotif/btnotifsrv/src/btnotifsettingstracker.cpp
changeset 31 a0ea99b6fa53
parent 29 48ae3789ce00
equal deleted inserted replaced
30:df7a93ede42e 31:a0ea99b6fa53
     1 /*
     1 /*
     2 * ============================================================================
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3 *  Name        : btnotifsettingstracker.cpp
     3 * All rights reserved.
     4 *  Part of     : BTProximity / BTProximity
     4 * This component and the accompanying materials are made available
     5 *  Description : Class for tracking Bluetooth settings, and also for handling notes unrelated to specific connection.
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 *
     8 *
     7 *  Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies).
     9 * Initial Contributors:
     8 *  All rights reserved.
    10 * Nokia Corporation - initial contribution.
     9 *  This component and the accompanying materials are made available
       
    10 *  under the terms of "Eclipse Public License v1.0"
       
    11 *  which accompanies this distribution, and is available
       
    12 *  at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    13 *
    11 *
    14 *  Initial Contributors:
    12 * Contributors:
    15 *  Nokia Corporation - initial contribution.
       
    16 *
    13 *
    17 *  Contributors:
    14 * Description: Class for tracking Bluetooth settings, and also for 
    18 *  Nokia Corporation
    15 * handling notes unrelated to specific connection.
    19 * ============================================================================
    16 *
    20 * Template version: 4.1
       
    21 */
    17 */
    22 
    18 
    23 #include "btnotifsettingstracker.h"
    19 #include "btnotifsettingstracker.h"
    24 #include <btserversdkcrkeys.h>
    20 #include <btserversdkcrkeys.h>
    25 
    21 
   132         iNotification = iServer->NotificationManager()->GetNotification();
   128         iNotification = iServer->NotificationManager()->GetNotification();
   133         if ( iNotification )
   129         if ( iNotification )
   134             {
   130             {
   135             iNotification->SetObserver( this );
   131             iNotification->SetObserver( this );
   136             iNotification->SetNotificationType( TBluetoothDeviceDialog::ENote, EVisibilityTimeout );
   132             iNotification->SetNotificationType( TBluetoothDeviceDialog::ENote, EVisibilityTimeout );
   137             iServer->NotificationManager()->QueueNotification( iNotification );
   133             TRAP_IGNORE(
       
   134                     iServer->NotificationManager()->QueueNotificationL( iNotification ) );
   138             }
   135             }
   139         }
   136         }
   140     iVisibilityMode = aState;
   137     iVisibilityMode = aState;
   141     }
   138     }
   142 
   139