satengine/SatServer/Commands/SendSmCmd/inc/CSatSSendMessageNoLoggingHandler.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     1 /*
       
     2 * Copyright (c) 2002-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:  This is the handler for the SIM Application Toolkit
       
    15 *                Send Message No
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CSATSSENDMESSAGENOLOGGINGHANDLER_H
       
    21 #define CSATSSENDMESSAGENOLOGGINGHANDLER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <etelsat.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class MSatApi;
       
    29 class MSatSmsObserver;
       
    30 
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  This is the handler for the Send Message No Logging.
       
    36 *  This active object is registered with ETel SAT Api to receive notifications
       
    37 *  about the completion of Send SMS message
       
    38 *
       
    39 *  @lib SendSmCmd.lib
       
    40 *  @since Series 60 3.0
       
    41 */
       
    42 class CSatSSendMessageNoLoggingHandler : public CActive
       
    43     {
       
    44     public: // Constructors and destructor
       
    45 
       
    46         /**
       
    47         * Two-phased constructor.
       
    48         * @param aSatApi Reference to Sat api.
       
    49         * @param aObserver Observer of the sms end event.
       
    50         */
       
    51         static CSatSSendMessageNoLoggingHandler* NewL(
       
    52             MSatApi& aSatApi,
       
    53             MSatSmsObserver& aObserver );
       
    54 
       
    55         /**
       
    56         * Destructor.
       
    57         */
       
    58         virtual ~CSatSSendMessageNoLoggingHandler();
       
    59 
       
    60     public: // New functions
       
    61 
       
    62         /**
       
    63         * Starts listening for the Sat command.
       
    64         * @param aSendSmData Data of the proactive SendSm command.
       
    65         */
       
    66         void Start( const RSat::TSendSmV1& aSendSmData );
       
    67 
       
    68     protected: // Functions from base classes
       
    69 
       
    70         /**
       
    71         * From CActive, handles the request completion.
       
    72         */
       
    73         void RunL();
       
    74 
       
    75         /**
       
    76         * From CActive, implements the cancel protocol.
       
    77         */
       
    78         void DoCancel();
       
    79 
       
    80     private: // Constructors
       
    81 
       
    82         /**
       
    83         * C++ default constructor.
       
    84         * @param aSatApi Reference to Sat api.
       
    85         * @param aObserver Observer of the sms end event.
       
    86         */
       
    87         CSatSSendMessageNoLoggingHandler(
       
    88             MSatApi& aSatApi,
       
    89             MSatSmsObserver& aObserver );
       
    90 
       
    91     private: // Data
       
    92 
       
    93         // The data structure for the command data.
       
    94         RSat::TSatSmsV1 iSmsData;
       
    95 
       
    96         // The data package for IPC.
       
    97         RSat::TSatSmsV1Pckg iSmsPckg;
       
    98 
       
    99         // Sat api.
       
   100         MSatApi& iSatApi;
       
   101 
       
   102         // Observer of the sms sending
       
   103         MSatSmsObserver& iObserver;
       
   104 
       
   105         // Reference to SMS message.
       
   106         TUint16 iMessageRef;
       
   107     };
       
   108 
       
   109 #endif      // CSATSSENDMESSAGENOLOGGINGHANDLER_H
       
   110 
       
   111 // End of File