idlehomescreen/nativeuicontroller/inc/aistatuspanetouchui.h
branchRCL_3
changeset 34 5456b4e8b3a8
equal deleted inserted replaced
33:5f0182e07bfb 34:5456b4e8b3a8
       
     1 /*
       
     2 * Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Status pane touch ui
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_AISTATUSPANETOUCHUI_H
       
    20 #define C_AISTATUSPANETOUCHUI_H
       
    21 
       
    22 // System includes
       
    23 #include <e32base.h>
       
    24 #include <badesca.h>
       
    25 #include <AknNaviDecoratorObserver.h>
       
    26 #include <StringLoader.h>
       
    27 #include <eikmobs.h>
       
    28 
       
    29 // User includes
       
    30 #include "ainativerenderer.h"
       
    31 
       
    32 // Forward declarations
       
    33 class CHsContentPublisher;
       
    34 class MAiFwEventHandler;
       
    35 class CAknStylusPopUpMenu;
       
    36 
       
    37 namespace AiNativeUiController
       
    38 {
       
    39 // Stylus activated popup command ids
       
    40 enum TLinkCommandID
       
    41 	{
       
    42     EAIGotoCalendarCmdLink = 1,
       
    43     EAIShowAllProfileCmdLink,
       
    44     EAIProfileCmdLink
       
    45     };
       
    46 
       
    47 class CAiStatusPanel;
       
    48 
       
    49 NONSHARABLE_CLASS( CAiStatusPaneTouchUi ) : public CAiNativeRenderer,
       
    50     public MAknNaviDecoratorObserver, public MEikMenuObserver					  	 	 
       
    51 	{
       
    52 public:
       
    53 
       
    54 // Construction and destructor
       
    55 
       
    56     static CAiStatusPaneTouchUi* NewL( CAiStatusPanel& aStatusPanel,
       
    57     									MAiFwEventHandler& aEventHandler);
       
    58 
       
    59     static CAiStatusPaneTouchUi* NewLC( CAiStatusPanel& aStatusPanel,
       
    60     									MAiFwEventHandler& aEventHandler );
       
    61 
       
    62     ~CAiStatusPaneTouchUi();
       
    63 
       
    64 // from MAknTitlePaneObserver
       
    65 
       
    66     void HandleTitlePaneEventL( TInt aEventID );
       
    67 
       
    68 // from MAknNaviDecoratorObserver
       
    69 
       
    70     void HandleNaviDecoratorEventL( TInt aEventID );
       
    71 
       
    72 // from base class CAiNativeRenderer
       
    73 
       
    74     void DoPublishL( CHsContentPublisher& aPlugin,
       
    75                         TInt aContent,
       
    76                         const TDesC16& aText,
       
    77                         TInt aIndex );
       
    78 
       
    79     void LoadUIDefinitionL();
       
    80 
       
    81 // from MEikCommandObserver
       
    82 
       
    83     void ProcessCommandL( TInt aCommandId );
       
    84 
       
    85     void SetEmphasis( CCoeControl* aMenuControl, TBool aEmphasis );
       
    86 
       
    87 private:
       
    88     // Construction
       
    89 
       
    90 	CAiStatusPaneTouchUi( CAiStatusPanel& aStatusPanel, MAiFwEventHandler& aEventHandler );
       
    91 	void ConstructL();
       
    92 
       
    93 private: //data
       
    94 
       
    95     /// Status pane handler.
       
    96     CAiStatusPanel& iStatusPane;
       
    97 
       
    98     /// Profile name pointer array
       
    99     RPointerArray<HBufC> iProfileNamePointerArray;
       
   100 
       
   101     /// AIFW event handler
       
   102     MAiFwEventHandler& iEventHandler;
       
   103 
       
   104     ///Event buffer.
       
   105     HBufC* iEventBuffer;
       
   106 
       
   107     ///Stulys popup menu
       
   108     CAknStylusPopUpMenu* iMenu;
       
   109     };
       
   110 
       
   111 } // namespace AiNativeUiController
       
   112 
       
   113 #endif //C_AISTATUSPANETOUCHUI_H