email/mail/ViewerSrc/cmailwaitoperation.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  wait operation
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_MAILWAITOPERATION_H
       
    19 #define C_MAILWAITOPERATION_H
       
    20 
       
    21 #include <msvapi.h>
       
    22 
       
    23 /**
       
    24  *  Mail viewer wait operation
       
    25  *
       
    26  *  Suspends operation execution when UI needs to execute time consuming operations.
       
    27  *
       
    28  *  @lib none
       
    29  *  @since S60 3.1
       
    30  */
       
    31 class CMailWaitOperation : public CMsvOperation
       
    32     {
       
    33 public:
       
    34     /**
       
    35      * NewL
       
    36      *
       
    37      * @since S60 3.1
       
    38      * @param aMsvSession Message server session.
       
    39      * @param aObserverRequestStatus Request status
       
    40      * @return ?description
       
    41      */
       
    42     static CMailWaitOperation* NewL( 
       
    43     	CMsvSession& aMsvSession, 
       
    44     	TRequestStatus& aObserverRequestStatus );
       
    45 
       
    46 
       
    47     ~CMailWaitOperation();
       
    48 
       
    49 protected:
       
    50 
       
    51     /**
       
    52      * From CMsvOperation.
       
    53      */
       
    54     const TDesC8& ProgressL();
       
    55     
       
    56     /**
       
    57      * From CActive.
       
    58      */    
       
    59 	void DoCancel();
       
    60 	void RunL();
       
    61 	
       
    62 private:
       
    63 
       
    64     CMailWaitOperation(
       
    65     	CMsvSession& aMsvSession, 
       
    66     	TRequestStatus& aObserverRequestStatus );
       
    67 
       
    68     void ConstructL();
       
    69     };
       
    70 
       
    71 
       
    72 #endif // C_MAILWAITOPERATION_H