mobilemessaging/audiomsg/inc/audiomessagesendreadreportoperation.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:  
       
    15 *       CAudioMessageSendReadReportOperation checks whether
       
    16 *       read report can be sent and sends it if requested and permitted.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #ifndef __AUDIOMESSAGESENDREADREPORTOPERATION_H
       
    24 #define __AUDIOMESSAGESENDREADRREPORTOPERATION_H
       
    25 
       
    26 // INCLUDES
       
    27 
       
    28 #include <e32base.h>
       
    29 #include <e32std.h>
       
    30 
       
    31 #include "amsoperationobserver.h"
       
    32 #include "audiomessageoperation.h"
       
    33 
       
    34 // CONSTANTS
       
    35 
       
    36 // MACROS
       
    37 
       
    38 // FORWARD DECLARATIONS
       
    39 class CAudioMessageDocument;
       
    40 
       
    41 // DATA TYPES
       
    42 
       
    43 // FUNCTION PROTOTYPES
       
    44 
       
    45 // CLASS DECLARATION
       
    46 
       
    47 /**
       
    48 * CAudioMessageSendReadReportOperation checks whether
       
    49 * read report can be sent and sends it if requested and permitted.
       
    50 * 
       
    51 * @since 3.2
       
    52 */
       
    53 class CAudioMessageSendReadReportOperation :   public CAudioMessageOperation
       
    54     {
       
    55     public:  // New methods
       
    56 
       
    57         /**
       
    58         * Factory method that creates this object.
       
    59         *
       
    60         * @since    3.2
       
    61         */
       
    62         CAudioMessageSendReadReportOperation(
       
    63             MAmsOperationObserver& aOperationObserver,
       
    64             CAudioMessageDocument& aDocument );
       
    65 
       
    66         /**
       
    67         * Destructor
       
    68         *
       
    69         * @since    3.2
       
    70         */
       
    71         virtual ~CAudioMessageSendReadReportOperation();
       
    72 
       
    73         /**
       
    74         * Send the read report if sender of the original message asked it and 
       
    75         * if it was permitted by mms settings
       
    76         *
       
    77         * @since    3.2
       
    78         */
       
    79         void SendReadReportL( );
       
    80         
       
    81     private:
       
    82         
       
    83         /**
       
    84         * From CActive
       
    85         */
       
    86         void DoCancel();
       
    87 
       
    88         /**
       
    89         * From CActive
       
    90         */
       
    91         void RunL();
       
    92     
       
    93         /**
       
    94         * From CActive
       
    95         */
       
    96 
       
    97     protected: 
       
    98 
       
    99     private:
       
   100 
       
   101     protected: // data
       
   102 
       
   103         enum TAmsReadReportState
       
   104             {
       
   105             EAmsReadReportEnd = 0
       
   106             };
       
   107         TAmsReadReportState iNextState;
       
   108         CMsvOperation*      iSendReadReportOperation;
       
   109     };
       
   110 
       
   111 
       
   112 #endif // __AudioMessageSendReadReportOperation_H