logsui/AocCtViewInc/MLogsCallStatus.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002 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: 
       
    15 *     Abstract class for Call status notifier
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __MLogsCallStatus_H
       
    21 #define __MLogsCallStatus_H
       
    22 
       
    23 //  INCLUDE FILES  
       
    24 
       
    25 // CONSTANTS
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class MLineStatusObserver;
       
    29 
       
    30 //  CLASS DECLARATIONS 
       
    31 
       
    32 
       
    33 
       
    34 class MLogsCallStatus
       
    35     {
       
    36     public:
       
    37         
       
    38         /**
       
    39          * Destructor.
       
    40          */
       
    41         virtual ~MLogsCallStatus() {};        
       
    42         
       
    43         /**
       
    44          * Call/line status observer
       
    45          *
       
    46          * Parameter: pointer to observer, if NULL then connection to ETel is closed
       
    47          *
       
    48          */
       
    49         virtual void SetObserver( MLineStatusObserver* aObserver ) = 0;
       
    50 
       
    51         /**
       
    52          * Call status, initiate observer first with LineStatusObserver!
       
    53          *
       
    54          * Parameter: aCallIsActive, set to ETrue if call is active, else EFalse
       
    55          *
       
    56          * Return value: KErrNone if call is succesfull, or ETEL error code
       
    57          */
       
    58         virtual TInt CallIsActive(TBool& aCallIsActive) = 0;
       
    59         
       
    60         /**
       
    61          * Active call duration.
       
    62          *
       
    63          * @param aCallDuration, call duration if active, otherwise will return error code.
       
    64          * Return value: KErrNone if call is active otherwise error code.
       
    65          */
       
    66         virtual TInt ActiveCallDuration( TTimeIntervalSeconds& aCallDuration ) = 0;
       
    67 
       
    68     };
       
    69 
       
    70 #endif  // __MLogsCallStatus_H
       
    71 
       
    72 // End of file