secureswitools/swisistools/source/interpretsislib/installablefile.h
branchRCL_3
changeset 73 79647526f98c
parent 0 ba25891c3a9e
child 81 42552535c1ac
equal deleted inserted replaced
70:e8965914fac7 73:79647526f98c
     1 /*
     1 /*
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    37 struct InstallableFile
    37 struct InstallableFile
    38 {
    38 {
    39 
    39 
    40 public:
    40 public:
    41 	// constructor for non stub files
    41 	// constructor for non stub files
    42 	InstallableFile(const CSISFileDescription&, const CSISFileData*, const std::wstring aDrivePath, int aInstallingDrive);
    42 	InstallableFile(const CSISFileDescription&, const CSISFileData*, const std::wstring aDrivePath,
       
    43 						int aInstallingDrive, const int aSystemdrive, const bool aGenerateRomStub);
    43 	
    44 	
    44 	// constructor for stub files
    45 	// constructor for stub files
    45 	InstallableFile(const CSISFileDescription&, const std::wstring aDrivePath, int aInstallingDrive);
    46 	InstallableFile(const CSISFileDescription&, const std::wstring aDrivePath, int aInstallingDrive, 
       
    47 						const int aSystemdrive, const bool aGenerateRomStub);
    46 	~InstallableFile();
    48 	~InstallableFile();
    47 
    49 
    48 public:
    50 public:
    49 	bool IsExecutable() const { return isExecutable;};
    51 	bool IsExecutable() const { return isExecutable;};
    50 	bool IsExe() const { return isExe;};
    52 	bool IsExe() const { return isExe;};
    51 	TUint32 Sid() const{ return iSid;};
    53 	TUint32 Sid() const{ return iSid;};
    52 	bool IsStub() const{ return isStub;};
    54 	bool IsStub() const{ return isStub;};
    53 	const CSISFileDescription* FileDescription() const{ return iFileDescription;};
    55 	const CSISFileDescription* FileDescription() const{ return iFileDescription;};
    54 	const CSISFileData* FileData() const{ return iFileData;};
    56 	const CSISFileData* FileData() const{ return iFileData;};
    55 	const std::wstring& GetTarget() const { return iTargetFile; };
    57 	const std::wstring& GetTarget() const { return iTargetFile; };
       
    58 	void SetTarget(const std::wstring& aTargetFile);
    56 	const std::wstring& GetLocalTarget() const { return iLocalTargetFile; };
    59 	const std::wstring& GetLocalTarget() const { return iLocalTargetFile; };
    57 
    60 
    58 private:
    61 private:
    59 	void ChangeTargetDrive(const std::wstring aDrivePath, int aInstallingDrive);
    62 	void ChangeTargetDrive(const std::wstring aDrivePath, int aInstallingDrive, 
       
    63 									const int aSystemdrive, const bool aGenerateRomStub);
    60 
    64 
    61 private:
    65 private:
    62 	bool isExecutable;
    66 	bool isExecutable;
    63 	bool isExe;
    67 	bool isExe;
    64 	TUint32 iSid;
    68 	TUint32 iSid;