convergedcallengine/cce/inc/tccecallindex.h
changeset 0 ff3b6d0fd310
equal deleted inserted replaced
-1:000000000000 0:ff3b6d0fd310
       
     1 /*
       
     2 * Copyright (c) 2008-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:  Keeps up the call index
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TCCECALLINDEX_H
       
    20 #define TCCECALLINDEX_H
       
    21 
       
    22 #include <e32std.h>
       
    23 
       
    24 class MCCECallArray;
       
    25 class MCCECallInfo;
       
    26 
       
    27 const TInt KInvalidCallIndex = 0;
       
    28 
       
    29 /**
       
    30  *  Keeps track of the next call index for new call.
       
    31  *
       
    32  *  @lib CCE.lib
       
    33  *  @since S60 5.0
       
    34  */
       
    35 NONSHARABLE_CLASS( TCCECallIndex )
       
    36     {
       
    37 public:
       
    38 
       
    39     TCCECallIndex( MCCECallArray& aCallArray );
       
    40     
       
    41     /**
       
    42      * Returns current available call index
       
    43      *
       
    44      * @since S60 5.0
       
    45      * @return Call index
       
    46      */
       
    47     TInt CurrentCallIndex() const;
       
    48     
       
    49 private:
       
    50     
       
    51     TBool CheckAndIncrementCallIndex( 
       
    52         MCCECallInfo* aCallInfo, 
       
    53         TInt& aCallIndex ) const;
       
    54     
       
    55 private: // Data
       
    56     
       
    57     /**
       
    58      * Call array.
       
    59      * Not own.
       
    60      */
       
    61     MCCECallArray& iCallArray;
       
    62     
       
    63     };
       
    64 
       
    65 #endif // TCCECALLINDEX_H