epoc32/include/mw/mmsvattachmentmanager.h
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     7 //
     8 // Initial Contributors:
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
    10 //
    10 //
    11 // Contributors:
    11 // Contributors:
    12 //
    12 //
    13 // Description:
    13 // Description:
       
    14 // CMsvAttachmentManager.h
    14 //
    15 //
       
    16 /**
       
    17  * @file 
       
    18  * @publishedAll
       
    19  * @released
       
    20  */
    15 
    21 
    16 #ifndef __MMSVATTACHMENTMANAGER_H__
    22 #ifndef __MMSVATTACHMENTMANAGER_H__
    17 #define __MMSVATTACHMENTMANAGER_H__
    23 #define __MMSVATTACHMENTMANAGER_H__
    18 
    24 
    19 #include <e32base.h>
    25 #include <e32base.h>
   241 	
   247 	
   242 	@param aIndex The array index position of the attachment.
   248 	@param aIndex The array index position of the attachment.
   243 	@return A writable open file handle for the attachment file. Caller must close the handle.
   249 	@return A writable open file handle for the attachment file. Caller must close the handle.
   244 	@leave KErrNotSupported If the attachment is not a file attachment in the message store.
   250 	@leave KErrNotSupported If the attachment is not a file attachment in the message store.
   245 	@leave KErrAccessDenied If attachment manager is in read-only mode.
   251 	@leave KErrAccessDenied If attachment manager is in read-only mode.
   246 	@internalComponent
       
   247 	*/
   252 	*/
   248 	virtual RFile GetAttachmentFileForWriteL(TInt aIndex) = 0;
   253 	virtual RFile GetAttachmentFileForWriteL(TInt aIndex) = 0;
   249 	
   254 	
   250 	/**
   255 	/**
   251 	Returns an open writable file handle for the attachment file.
   256 	Returns an open writable file handle for the attachment file.
   257 	@param aIndex The array index position of the attachment.
   262 	@param aIndex The array index position of the attachment.
   258 	@return A writable open file handle for the attachment file. Caller must close the handle.
   263 	@return A writable open file handle for the attachment file. Caller must close the handle.
   259 	@leave KErrNotSupported If the attachment is not a file attachment in the message store.
   264 	@leave KErrNotSupported If the attachment is not a file attachment in the message store.
   260 	@leave KErrNotFound If an attachment with the specified attachment Id is not found.
   265 	@leave KErrNotFound If an attachment with the specified attachment Id is not found.
   261 	@leave KErrAccessDenied If attachment manager is in read-only mode.
   266 	@leave KErrAccessDenied If attachment manager is in read-only mode.
   262 	@internalComponent
       
   263 	*/
   267 	*/
   264 	virtual RFile GetAttachmentFileForWriteL(TMsvAttachmentId aId) = 0;
   268 	virtual RFile GetAttachmentFileForWriteL(TMsvAttachmentId aId) = 0;
   265 	
   269 	
   266 	/**
   270 	/**
   267 	Removes the attachment from the message entry.
   271 	Removes the attachment from the message entry.