email/mail/ViewerSrc/cmailoperation.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:  Mail operation base class
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_CMAILOPERATION_H
       
    19 #define C_CMAILOPERATION_H
       
    20 
       
    21 #include <msvapi.h>
       
    22 
       
    23 /**
       
    24  *  Operation
       
    25  *
       
    26  *  Mail operation base class
       
    27  *
       
    28  *  @lib none, internal
       
    29  *  @since S60 v3.1
       
    30  */
       
    31 class CMailOperation  : public CMsvOperation
       
    32     {
       
    33 
       
    34 public:
       
    35     // See CMsvOperation
       
    36     CMailOperation( 
       
    37         CMsvSession& aMsvSession, 
       
    38         TInt aPriority, 
       
    39         TRequestStatus& aObserverRequestStatus )
       
    40         :CMsvOperation( 
       
    41         aMsvSession,
       
    42         aPriority,
       
    43         aObserverRequestStatus ){};
       
    44         
       
    45     ~CMailOperation(){};
       
    46 
       
    47     /**
       
    48      * Suspend ongoing operation
       
    49      *
       
    50      * @since S60 v3.1
       
    51      * @param aSetSuspend ETrue suspends operation
       
    52      */
       
    53     virtual void SuspendL( TBool aSetSuspend ) = 0;
       
    54     
       
    55     /**
       
    56      * Operation completed
       
    57      *
       
    58      * @since S60 v3.1
       
    59      * @param aCompletionCode completion code
       
    60      * @return ETrue if operation can be stopped.
       
    61      */
       
    62     virtual TBool CompletedL( TInt aCompletionCode ) = 0;    
       
    63 
       
    64     };
       
    65 
       
    66 #endif //  C_CMAILOPERATION_H