appinstaller/AppMngr2/inc/appmngr2packageinfomaker.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     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:   Creates PackageInfo objects asynchronously
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_APPMNGR2PACKAGEINFOMAKER_H
       
    20 #define C_APPMNGR2PACKAGEINFOMAKER_H
       
    21 
       
    22 #include "appmngr2infomaker.h"          // CAppMngr2InfoMaker
       
    23 
       
    24 class CAppMngr2Runtime;
       
    25 class CAppMngr2PackageInfo;
       
    26 class CAppMngr2RecognizedFile;
       
    27 
       
    28 
       
    29 class CAppMngr2PackageInfoMaker : public CAppMngr2InfoMaker
       
    30     {
       
    31 public:     // constructor and destructor
       
    32     static CAppMngr2PackageInfoMaker* NewL( CAppMngr2Runtime& aPlugin,
       
    33             MAppMngr2InfoMakerObserver& aObserver, RFs& aFs );
       
    34     static CAppMngr2PackageInfoMaker* NewLC( CAppMngr2Runtime& aPlugin,
       
    35             MAppMngr2InfoMakerObserver& aObserver, RFs& aFs );
       
    36     ~CAppMngr2PackageInfoMaker();
       
    37     
       
    38 public:     // from CActive, via CAppMngr2InfoMaker
       
    39     void DoCancel();
       
    40     void RunL();
       
    41 
       
    42 public:     // new functions
       
    43     void AddFileL( CAppMngr2RecognizedFile* aFile );    // takes ownership
       
    44     void StartGettingInstallationFilesL();
       
    45 
       
    46 private:    // new functions
       
    47     CAppMngr2PackageInfoMaker( CAppMngr2Runtime& aPlugin,
       
    48             MAppMngr2InfoMakerObserver& aObserver, RFs& aFs );
       
    49     void ConstructL();
       
    50 
       
    51 private:    // data
       
    52     RPointerArray<CAppMngr2RecognizedFile> iFiles;
       
    53     RPointerArray<CAppMngr2PackageInfo> iPackageInfos;
       
    54     };
       
    55 
       
    56 #endif  // C_APPMNGR2PACKAGEINFOMAKER_H
       
    57