convergedcallengine/csplugin/inc/cspcallcommandhandler.h
changeset 0 ff3b6d0fd310
equal deleted inserted replaced
-1:000000000000 0:ff3b6d0fd310
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Declarations for class CSPCallCommandHandler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CSPCALLCOMMANDHANDLER_H
       
    20 #define CSPCALLCOMMANDHANDLER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "mcspcallinformation.h"
       
    25 
       
    26 class CSPCall;
       
    27 class MCCPCallCommandHandling;
       
    28 
       
    29 /**
       
    30 * Handles call adding from calls not done by the plugin.
       
    31 *
       
    32 *  @lib csplugin.dll
       
    33 */
       
    34 enum TCSPPendingCallCommand {
       
    35             ECSPNone,
       
    36             ECSPAnswerCall,
       
    37             ECSPDialCall
       
    38         };
       
    39         
       
    40 class CSPCallCommandHandler: public CBase
       
    41     {
       
    42     
       
    43     public: //Constructors and descructor    
       
    44     
       
    45         /**
       
    46         * Two-phased constructing for the array.
       
    47         */
       
    48         static CSPCallCommandHandler* NewL();
       
    49 
       
    50         /**
       
    51         * C++ default destructor
       
    52         */
       
    53         virtual ~CSPCallCommandHandler( );
       
    54 
       
    55         /**
       
    56         * Indicates active hangup command.
       
    57         * @param aCall MT call
       
    58         * @return system wide error code
       
    59         */
       
    60         TInt IndicateActiveHangup( MCCPCallCommandHandling& aCall );
       
    61         
       
    62         /**
       
    63         * Indicates hangup command complete.
       
    64         * @param aCall MT call
       
    65         * @return system wide error code
       
    66         */
       
    67         TInt IndicateHangupComplete( MCCPCallCommandHandling& aCall );
       
    68         
       
    69         /**
       
    70         * Indicates active hangup command.
       
    71         * @param aCall MT call
       
    72         * @return system wide error code
       
    73         */
       
    74         TInt IndicateDialRequest( MCCPCallCommandHandling& aCall );
       
    75         
       
    76         /**
       
    77         * Indicates active hangup command.
       
    78         * @param aCall MT call
       
    79         * @return system wide error code
       
    80         */
       
    81         TInt IndicateAnswerRequest( MCCPCallCommandHandling& aCall );
       
    82 
       
    83     
       
    84     private:
       
    85         /**
       
    86         * C++ default constructor
       
    87         */
       
    88         CSPCallCommandHandler();
       
    89                                           
       
    90     private: // data
       
    91         
       
    92         /**
       
    93         * Active hangup array.
       
    94         */
       
    95         RPointerArray<MCCPCallCommandHandling> iActiveHangupArray;
       
    96         
       
    97         /**
       
    98         * Pending command.
       
    99         */
       
   100         TCSPPendingCallCommand iPendingCommand;
       
   101         
       
   102         /**
       
   103         * Pending call command object.
       
   104         * Not own
       
   105         */
       
   106         MCCPCallCommandHandling* iPendingCall;
       
   107         
       
   108     };
       
   109 
       
   110 #endif // CSPCALLCOMMANDHANDLER_H