browserui/browser/FavouritesInc/BrowserBookmarksContainer.h
changeset 10 57d5b8e231c4
parent 0 84ad3b177aa3
equal deleted inserted replaced
0:84ad3b177aa3 10:57d5b8e231c4
    61         */
    61         */
    62         
    62         
    63         void SetGotoActiveL();
    63         void SetGotoActiveL();
    64         
    64         
    65         /**
    65         /**
    66         * Deactivate Goto Mode
    66         * Activate Search Pane
       
    67         */
       
    68         void SetSearchActiveL();
       
    69         /**
       
    70         * Deactivate Goto Pane
    67         */
    71         */
    68 
    72 
    69 		void SetGotoInactiveL();
    73 		void SetGotoInactiveL();
    70 
    74 
       
    75 		/**
       
    76         * Deactivate Search Pane
       
    77         */
       
    78 		void SetSearchInactiveL();
    71     public:     // access to components
    79     public:     // access to components
    72 
    80 
    73          /**
    81          /**
    74         * Get the Goto Pane.
    82         * Get the Goto Pane.
    75         * @return The Goto Pane.
    83         * @return The Goto Pane.
    76         */
    84         */
    77         inline CBrowserBookmarksGotoPane* GotoPane() const;
    85         inline CBrowserBookmarksGotoPane* GotoPane() const;
    78 
    86 		
    79 
    87         /**
       
    88         * Get the Search Pane.
       
    89         * @return The Search Pane.
       
    90         */
       
    91         inline CBrowserBookmarksGotoPane* SearchPane() const;
       
    92 		
    80         /**
    93         /**
    81         * Check if we are in Goto Mode
    94         * Check if we are in Goto Mode
    82         * @return ETrue if we are in Goto Mode; EFalse otherwise.
    95         * @return ETrue if we are in Goto Mode; EFalse otherwise.
    83         */
    96         */
    84         inline TBool GotoPaneActive() const;
    97         inline TBool GotoPaneActive() const;
       
    98 		
       
    99         /**
       
   100         * Check if we are in Search Mode
       
   101         * @return ETrue if we are in Search Mode; EFalse otherwise.
       
   102         */
       
   103         inline TBool SearchPaneActive() const;
    85         
   104         
    86     public:	    // from CBrowserFavouritesContainer
   105     public:	    // from CBrowserFavouritesContainer
    87 
   106 
    88         /**
   107         /**
    89         * Count component controls.
   108         * Count component controls.
   121         * Check if some editing is in progress. 
   140         * Check if some editing is in progress. 
   122         */
   141         */
   123         TBool IsEditing();
   142         TBool IsEditing();
   124 
   143 
   125         /**
   144         /**
       
   145         * Check if some editing is in progress for Search Pane. 
       
   146         */
       
   147         TBool IsEditingSearch();
       
   148 		
       
   149         /**
   126         * Get tab index belonging to this view.
   150         * Get tab index belonging to this view.
   127         * @return The tab index.
   151         * @return The tab index.
   128         */
   152         */
   129         TInt TabIndex();
   153         TInt TabIndex();
   130 
   154 
   152         * From CCoeControl
   176         * From CCoeControl
   153         *
   177         *
   154         */
   178         */
   155         void HandlePointerEventL(const TPointerEvent& /*aPointerEvent*/);
   179         void HandlePointerEventL(const TPointerEvent& /*aPointerEvent*/);
   156 
   180 
       
   181         /**
       
   182         * HandleResourceChange
       
   183         * From CCoeControl
       
   184         */
       
   185         void HandleResourceChange(TInt aType);
       
   186         
   157     protected:  // Construct / destruct
   187     protected:  // Construct / destruct
   158 
   188 
   159         /**
   189         /**
   160         * Constructor.
   190         * Constructor.
   161         */
   191         */
   170         */
   200         */
   171 		virtual void ConstructComponentControlsL(
   201 		virtual void ConstructComponentControlsL(
   172             const TRect& aRect,
   202             const TRect& aRect,
   173             CBrowserFavouritesView& aView );
   203             CBrowserFavouritesView& aView );
   174         
   204         
       
   205 		/**
       
   206         * Called by ConstructComponentControlsL. 
       
   207         * Leaves on failure.
       
   208         */
       
   209 		virtual void ConstructSearchPaneL();
       
   210 		
   175 	protected:  // from CBrowserFavouritesContainer
   211 	protected:  // from CBrowserFavouritesContainer
   176 
   212 
   177         /**
   213         /**
   178         * Create icon handler for the listbox.
   214         * Create icon handler for the listbox.
   179         * @return Icon handler for the listbox.
   215         * @return Icon handler for the listbox.
   194 
   230 
   195         /**
   231         /**
   196         * Goto Pane.
   232         * Goto Pane.
   197         */
   233         */
   198         CBrowserBookmarksGotoPane* iGotoPane;
   234         CBrowserBookmarksGotoPane* iGotoPane;
   199         
   235 		
   200         
   236         /**
       
   237         * Owned. 
       
   238         * Search Pane.
       
   239         */
       
   240         CBrowserBookmarksGotoPane* iSearchPane;
       
   241 		
   201         /**
   242         /**
   202         * ETrue if Goto pane is active, EFalse by default
   243         * ETrue if Goto pane is active, EFalse by default
   203         */
   244         */
   204         TBool iGotoPaneActive;
   245         TBool iGotoPaneActive;
       
   246 		
       
   247         /**
       
   248         * ETrue if Search pane is active, EFalse by default
       
   249         */
       
   250         TBool iSearchPaneActive;
   205         
   251         
   206         TBool iSelectionKeyDownPressed;
   252         TBool iSelectionKeyDownPressed;
   207         TBool iSelectionKeyLongPress;
   253         TBool iSelectionKeyLongPress;
       
   254 		
       
   255         /**
       
   256         * Default text in search editor
       
   257         */
       
   258         HBufC* iDefaultSearchText;
       
   259         
       
   260         /**
       
   261         * Saves Search Provider Icon Id, 
       
   262         * used for tracking changes to Icon.
       
   263         */
       
   264         TInt iSearchIconId;
       
   265         
       
   266         /**
       
   267         * Saves Search Icon File Path 
       
   268         * used for tracking changes to Icon.
       
   269         */
       
   270         TFileName iSearchIconFilePath;
   208 	};
   271 	};
   209 
   272 
   210 #include "BrowserBookmarksContainer.inl"
   273 #include "BrowserBookmarksContainer.inl"
   211 
   274 
   212 #endif
   275 #endif