appinstaller/AppMngr2/Widget/inc/appmngr2widgetappinfo.h
changeset 80 9dcba1ee99f7
parent 77 d1838696558c
equal deleted inserted replaced
77:d1838696558c 80:9dcba1ee99f7
     1 /*
       
     2 * Copyright (c) 2008 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:   WidgetAppInfo represents installed Java applications
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_APPMNGR2WIDGETAPPINFO_H
       
    20 #define C_APPMNGR2WIDGETAPPINFO_H
       
    21 
       
    22 #include <appmngr2appinfo.h>            // CAppMngr2AppInfo
       
    23 #include <SWInstApi.h>                  // SwiUI::RSWInstLauncher
       
    24 
       
    25 class CWidgetInfo;
       
    26 
       
    27 
       
    28 class CAppMngr2WidgetAppInfo : public CAppMngr2AppInfo
       
    29     {
       
    30 public:     // constructor and destructor
       
    31     static CAppMngr2WidgetAppInfo* NewL( CAppMngr2Runtime& aRuntime,
       
    32             const CWidgetInfo& aWidget, RFs& aFsSession );
       
    33     ~CAppMngr2WidgetAppInfo();
       
    34 
       
    35 public:     // from CAppMngr2InfoBase
       
    36     TInt IconIndex() const;
       
    37     const TDesC& Name() const;
       
    38     const TDesC& Details() const;
       
    39     TBool SupportsGenericCommand( TInt aCmdId );
       
    40     void HandleCommandL( TInt aCommandId, TRequestStatus& aStatus );
       
    41     void HandleCommandResultL( TInt aStatus );
       
    42     void CancelCommand();
       
    43 
       
    44 protected:  // new functions
       
    45     CAppMngr2WidgetAppInfo( CAppMngr2Runtime& aRuntime, RFs& aFsSession );
       
    46     void ConstructL( const CWidgetInfo& aWidget );
       
    47 
       
    48 private:    // new functions
       
    49     void ShowDetailsL();
       
    50     
       
    51 private:    // data
       
    52     TUid iWidgetUid;
       
    53     HBufC* iName;
       
    54     HBufC* iDetails;
       
    55     SwiUI::RSWInstLauncher* iSWInstLauncher;
       
    56     };
       
    57 
       
    58 #endif // C_APPMNGR2WIDGETAPPINFO_H
       
    59