sysstatemgmt/systemstatemgr/cmd/inc/cmdfinalisedrives.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __CMDFINALISEDRIVES_H__
       
    17 #define __CMDFINALISEDRIVES_H__
       
    18 
       
    19 #include "ssmcommandbase.h"
       
    20 
       
    21 class TSsmCommandParameters;
       
    22 class RReadStream;
       
    23 
       
    24 /**
       
    25 Built-in command for finalising the drives
       
    26 @internalComponent
       
    27 @released
       
    28 @see RFs
       
    29 */
       
    30 NONSHARABLE_CLASS (CCmdFinaliseDrives) : public CSsmCommandBase
       
    31 	{
       
    32 public:
       
    33 	static CCmdFinaliseDrives* NewL(RReadStream& aReadStream);
       
    34 	static CCmdFinaliseDrives* NewL(TCmdErrorSeverity aSeverity);
       
    35 	static CCmdFinaliseDrives* NewL(TSsmCommandParameters& aCommandParameters);
       
    36 	//Must be used only by CLE to reconstruct the command
       
    37 	static CCmdFinaliseDrives* NewLC(const CCmdFinaliseDrives& aCmdFinaliseDrives);
       
    38 	~CCmdFinaliseDrives();
       
    39 
       
    40 	// from MSsmCommand
       
    41 	TSsmCommandType Type() const;
       
    42 	void ExternalizeL(RWriteStream& aWriteStream) const;
       
    43 	void Execute(TRequestStatus& aStatus);
       
    44 	void ExecuteCancel();
       
    45 	void Release();
       
    46 
       
    47 protected:
       
    48 	// from CActive
       
    49 	void RunL();
       
    50 	void DoCancel();
       
    51 	TInt RunError(TInt aError);
       
    52 
       
    53 private:
       
    54 	CCmdFinaliseDrives();
       
    55 	CCmdFinaliseDrives(TCmdErrorSeverity aSeverity);
       
    56 	void InternalizeL(RReadStream& aReadStream);
       
    57 	void ConstructL(RReadStream& aReadStream);
       
    58 	void ConstructL(TSsmCommandParameters& aCommandParameters);
       
    59 	void ConstructL(const CCmdFinaliseDrives& aCmdFinaliseDrives);
       
    60 	static TInt MaxSupportedVersion();
       
    61 
       
    62 private:
       
    63     RFs iFs;				// handle to filesystem
       
    64 	};
       
    65 
       
    66 #endif // __CMDFINALISEDRIVES_H__