idlefw/src/framework/aipsstatusobserver.cpp
branchRCL_3
changeset 9 d0529222e3f0
parent 4 1a2a00e78665
child 10 5ef93ea513cb
child 18 bd874ee5e5e2
equal deleted inserted replaced
4:1a2a00e78665 9:d0529222e3f0
     1 /*
       
     2 * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     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".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Generic PS observer base class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <aiutility.h>
       
    20 #include <aipspropertyobserver.h>
       
    21 #include "aipsstatusobserver.h"
       
    22 
       
    23 CAiPSStatusObserver::~CAiPSStatusObserver()
       
    24     {
       
    25     if( iObserver )
       
    26         iObserver->Release();
       
    27     }
       
    28 
       
    29 TAiStateChanges CAiPSStatusObserver::Status()
       
    30     {
       
    31     return ESMAIUnknownState;
       
    32     }
       
    33 
       
    34 CAiPSStatusObserver::CAiPSStatusObserver()
       
    35     {
       
    36     }
       
    37     
       
    38 void CAiPSStatusObserver::BaseConstructL( TCallBack aCallBack,
       
    39                                               TUid aCategory,
       
    40                                               TInt aKey,
       
    41                                               MAiStateManager* aStateManager )
       
    42     {
       
    43     iStateManager = aStateManager;
       
    44     iObserver = AiUtility::CreatePSPropertyObserverL( aCallBack, aCategory, aKey );
       
    45     }
       
    46 
       
    47 // End of File.