phoneapp/phoneuicontrol/inc/mphonecallheadermanagerutility.h
changeset 0 5f000ab63145
child 45 6b911d05207e
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:  Interface for setting and getting CLI related from engine.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPHONECALLHEADERMANAGERUTILITY_H
       
    19 #define MPHONECALLHEADERMANAGERUTILITY_H
       
    20 
       
    21 #include "tphonecmdparamcallheaderdata.h"
       
    22 #include "mphonecustomization.h"
       
    23 
       
    24 /**
       
    25 * Utily Interface for loading resources and using customization.
       
    26 *
       
    27 * @since S60 v9.1
       
    28 */
       
    29 class MPhoneCallHeaderManagerUtility
       
    30     {
       
    31     public:
       
    32         
       
    33         /**
       
    34         * Concludes does the engine have information of the
       
    35         * phone number. This information is then send to the view.
       
    36         * @param aNumberLength - phone number's length
       
    37         * @param aContactInfoAvailable - is contact's info available
       
    38         */
       
    39         virtual void SetPhoneNumberAvailabilityL(
       
    40                 const TInt aNumberLength,
       
    41                 const TBool aContactInfoAvailable ) = 0;
       
    42         
       
    43         /**
       
    44         * Resolves call header text in InCall-state,
       
    45         * text could be 'Call 1', 'Call 2', ...
       
    46         * @param aCallId - Call Id.
       
    47         * @param aData - The returned data including needed text.
       
    48         */
       
    49         virtual void GetInCallNumberTextL( 
       
    50                 TInt aCallId, 
       
    51                 TDes& aData ) const = 0;
       
    52         
       
    53         /**
       
    54         * Loads strings for displaying in call header.
       
    55         * @param aCallLabelId - Resource Id for longer text.
       
    56         * @param aShortLabelId - Resource id for short text
       
    57         * @param aCallHeaderData - Call header parameter into which the text
       
    58         *                          will be set.
       
    59         */
       
    60         virtual void LoadCallHeaderTexts(
       
    61             const TInt aLabelId, 
       
    62             const TInt aShortLabelId,
       
    63             TPhoneCmdParamCallHeaderData* aCallHeaderData ) = 0; 
       
    64         
       
    65         /**
       
    66         * Loads data commonengine stringloader.                           
       
    67         * @param aData - The returned data including needed text.
       
    68         * @param aResourceId - Resource id for text.
       
    69         */
       
    70         virtual void LoadResource( TDes& aData, const TInt aResourceId ) = 0;
       
    71         
       
    72         /**
       
    73         * Returns instance of class MPhoneCustomization
       
    74         */
       
    75         virtual MPhoneCustomization* Customization() = 0;
       
    76         
       
    77     };
       
    78 
       
    79 #endif // MPHONECALLHEADERMANAGERUTILITY_H