appinstaller/AppMngr2/Sisx/inc/appmngr2sisxswimonitor.h
changeset 0 ba25891c3a9e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/appinstaller/AppMngr2/Sisx/inc/appmngr2sisxswimonitor.h	Thu Dec 17 08:51:10 2009 +0200
@@ -0,0 +1,53 @@
+/*
+* 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
+