messagingappbase/mce/inc/MceSendOperation.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2002 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:  
       
    15 *     Sends messages from Outbox when user selects "Start" in Outbox.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #if !defined(__SENDOP_H__)
       
    22 #define __SENDOP_H__
       
    23 
       
    24 
       
    25 //  INCLUDES
       
    26 #include <msvapi.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CMtmStore;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  Sends messages from Outbox when user selects "Start" in Outbox.
       
    35 */
       
    36 class CMceSendOperation : public CMsvOperation
       
    37     {
       
    38 public:
       
    39         /**
       
    40         * Constructor.
       
    41         */
       
    42         static CMceSendOperation* NewL(CMsvSession& aMsvSession, TRequestStatus& aObserverRequestStatus, CMtmStore& aMtmStore, CMsvEntrySelection* aSel);
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         virtual ~CMceSendOperation();
       
    47         /**
       
    48         *
       
    49         */
       
    50         virtual const TDesC8& ProgressL();
       
    51 private:
       
    52         /**
       
    53         * Constructor.
       
    54         */
       
    55         CMceSendOperation(CMsvSession& aMsvSession, TRequestStatus& aObserverRequestStatus, CMtmStore& aMtmStore);
       
    56         /**
       
    57         * Constructor.
       
    58         */
       
    59         void ConstructL(CMsvEntrySelection* aSel);
       
    60         /**
       
    61         * From CActive
       
    62         */
       
    63         void DoCancel();
       
    64         /**
       
    65         * From CActive
       
    66         */
       
    67         void RunL();
       
    68 
       
    69         /**
       
    70         *
       
    71         */
       
    72         void StartNextOperation();
       
    73 
       
    74         /**
       
    75         *
       
    76         */
       
    77         void MakeNewOperationL();
       
    78 private:
       
    79         CMtmStore&              iMtmStore;
       
    80         CArrayPtrFlat<CMsvEntrySelection> iSelections;
       
    81         CArrayFixFlat<TMsvId>   iServices;
       
    82         CMsvOperation*          iOperation;
       
    83         CMsvEntry*              iCEntry;
       
    84         TBuf8<1>                iBlank;
       
    85     };
       
    86 
       
    87 #endif // __SENDOP_H__
       
    88 
       
    89 // End of file