diff -r d1daf54a55b5 -r 1957042d8c7e filemanager/bkupengine/inc/TMMCScBkupArchiveVector.h --- a/filemanager/bkupengine/inc/TMMCScBkupArchiveVector.h Tue Feb 02 00:03:31 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,177 +0,0 @@ -/* -* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0"" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Declaration for TMMCScBkupArchiveVector -* -* -*/ - -#ifndef __TMMCSCBKUPARCHIVEVECTOR_H__ -#define __TMMCSCBKUPARCHIVEVECTOR_H__ - -// System includes -#include -#include - - -/** -* -* -* @since 3.0 -*/ -NONSHARABLE_CLASS(TMMCScBkupArchiveVector) - { - public: - - /** - * C++ default constructor - */ - inline TMMCScBkupArchiveVector() - { Reset(); } - - /** - * C++ default constructor - */ - inline TMMCScBkupArchiveVector( TInt aOffset, TInt aLength ) - : iOffset( aOffset ), iLength( aLength ) - {} - - /** - * C++ copy constructor - */ - inline TMMCScBkupArchiveVector( const TMMCScBkupArchiveVector& aVector ) - : iOffset( aVector.Offset() ), iLength( aVector.Length() ) - {} - - public: - - /** - * - */ - inline TInt Offset() const { return iOffset; } - - /** - * - */ - inline void SetOffset( TInt aOffset ) { iOffset = aOffset; } - - /** - * - */ - inline TInt Length() const { return iLength; } - - /** - * - */ - inline void SetLength( TInt aLength ) { iLength = aLength; } - - /** - * - */ - inline TInt EndOffset() const { return (iOffset + iLength); } - - /** - * - */ - inline void AdjustByDelta( TInt aOffsetDelta ) { iOffset += aOffsetDelta; } - - /** - * - */ - static TInt ExternalizedSize(); - - public: - - /** - * - */ - inline void Reset() { iLength = iOffset = 0; } - - /** - * - */ - void ExternalizeL( RWriteStream& aStream ) const; - - /** - * - */ - void InternalizeL( RReadStream& aStream ); - - private: // Internal enumerations - enum - { - EStreamFormatVersion1 = 1 - }; - - private: // Member data - - /** - * - */ - TInt iOffset; - - /** - * - */ - TInt iLength; - }; - - - -/** -* -* @since 3.0 -*/ -NONSHARABLE_CLASS(TMMCScBkupArchiveDriveAndVector) - { - public: - - /** - * C++ default constructor - */ - inline TMMCScBkupArchiveDriveAndVector() : iDrive( EDriveC ) { } - - /** - * C++ default constructor - */ - inline TMMCScBkupArchiveDriveAndVector( TDriveNumber aDrive, const TMMCScBkupArchiveVector& aVector ) : iDrive( aDrive), iVector( aVector ) { } - - public: - - /** - * Internalize object from stream - */ - void InternalizeL( RReadStream& aStream ); - - /** - * Externalize object to stream - */ - void ExternalizeL( RWriteStream& aStream ) const; - - private: // Internal enumerations - enum - { - EStreamFormatVersion1 = 1 - }; - - public: // Data members - TDriveNumber iDrive; - TMMCScBkupArchiveVector iVector; - }; - - - - -#endif // __TMMCSCBKUPARCHIVEVECTOR_H__ - -//End of File