smartinstaller/adm/inc/ADMSisParser.h
branchADM
changeset 48 364021cecc90
equal deleted inserted replaced
47:3f419852be07 48:364021cecc90
       
     1 /*
       
     2 * Copyright (c) 2009-2010 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: 
       
    15 *     Declares the CXmlParser class for ADM application.
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef __ADMSISPARSER_H__
       
    22 #define __ADMSISPARSER_H__
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <f32file.h>
       
    26 
       
    27 // Forward Declaration
       
    28 class CPackageInfo;
       
    29 class CDepTree;
       
    30 namespace Swi {
       
    31 namespace Sis {
       
    32 class CController;
       
    33 }
       
    34 }
       
    35 
       
    36 class CSisParser: public CBase
       
    37 	{
       
    38 public:
       
    39 	static CSisParser* NewL();
       
    40 	static CSisParser* NewLC();
       
    41 	~CSisParser();
       
    42 
       
    43 	CPackageInfo* GetDepContentsL(const TDesC& aDepFileName, CPackageInfo *packageInfo,CDepTree* mainTree);
       
    44 
       
    45 public:
       
    46 
       
    47 	enum XmlParserError
       
    48 		{
       
    49 		EErrorXmlNotWelformed,
       
    50 		EMissingPackageUid,
       
    51 		EMissingPackageName,
       
    52 		EMissingPackageVersion,
       
    53 		EMissingVendorName,
       
    54 		EMissingPackageUrl,
       
    55 		EInvalidPackageUid,
       
    56 		EIncorrectPackageUid,
       
    57 		EMissingDepVersion,
       
    58 		EInvalidVersion,
       
    59 		EInvalidMachineID,
       
    60 		EMissingDepFileName,
       
    61 		EMissingSisFileName,
       
    62 		EMissingSubmissionDate,
       
    63 		EMissingModificationDate,
       
    64 		EMissingDownloadSize,
       
    65 		EMissingInstalledSize,
       
    66 		EMissingMachineID,
       
    67 		EDeviceNotSupported,
       
    68 		};
       
    69 
       
    70 private:
       
    71 	void ConstructL();
       
    72 	CSisParser();
       
    73 	void SetDependenciesL(CPackageInfo* aPackageInfo, CDepTree* mainTree, Swi::Sis::CController* controller, const TDesC& aFileName);
       
    74 	void SetLanguageSpecificNamesL(Swi::Sis::CController* aController, CPackageInfo* aPackage);
       
    75 private:
       
    76 	RFs iRfs;
       
    77 	};
       
    78 
       
    79 #endif __ADMSISPARSER_H__