appinstaller/AppMngr2/Widget/inc/appmngr2widgetappinfo.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:21:33 +0300
branchRCL_3
changeset 25 7333d7932ef7
parent 12 7ca52d38f8c3
child 26 8b7f4e561641
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* 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:   WidgetAppInfo represents installed Java applications
*
*/


#ifndef C_APPMNGR2WIDGETAPPINFO_H
#define C_APPMNGR2WIDGETAPPINFO_H

#include <appmngr2appinfo.h>            // CAppMngr2AppInfo
#include <SWInstApi.h>                  // SwiUI::RSWInstLauncher

class CWidgetInfo;


class CAppMngr2WidgetAppInfo : public CAppMngr2AppInfo
    {
public:     // constructor and destructor
    static CAppMngr2WidgetAppInfo* NewL( CAppMngr2Runtime& aRuntime,
            const CWidgetInfo& aWidget, RFs& aFsSession );
    ~CAppMngr2WidgetAppInfo();

public:     // from CAppMngr2InfoBase
    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();

protected:  // new functions
    CAppMngr2WidgetAppInfo( CAppMngr2Runtime& aRuntime, RFs& aFsSession );
    void ConstructL( const CWidgetInfo& aWidget );

private:    // new functions
    void ShowDetailsL();
    
private:    // data
    TUid iWidgetUid;
    HBufC* iName;
    HBufC* iDetails;
    SwiUI::RSWInstLauncher* iSWInstLauncher;
    };

#endif // C_APPMNGR2WIDGETAPPINFO_H