diff -r 000000000000 -r f72a12da539e idlehomescreen/nativeuicontroller/inc/aistatuspanetouchui.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/idlehomescreen/nativeuicontroller/inc/aistatuspanetouchui.h Thu Dec 17 08:40:49 2009 +0200 @@ -0,0 +1,114 @@ +/* +* 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 + +#include +#include +#include +#include +#include + +#include "ainativerenderer.h" + +class MAiFwEventHandler; + +class CAknStylusPopUpMenu; + +namespace AiNativeUiController +{ + +// Stylus activated popup command ids +enum TLinkCommandID + { + EAIGotoCalendarCmdLink = 1, + EAIShowAllProfileCmdLink, + EAIProfileCmdLink + }; + + +class CAiStatusPanel; + +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( MAiPropertyExtension& 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 iProfileNamePointerArray; + + /// AIFW event handler + MAiFwEventHandler& iEventHandler; + + ///Event buffer. + HBufC* iEventBuffer; + + ///Stulys popup menu + CAknStylusPopUpMenu* iMenu; + }; + +} // namespace AiNativeUiController + +#endif //C_AISTATUSPANETOUCHUI_H \ No newline at end of file