messagingfw/msgsrvnstore/server/inc/CMsvAttachmentWaiter.h
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     1 // Copyright (c) 2004-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 __CMSVATTACHMENTWAITER_H__
       
    17 #define __CMSVATTACHMENTWAITER_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 class CMsvStore;
       
    22 class MMsvAttachmentManager;
       
    23 
       
    24 /**
       
    25 
       
    26 @internalTechnology
       
    27 @released
       
    28 */
       
    29 class CMsvAttachmentWaiter : public CActive
       
    30 	{
       
    31 public:
       
    32 	static CMsvAttachmentWaiter* NewL();
       
    33 	~CMsvAttachmentWaiter();
       
    34 	
       
    35 	void StartWaitingL(TRequestStatus& aStatus, CMsvStore* aStore, MMsvAttachmentManager* aAttachmentManager);
       
    36 	
       
    37 private:
       
    38 	CMsvAttachmentWaiter();
       
    39 	
       
    40 	void Reset();
       
    41 	
       
    42 	// from CActive
       
    43 	void RunL();
       
    44 	void DoCancel();
       
    45 	TInt RunError(TInt aError);
       
    46 	
       
    47 private:
       
    48 	TRequestStatus* iReportStatus;
       
    49 	CMsvStore* iStore;
       
    50 	MMsvAttachmentManager* iAttachmentManager;
       
    51 	};
       
    52 
       
    53 #endif // __CMSVATTACHMENTWAITER_H__