satengine/SatServer/Commands/SendSSCmd/inc/csatsendssadditionalinfohandler.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:  Handler for the SS Additional Info notification
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CSATSENDSSADDITIONALINFOHANDLER_H
       
    20 #define CSATSENDSSADDITIONALINFOHANDLER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <rmmcustomapi.h>
       
    24 
       
    25 class CSendSSHandler;
       
    26 
       
    27 /**
       
    28 *  This is the handler for the SS Additional Info notification.
       
    29 *  This active objects is registered with Custom ETel Api to receive notifications
       
    30 *  about the SS Additional Info.
       
    31 *
       
    32 *  @lib SendSsCmd
       
    33 *  @since S60 v3.1
       
    34 */
       
    35 class CSatSendSsAdditionalInfoHandler : public CActive
       
    36     {
       
    37 
       
    38 public:
       
    39 
       
    40     /**
       
    41      * Two-phased constructor.
       
    42      * @param aPhone A reference to the Custom ETel API.
       
    43      * @param aDispatcher Pointer to Ss handler
       
    44      * @return a pointer to the newly created active object.
       
    45      */
       
    46     static CSatSendSsAdditionalInfoHandler* NewL( RMmCustomAPI& aPhone,
       
    47         CSendSSHandler* aDispatcher );
       
    48 
       
    49     /**
       
    50      * Destructor.
       
    51      */
       
    52     virtual ~CSatSendSsAdditionalInfoHandler();
       
    53 
       
    54     /**
       
    55      * Starts listening for the Sat command. 
       
    56      */
       
    57     void Start();
       
    58 
       
    59 protected:
       
    60 
       
    61     /**
       
    62      * From CActive, handles the request completion.
       
    63      */
       
    64     void RunL();
       
    65 
       
    66     /**
       
    67      * From CActive, implements the cancel protocol.
       
    68      */
       
    69     void DoCancel();
       
    70 
       
    71 private: // data
       
    72 
       
    73     /**
       
    74      * C++ default constructor.
       
    75      * @param aPriority An active object priority value.
       
    76      * @param aDispatcher Pointer to Ss handler
       
    77      * @param aPhone A reference to the Custom ETel API.
       
    78      */
       
    79     CSatSendSsAdditionalInfoHandler( TInt aPriority, RMmCustomAPI& aPhone,
       
    80         CSendSSHandler* aDispatcher );
       
    81 
       
    82 private:
       
    83 
       
    84     /**
       
    85      * Reference to the Custom API
       
    86      */
       
    87     RMmCustomAPI& iPhone;
       
    88 
       
    89     /**
       
    90      * Additional information received through Custom API
       
    91      */
       
    92     RMmCustomAPI::TSsAdditionalInfo iSsAdditionalInfo;
       
    93 
       
    94     /**
       
    95      * Pointer to SendSs command handler
       
    96      */
       
    97     CSendSSHandler* iDispatcher;
       
    98 
       
    99     };
       
   100 
       
   101 #endif      // CSATUISSADDITIONALINFOHANDLER_H