landmarksui/uicontrols/inc/CLmkAppCategorySelectorImpl.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2004 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:   	LandmarksUi Content File
       
    15 *				Application's (view-based) category selector impl class.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #ifndef CLMKAPPCATEGORYSELECTORIMPL_H
       
    26 #define CLMKAPPCATEGORYSELECTORIMPL_H
       
    27 
       
    28 //  INCLUDES
       
    29 #include "CLmkAppLmItemSelectorImpl.h"
       
    30 #include <coecobs.h>
       
    31 
       
    32 // FORWARD DECLARATIONS
       
    33 class CLmkAppLmSelectorImpl;
       
    34 class CAknSearchField;
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 /**
       
    39 *  Application's (view-based) category selector impl class.
       
    40 *
       
    41 */
       
    42 class CLmkAppCategorySelectorImpl : public CLmkAppLmItemSelectorImpl
       
    43     {
       
    44     public:  // Constructors and destructor
       
    45         /**
       
    46         * Two-phased constructor.
       
    47         * @param aDb database reference
       
    48         * @param aSender landmark sender reference
       
    49         * @param aFindBox
       
    50         * @return newly instantiated object
       
    51         */
       
    52         IMPORT_C static CLmkAppCategorySelectorImpl* NewL(
       
    53                                     CPosLandmarkDatabase& aDb,
       
    54                                     CLmkSender& aSender,
       
    55                                     TBool aFindBox );
       
    56 
       
    57         /**
       
    58         * Destructor.
       
    59         */
       
    60         ~CLmkAppCategorySelectorImpl();
       
    61 
       
    62     public: // From CLmkSelectorImpl
       
    63         void SetupListProviderL();
       
    64         const CLmkListProviderBase& ListProvider() const;
       
    65         IMPORT_C TInt CurrentCategoryId();
       
    66 
       
    67     public: //from MLmkMapAndNavigationObserver
       
    68         void HandleLmCreated(TPosLmItemId aNewLmkItemId);
       
    69 
       
    70     protected: //from MLmkAOOperationObserver
       
    71         void HandleOperationL( TOperationTypes aType,
       
    72                               TReal32 aProgress,
       
    73                               TInt aStatus );
       
    74 
       
    75     protected: // from MCoeControlObserver
       
    76         void HandleControlEventL( CCoeControl* aControl,TCoeEvent aEventType );
       
    77 
       
    78     protected: // From MEikCommandObserver
       
    79         void ProcessCommandL( TInt aCommandId );
       
    80 
       
    81     protected: // From CLmkAppLmItemSelectorImpl
       
    82         void ChangeIconL( TPosLmItemId aId, TInt aIconIndex, TInt aMaskIndex);
       
    83         void ChangeIconsL( RArray<TPosLmItemId>& aIdArray, TInt aIconIndex, TInt aMaskIndex);
       
    84 
       
    85     protected: // Constructors and destructor
       
    86         /**
       
    87         * C++ default constructor.
       
    88         * @param aDb database reference
       
    89         * @param aSender landmark sender reference
       
    90         * @param aFindBox
       
    91         */
       
    92         CLmkAppCategorySelectorImpl( CPosLandmarkDatabase& aDb,
       
    93                                      CLmkSender& aSender,
       
    94                                      TBool aFindBox );
       
    95 
       
    96         /**
       
    97         * By default Symbian 2nd phase constructor is private.
       
    98         */
       
    99         void ConstructL();
       
   100 
       
   101     private:
       
   102     	CAknSearchField* iFindBox;
       
   103     };
       
   104 
       
   105 #endif      // CLMKAPPCATEGORYSELECTORIMPL_H
       
   106 
       
   107 // End of File