appinstaller/AppMngr2/Sisx/inc/appmngr2sisxswimonitor.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:21:33 +0300
branchRCL_3
changeset 65 7333d7932ef7
parent 0 ba25891c3a9e
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* 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 C_APPMNGR2SISXSWIMONITOR_H
#define C_APPMNGR2SISXSWIMONITOR_H

#include <e32base.h>                    // CActive
#include <e32property.h>                // RProperty
#include <appmngr2runtimeobserver.h>    // MAppMngr2RuntimeObserver


/**
 * Class for listening SWI operations. When a software install operation
 * (installation, uninstallation or backup restore) completes successfully,
 * this class calls MAppMngr2RuntimeObserver::RefreshInstalledApps() to
 * refresh the displayed list of installed applications.
 */
class CAppMngr2SisxSwiMonitor : public CActive
    {
public:     // constructors and destructor
    static CAppMngr2SisxSwiMonitor* NewL( MAppMngr2RuntimeObserver& aObs );
    ~CAppMngr2SisxSwiMonitor();

protected:  // from CActive
    void DoCancel();
    void RunL();
    
private:    // new functions
    CAppMngr2SisxSwiMonitor( MAppMngr2RuntimeObserver& aObs );
    void ConstructL();

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

#endif      // C_APPMNGR2SISXSWIMONITOR_H