appinstall_plat/appmngr2runtimeapi/src/appmngr2packageinfo.cpp
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:   PackageInfo implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "appmngr2packageinfo.h"
       
    20 #include <StringLoader.h>               // StringLoader
       
    21 #include <AknQueryDialog.h>             // CAknQueryDialog
       
    22 //#include <appmngr2.rsg>                 // Resource IDs
       
    23 
       
    24 
       
    25 // ======== MEMBER FUNCTIONS ========
       
    26 
       
    27 // ---------------------------------------------------------------------------
       
    28 // CAppMngr2PackageInfo::ConstructL()
       
    29 // ---------------------------------------------------------------------------
       
    30 //
       
    31 EXPORT_C void CAppMngr2PackageInfo::ConstructL()
       
    32     {
       
    33     CAppMngr2InfoBase::ConstructL();    // base class
       
    34     }
       
    35 
       
    36 // ---------------------------------------------------------------------------
       
    37 // CAppMngr2PackageInfo::~CAppMngr2PackageInfo()
       
    38 // ---------------------------------------------------------------------------
       
    39 //
       
    40 EXPORT_C CAppMngr2PackageInfo::~CAppMngr2PackageInfo()
       
    41     {
       
    42     }
       
    43 
       
    44 // ---------------------------------------------------------------------------
       
    45 // CAppMngr2PackageInfo::CAppMngr2PackageInfo()
       
    46 // ---------------------------------------------------------------------------
       
    47 //
       
    48 EXPORT_C CAppMngr2PackageInfo::CAppMngr2PackageInfo( CAppMngr2Runtime& aRuntime,
       
    49         RFs& aFsSession ) : CAppMngr2InfoBase( aRuntime, aFsSession )
       
    50     {
       
    51     }
       
    52 
       
    53 // ---------------------------------------------------------------------------
       
    54 // CAppMngr2PackageInfo::ShowDeleteConfirmationQueryL()
       
    55 // ---------------------------------------------------------------------------
       
    56 //
       
    57 EXPORT_C TBool CAppMngr2PackageInfo::ShowDeleteConfirmationQueryL()
       
    58     {
       
    59     /* Temporary fix until appmngr2pluginapi is removed
       
    60 
       
    61     HBufC* deleteQuery = StringLoader::LoadLC( R_AM_DELETEQUERY, Name() );
       
    62 
       
    63     CAknQueryDialog* dlg = CAknQueryDialog::NewL( CAknQueryDialog::EConfirmationTone );
       
    64     TBool okToDelete = dlg->ExecuteLD( R_APPMNGR2_YES_NO_CONFIRMATION_QUERY, *deleteQuery );
       
    65     CleanupStack::PopAndDestroy( deleteQuery );
       
    66 
       
    67     return okToDelete;
       
    68     */
       
    69     return ETrue;
       
    70     }
       
    71