convergedcallengine/csplugin/inc/cspcallarray.h
branchRCL_3
changeset 20 987c9837762f
parent 0 ff3b6d0fd310
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
       
     1 /*
       
     2 * Copyright (c) 2007 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 CSPCallArray
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CSPCALLARRAY_H
       
    20 #define CSPCALLARRAY_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "mcspcallinformation.h"
       
    25 
       
    26 class CSPCall;
       
    27 
       
    28 /**
       
    29 * Handles call adding from calls not done by the plugin.
       
    30 *
       
    31 *  @lib csplugin.dll
       
    32 */
       
    33 class CSPCallArray: public CBase,
       
    34                     public MCSPCallInformation
       
    35     {
       
    36     
       
    37     public: //Constructors and descructor    
       
    38     
       
    39         /**
       
    40         * Two-phased constructing for the array.
       
    41         *
       
    42         */
       
    43         static CSPCallArray* NewL( );
       
    44 
       
    45         /**
       
    46         * C++ default destructor
       
    47         */
       
    48         virtual ~CSPCallArray( );
       
    49 
       
    50         /**
       
    51          * Remove call from array
       
    52          * @param aCall call to be removed
       
    53          * @return result of removal
       
    54          */        
       
    55         TInt Add( CSPCall* aCall );
       
    56         
       
    57         /**
       
    58          * Remove call from array
       
    59          * @param aCall call to be removed
       
    60          * @return result of removal
       
    61          */
       
    62         TInt Remove( CSPCall* aCall );
       
    63         
       
    64         /**
       
    65          * Get call count.
       
    66          */
       
    67         TInt GetCallCount( );
       
    68         
       
    69         /**
       
    70          * Get call by index.
       
    71          */
       
    72         CSPCall* Get( TInt aIndex );
       
    73         
       
    74 // from base class MCSPCallInformation
       
    75 
       
    76         /**
       
    77         * From MCSPCallInformation
       
    78         * Finds call pointer specified by call name.
       
    79         * @param aCallName
       
    80         * @return corresponding call pointer or NULL if not found.
       
    81         */
       
    82         CSPCall* FindCall( const TName& aCallName );
       
    83     
       
    84     private:
       
    85         /**
       
    86         * C++ default constructor
       
    87         * @param aObserver the observer for status change (incoming call)
       
    88         * @param aLine the line associated with the call
       
    89         * @param aLineId line identifier
       
    90         */
       
    91         CSPCallArray( );
       
    92                                           
       
    93     private: // data
       
    94         
       
    95         /**
       
    96         * Pointer array of call objects.     
       
    97         */
       
    98         RPointerArray<CSPCall> iCallArray;
       
    99         
       
   100     };
       
   101 
       
   102 #endif // CSPCALLARRAY_H