phone_plat/telephony_bubble_extension_api/inc/telbubbleextensiondata.h
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 40 bab96b7ed1a4
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
     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:  Interface for call data access.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TELBUBBLEEXTENSIONDATA_H
       
    20 #define TELBUBBLEEXTENSIONDATA_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class MTelBubbleExtensionData
       
    25     {
       
    26 public:
       
    27     // Specifies call types    
       
    28     enum TCallType
       
    29         {
       
    30         EUninitialized = 0,
       
    31         ECsVoice = 1,  // Circuit switched voice call
       
    32         ECsVideo = 2, // Multimedia/Video call
       
    33         EPsVoice = 3 // Voice over IP call
       
    34         };
       
    35         
       
    36     // Specifies call states
       
    37     enum TCallState
       
    38         {
       
    39         ENone           = 0, // Default on creation
       
    40         EOnHold         = 1,
       
    41         EDisconnected   = 2,
       
    42         EActive         = 3,
       
    43         EIncoming       = 4,
       
    44         EWaiting        = 5,
       
    45         EAlertToDisconnected = 6,
       
    46         EOutgoing       = 7,
       
    47         EAlerting       = 8,
       
    48         };
       
    49         
       
    50 public:
       
    51 
       
    52     /**
       
    53      * Bubble ID this call is connected to.
       
    54      * @return Bubble ID.
       
    55      */
       
    56     virtual TInt BubbleId() const = 0;
       
    57 
       
    58     /**
       
    59      * Call state information.
       
    60      * @return Call state.
       
    61      */
       
    62     virtual TCallState State() const = 0;
       
    63     
       
    64     /**
       
    65      * Call type information
       
    66      * @return Call type.
       
    67      */
       
    68     virtual TCallType Type() const = 0;
       
    69     
       
    70     /**
       
    71      * Call service id
       
    72      * @return Call service
       
    73      */
       
    74     virtual TUint32 ServiceId() const = 0;
       
    75     
       
    76     /**
       
    77      * Contact Link related to this call.
       
    78      * @return Reference to Contact Link
       
    79      */
       
    80     virtual const TDesC8& ContactLink() const = 0;
       
    81     
       
    82     /**
       
    83      * Remote party number related to this call.
       
    84      * @return Reference to remote party number.
       
    85      */
       
    86     virtual const TDesC& RemotePhoneNumber() const = 0;
       
    87     };
       
    88 
       
    89 #endif // TELBUBBLEEXTENSIONDATA_H
       
    90 
       
    91 // end of file