obex/obexprotocol/obex/inc/obexsyncfilewriter.h
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2003-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 /**
       
    17  @file
       
    18  @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef __OBEXSYNCFILEWRITER_H__
       
    22 #define __OBEXSYNCFILEWRITER_H__
       
    23 
       
    24 #include <e32base.h>
       
    25 #include "obexfilewriter.h"
       
    26 
       
    27 class RFile;
       
    28 /**
       
    29 Obex Synchronous File Writer
       
    30 
       
    31 This object writes data from Obex objects to disk synchronously.
       
    32 
       
    33 Not intended for derivation.
       
    34 
       
    35 @internalComponent
       
    36 @released
       
    37 */
       
    38 NONSHARABLE_CLASS(CObexSyncFileWriter) : public CBase, public MObexFileWriter
       
    39 	{
       
    40 public:
       
    41 	// Construction / destruction
       
    42 	static MObexFileWriter* NewL(RFile& aFile);
       
    43 	~CObexSyncFileWriter();
       
    44 
       
    45 private:
       
    46 	// From MObexFileWriter
       
    47 	TInt Write(TInt aPos, CBufBase*& aBuf);
       
    48 	TInt FinalWrite(TInt aPos, CBufBase*& aBuf, TInt aLength);
       
    49 
       
    50 private:
       
    51 	// Construction
       
    52 	void ConstructL();
       
    53 	CObexSyncFileWriter(RFile& aFile);
       
    54 	
       
    55 // Unowned
       
    56 private:
       
    57 	/** Reference to the file which this object is used to write to */
       
    58 	RFile&		iFile;
       
    59 	};
       
    60 
       
    61 #endif // __OBEXSYNCFILEWRITER_H__