idlehomescreen/nativeuicontroller/inc/aistatuspanetouchui.h
author Simon Howkins <simonh@symbian.org>
Tue, 16 Nov 2010 11:12:20 +0000
branchRCL_3
changeset 108 cf9be2d674f1
parent 83 5456b4e8b3a8
permissions -rw-r--r--
Fixed path to files to be exported

/*
* 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