appinstaller/AppMngr2/Widget/inc/appmngr2widgetpackageinfo.h
changeset 0 ba25891c3a9e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/appinstaller/AppMngr2/Widget/inc/appmngr2widgetpackageinfo.h	Thu Dec 17 08:51:10 2009 +0200
@@ -0,0 +1,57 @@
+/*
+* Copyright (c) 2008 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:   Widget PackageInfo represents installable ZIP files
+*
+*/
+
+
+#ifndef C_APPMNGR2WIDGETPACKAGEINFO_H
+#define C_APPMNGR2WIDGETPACKAGEINFO_H
+
+#include <appmngr2packageinfo.h>        // CAppMngr2PackageInfo
+#include <SWInstApi.h>                  // SwiUI::RSWInstLauncher
+
+
+class CAppMngr2WidgetPackageInfo : public CAppMngr2PackageInfo
+    {
+public:     // constructor and destructor
+    static CAppMngr2WidgetPackageInfo* NewL( CAppMngr2Runtime& aRuntime,
+            const TDesC& aFileName, RFs& aFs );
+    ~CAppMngr2WidgetPackageInfo();
+
+public:     // from CAppMngr2PackageInfo
+    TInt IconIndex() const;
+    const TDesC& Name() const;
+    const TDesC& Details() const;
+    TBool SupportsGenericCommand( TInt aCmdId );
+    void HandleCommandL( TInt aCommandId, TRequestStatus& aStatus );
+    void HandleCommandResultL( TInt aStatus );
+    void CancelCommand();
+
+private:    // new functions
+    CAppMngr2WidgetPackageInfo( CAppMngr2Runtime& aRuntime, RFs& aFs );
+    void ConstructL( const TDesC& aFileName );
+
+private:    // new functions
+    void ShowDetailsL();
+    
+private:    // data
+    HBufC* iName;
+    HBufC* iDetails;
+    HBufC* iFileName;
+    SwiUI::RSWInstLauncher* iSWInstLauncher;
+    };
+
+#endif // C_APPMNGR2WIDGETPACKAGEINFO_H
+