mobilemessaging/mmsui/viewerinc/MmsViewerSendReadReportOperation.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 *       CMmsViewerSendReadReportOperation checks whether
       
    16 *       read report can be sent and sends it if requested and permitted.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #ifndef __MMSVIEWERSENDREADREPORTOPERATION_H
       
    24 #define __MMSVIEWERSENDREADREPORTOPERATION_H
       
    25 
       
    26 // INCLUDES
       
    27 
       
    28 #include <e32base.h>
       
    29 #include <e32std.h>
       
    30 
       
    31 #include "MmsViewerOperation.h"
       
    32 
       
    33 // CONSTANTS
       
    34 
       
    35 // MACROS
       
    36 
       
    37 // FORWARD DECLARATIONS
       
    38 class CMmsViewerDocument;
       
    39 
       
    40 // DATA TYPES
       
    41 
       
    42 // FUNCTION PROTOTYPES
       
    43 
       
    44 // CLASS DECLARATION
       
    45 
       
    46 /**
       
    47 * CMmsViewerSendReadReportOperation checks whether
       
    48 * read report can be sent and sends it if requested and permitted.
       
    49 * 
       
    50 * @since 3.2
       
    51 */
       
    52 class CMmsViewerSendReadReportOperation :   public CMmsViewerOperation
       
    53     {
       
    54     public:  // New methods
       
    55 
       
    56         /**
       
    57         * Factory method that creates this object.
       
    58         *
       
    59         * @since    3.2
       
    60         */
       
    61         CMmsViewerSendReadReportOperation(
       
    62             MMmsViewerOperationObserver& aOperationObserver,
       
    63             CMmsViewerDocument& aDocument,
       
    64             RFs& aFs );
       
    65 
       
    66         /**
       
    67         * Destructor
       
    68         *
       
    69         * @since    3.2
       
    70         */
       
    71         virtual ~CMmsViewerSendReadReportOperation();
       
    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         TInt RunError( TInt aError );
       
    97 
       
    98     protected: 
       
    99 
       
   100     private:
       
   101 
       
   102     protected: // data
       
   103 
       
   104        CMsvOperation*      iSendReadReportOperation;
       
   105     };
       
   106 
       
   107 
       
   108 #endif // __MmsViewerSendReadReportOperation_H