phoneplugins/telbranding/inc/telbrandingimage.h
author Pat Downey <patd@symbian.org>
Mon, 12 Jul 2010 15:25:40 +0100
branchRCL_3
changeset 47 df8637411ccf
parent 0 5f000ab63145
permissions -rw-r--r--
DEADHEAD: Fix for bug 1614 included in Nokia drop.

/*
* Copyright (c) 2009 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:  Branding plug-in specific image.
*
*/

#ifndef C_CTELBRANDINGIMAGE_H
#define C_CTELBRANDINGIMAGE_H

#include <telbubbleimage.h>

/**
 *  Used to handle CTelBrandingImage visibility.
 *  Only one image is shown at one time according priority
 *
 *  @since S60 S60 v5.0
 */
NONSHARABLE_CLASS( MTelBrandingPriorityHandler )
    {
public:
    virtual void SetVisibilityAllowed( TBool aAllowed ) = 0;
    
    };

/**
 *  Branding plug-in specific image.
 *  Uses MTelBrandingPriorityHandler to handle visibility.
 *  Only one image is shown at one time according priority
 *
 *  @since S60 S60 v5.0
 */
NONSHARABLE_CLASS( CTelBrandingImage ): 
    public CTelBubbleImage,
    public MTelBrandingPriorityHandler
    {
public:
    /**
    * Constructors.
    */
    static CTelBrandingImage* NewL();
    static CTelBrandingImage* NewLC();

    /**
    * Destructor.
    */
    virtual ~CTelBrandingImage();

public: // From CCoeControl
    void MakeVisible( TBool aVisible );
    
public: // From MTelBrandingPriorityHandler
    void SetVisibilityAllowed( TBool aAllowed );
    
public: // New functions
    void SetLowerPriorityBranding( MTelBrandingPriorityHandler* aHandler );
    
private:
    CTelBrandingImage();

    void ConstructL();

private: // data
    // Specifies that is visiblity allowed
    TBool iVisibilityAllowed;
    
    // Specifies lower priority image
    MTelBrandingPriorityHandler* iLowerPriority;
    };

#endif // C_CTELBRANDINGIMAGE_H