idlefw/src/framework/aipsstatusobserver.cpp
author William Roberts <williamr@symbian.org>
Mon, 08 Mar 2010 21:43:47 +0000
branchCompilerCompatibility
changeset 13 b2bba7f74ac0
parent 0 79c6a41cd166
permissions -rw-r--r--
Create CompilerCompatibility branch

/*
* Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Generic PS observer base class
*
*/


#include <aiutility.h>
#include <aipspropertyobserver.h>
#include "aipsstatusobserver.h"

CAiPSStatusObserver::~CAiPSStatusObserver()
    {
    if( iObserver )
        iObserver->Release();
    }

TAiStateChanges CAiPSStatusObserver::Status()
    {
    return ESMAIUnknownState;
    }

CAiPSStatusObserver::CAiPSStatusObserver()
    {
    }
    
void CAiPSStatusObserver::BaseConstructL( TCallBack aCallBack,
                                              TUid aCategory,
                                              TInt aKey,
                                              MAiStateManager* aStateManager )
    {
    iStateManager = aStateManager;
    iObserver = AiUtility::CreatePSPropertyObserverL( aCallBack, aCategory, aKey );
    }

// End of File.