idlehomescreen/nativeuicontroller/inc/aistatuspanetouchui.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Feb 2010 22:42:37 +0200
branchRCL_3
changeset 9 f966699dea19
parent 0 f72a12da539e
permissions -rw-r--r--
Revision: 201003 Kit: 201007

/*
* Copyright (c) 2005-2007 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:  Status pane touch ui
*
*/


#ifndef C_AISTATUSPANETOUCHUI_H
#define C_AISTATUSPANETOUCHUI_H

// System includes
#include <e32base.h>
#include <badesca.h>
#include <AknNaviDecoratorObserver.h>
#include <StringLoader.h>
#include <eikmobs.h>

// User includes
#include "ainativerenderer.h"

// Forward declarations
class CHsContentPublisher;
class MAiFwEventHandler;
class CAknStylusPopUpMenu;

namespace AiNativeUiController
{
// Stylus activated popup command ids
enum TLinkCommandID
	{
    EAIGotoCalendarCmdLink = 1,
    EAIShowAllProfileCmdLink,
    EAIProfileCmdLink
    };

class CAiStatusPanel;

NONSHARABLE_CLASS( CAiStatusPaneTouchUi ) : public CAiNativeRenderer,
    public MAknNaviDecoratorObserver, public MEikMenuObserver					  	 	 
	{
public:

// Construction and destructor

    static CAiStatusPaneTouchUi* NewL( CAiStatusPanel& aStatusPanel,
    									MAiFwEventHandler& aEventHandler);

    static CAiStatusPaneTouchUi* NewLC( CAiStatusPanel& aStatusPanel,
    									MAiFwEventHandler& aEventHandler );

    ~CAiStatusPaneTouchUi();

// from MAknTitlePaneObserver

    void HandleTitlePaneEventL( TInt aEventID );

// from MAknNaviDecoratorObserver

    void HandleNaviDecoratorEventL( TInt aEventID );

// from base class CAiNativeRenderer

    void DoPublishL( CHsContentPublisher& aPlugin,
                        TInt aContent,
                        const TDesC16& aText,
                        TInt aIndex );

    void LoadUIDefinitionL();

// from MEikCommandObserver

    void ProcessCommandL( TInt aCommandId );

    void SetEmphasis( CCoeControl* aMenuControl, TBool aEmphasis );

private:
    // Construction

	CAiStatusPaneTouchUi( CAiStatusPanel& aStatusPanel, MAiFwEventHandler& aEventHandler );
	void ConstructL();

private: //data

    /// Status pane handler.
    CAiStatusPanel& iStatusPane;

    /// Profile name pointer array
    RPointerArray<HBufC> iProfileNamePointerArray;

    /// AIFW event handler
    MAiFwEventHandler& iEventHandler;

    ///Event buffer.
    HBufC* iEventBuffer;

    ///Stulys popup menu
    CAknStylusPopUpMenu* iMenu;
    };

} // namespace AiNativeUiController

#endif //C_AISTATUSPANETOUCHUI_H