phoneengine/callhandling/inc/mpecallowner.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     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:  This file contains the header file of the MPECallOwner class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MPECALLOWNER_H
       
    21 #define MPECALLOWNER_H
       
    22 
       
    23 //INCLUDES
       
    24 #include <mpecall.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Abstract base class for call owner.
       
    30 *
       
    31 *  @lib CallHandling.lib
       
    32 */
       
    33 class MPECallOwner
       
    34     {
       
    35     public:
       
    36         
       
    37         /**
       
    38         * returns ETrue if call object found by state, NULL if not found.
       
    39         * @param aState, the wanted call state.
       
    40         */ 
       
    41         virtual TBool IsCallByState( 
       
    42             const TPEState aState ) const = 0;
       
    43         
       
    44         /**
       
    45         * returns ETrue if call object found by call ID, NULL if not found.
       
    46         * @param aCallId, the wanted call id.
       
    47         */    
       
    48         virtual TBool IsCallByCallId( 
       
    49             const TInt aCallId ) const = 0;
       
    50  
       
    51         /**
       
    52         * returns pointer to MPECall object by State, NULL if not found.
       
    53         * @param aState, the wanted call state.
       
    54         */ 
       
    55         virtual MPECall* CallByState( 
       
    56             const TPEState aState ) const = 0;
       
    57         
       
    58         /**
       
    59         * returns pointer to MPECall object by CallId, NULL if not found.
       
    60         * @param aCallId, the wanted call id.
       
    61         */    
       
    62         virtual MPECall* CallByCallId( 
       
    63             const TInt aCallId ) const = 0;
       
    64             
       
    65         /**
       
    66         * returns pointer to MPECall object by CallId, NULL if not found.
       
    67         * @param aName, the wanted name.
       
    68         */    
       
    69         virtual MPECall* CallByName( 
       
    70             const TName& aName ) const = 0;
       
    71         
       
    72         /**
       
    73         * Return active call count, other then idle state.
       
    74         * @param None
       
    75         */ 
       
    76         virtual TInt ActiveCallCount() const = 0;
       
    77     };
       
    78 
       
    79 #endif // MPECALLOWNER_H
       
    80 
       
    81 //End of file