appinstaller/AppMngr2/Sisx/inc/appmngr2sisxswimonitor.h
changeset 80 9dcba1ee99f7
parent 77 d1838696558c
equal deleted inserted replaced
77:d1838696558c 80:9dcba1ee99f7
     1 /*
       
     2 * Copyright (c) 2009 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:   Utility class to listen SWI operations.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_APPMNGR2SISXSWIMONITOR_H
       
    20 #define C_APPMNGR2SISXSWIMONITOR_H
       
    21 
       
    22 #include <e32base.h>                    // CActive
       
    23 #include <e32property.h>                // RProperty
       
    24 #include <appmngr2runtimeobserver.h>    // MAppMngr2RuntimeObserver
       
    25 
       
    26 
       
    27 /**
       
    28  * Class for listening SWI operations. When a software install operation
       
    29  * (installation, uninstallation or backup restore) completes successfully,
       
    30  * this class calls MAppMngr2RuntimeObserver::RefreshInstalledApps() to
       
    31  * refresh the displayed list of installed applications.
       
    32  */
       
    33 class CAppMngr2SisxSwiMonitor : public CActive
       
    34     {
       
    35 public:     // constructors and destructor
       
    36     static CAppMngr2SisxSwiMonitor* NewL( MAppMngr2RuntimeObserver& aObs );
       
    37     ~CAppMngr2SisxSwiMonitor();
       
    38 
       
    39 protected:  // from CActive
       
    40     void DoCancel();
       
    41     void RunL();
       
    42     
       
    43 private:    // new functions
       
    44     CAppMngr2SisxSwiMonitor( MAppMngr2RuntimeObserver& aObs );
       
    45     void ConstructL();
       
    46 
       
    47 private:     // data
       
    48     MAppMngr2RuntimeObserver& iObs;
       
    49     RProperty iSwInstallKey;
       
    50     };
       
    51 
       
    52 #endif      // C_APPMNGR2SISXSWIMONITOR_H
       
    53