idlehomescreen/hscontentcontrol/inc/hscontentcontrolswilistener.h
author William Roberts <williamr@symbian.org>
Tue, 01 Jun 2010 13:56:29 +0100
branchRCL_3
changeset 52 a1e3af341cc7
parent 30 b8fae6b8a148
permissions -rw-r--r--
Disable the use of the CAlfEffectObserver, as a workaround for Bug 2840

/*
* Copyright (c) 2009 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:   Utility class to listen SWI operations.
*
*/

#ifndef HSCONTENTCONTROLSWILISTENER_H
#define HSCONTENTCONTROLSWILISTENER_H

// System includes
#include <e32base.h>
#include <e32property.h>

// User includes
#include "hscontentcontrolswiobserver.h"

// Forward declarations

// Class declaration
/** 
* @class CHsContentControlSwiListener
* 
* @brief An instance of class CHsContentControlSwiListener which listens for 
*  SWI operations (installation, uninstallation , restore).
*  
* @lib hscontentcontrol.lib
*/
NONSHARABLE_CLASS( CHsContentControlSwiListener ) : public CActive
    {
public:     // constructors and destructor
    static CHsContentControlSwiListener* NewL( 
                MHsContentControlSwiObserver& aObs );
    ~CHsContentControlSwiListener();

protected:  // from CActive
    void DoCancel();
    void RunL();

private:    // new functions
   CHsContentControlSwiListener( 
            MHsContentControlSwiObserver& aObs );
    void ConstructL();

private:     // data
    MHsContentControlSwiObserver& iObs;
    RProperty iSwInstallKey;
    };

#endif // HSCONTENTCONTROLSWILISTENER_H