messagingfw/msgsrvnstore/server/inc/CMsvAttachmentRename.h
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     1 // Copyright (c) 2005-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 __CMSVATTACHMENTRENAME_H__
       
    17 #define __CMSVATTACHMENTRENAME_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 class RReadStream;
       
    22 class RWriteStream;
       
    23 
       
    24 /**
       
    25 Structure for containing information to enable safe attachment
       
    26 renaming.
       
    27 
       
    28 This structure contains data about the renaming of an attachment
       
    29 so that if an error occurs the renaming operation is safe and
       
    30 always maintains data integrity.
       
    31 
       
    32 @see CMsvAttachmentManager
       
    33 @internalComponent
       
    34 */
       
    35 class CMsvAttachmentRename : public CBase
       
    36 	{
       
    37 public:
       
    38 	static CMsvAttachmentRename* NewLC(const TDesC& aOldName, const TDesC& aNewName);
       
    39 	static CMsvAttachmentRename* NewLC();
       
    40 	~CMsvAttachmentRename();
       
    41 	
       
    42 	const TDesC& OldName() const;
       
    43 	const TDesC& NewName() const;
       
    44 	
       
    45 	void InternalizeL(RReadStream& aStream);
       
    46 	void ExternalizeL(RWriteStream& aStream) const;
       
    47 	
       
    48 private:
       
    49 	CMsvAttachmentRename();
       
    50 	void ConstructL(const TDesC& aOldName, const TDesC& aNewName);
       
    51 	
       
    52 private:
       
    53 	HBufC* iOldName;
       
    54 	HBufC* iNewName;
       
    55 	};
       
    56 
       
    57 #endif // __CMSVATTACHMENTRENAME_H__