phoneapp/phoneuicontrol/inc/mphonecallheadermanagerutility.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 02 Sep 2010 20:26:16 +0300
changeset 64 6aaf0276100e
parent 45 6b911d05207e
child 62 5266b1f337bd
child 65 2a5d4ab426d3
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Interface for setting and getting CLI related from engine.
*
*/

#ifndef MPHONECALLHEADERMANAGERUTILITY_H
#define MPHONECALLHEADERMANAGERUTILITY_H

#include "tphonecmdparamcallheaderdata.h"
#include "mphonecustomization.h"

/**
* Utily Interface for loading resources and using customization.
*
* @since S60 v9.1
*/
class MPhoneCallHeaderManagerUtility
    {
    public:
        
        /**
        * Concludes does the engine have information of the
        * phone number. This information is then send to the view.
        * @param aNumberLength - phone number's length
        * @param aContactInfoAvailable - is contact's info available
        */
        virtual void SetPhoneNumberAvailabilityL(
                const TInt aNumberLength,
                const TBool aContactInfoAvailable ) = 0;

        /**
        * Loads strings for displaying in call header.
        * @param aCallLabelId - Resource Id for longer text.
        * @param aShortLabelId - Resource id for short text
        * @param aCallHeaderData - Call header parameter into which the text
        *                          will be set.
        */
        virtual void LoadCallHeaderTexts(
            const TInt aLabelId, 
            const TInt aShortLabelId,
            TPhoneCmdParamCallHeaderData* aCallHeaderData ) = 0; 
        
        /**
        * Loads data commonengine stringloader.                           
        * @param aData - The returned data including needed text.
        * @param aResourceId - Resource id for text.
        */
        virtual void LoadResource( TDes& aData, const TInt aResourceId ) = 0;
        
        /**
        * Returns instance of class MPhoneCustomization
        */
        virtual MPhoneCustomization* Customization() = 0;
        
    };

#endif // MPHONECALLHEADERMANAGERUTILITY_H