appinstaller/AppMngr2/Widget/inc/appmngr2widgetappinfo.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:22:02 +0100
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2008-2010 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;
    HBufC8* iMimeType;
    };

#endif // C_APPMNGR2WIDGETAPPINFO_H