landmarksui/uicontrols/inc/CLmkDlgCategorySelectorImpl.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 -    Common UI's (dialog-based) category selector impl class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 #ifndef CLMKDLGCATEGORYSELECTORIMPL_H
       
    25 #define CLMKDLGCATEGORYSELECTORIMPL_H
       
    26 
       
    27 //  INCLUDES
       
    28 #include "CLmkDlgSelectorImplBase.h"
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  Common UI's (dialog-based) category selector impl class.
       
    36 *
       
    37 */
       
    38 class CLmkDlgCategorySelectorImpl : public CLmkDlgSelectorImplBase
       
    39     {
       
    40     public:  // Constructors and destructor
       
    41         /**
       
    42         * Two-phased constructor.
       
    43         * @param aDb database reference
       
    44         * @param aShowEmptyCategories if ETrue also empty categories are shown
       
    45         * @return newly instantiated object
       
    46         */
       
    47         IMPORT_C static CLmkDlgCategorySelectorImpl* NewL(
       
    48                                     CPosLandmarkDatabase& aDb,
       
    49                                     TBool aShowEmptyCategories,
       
    50                                     TBool aShowBlankNaviPane = EFalse);
       
    51 
       
    52         /**
       
    53         * Destructor.
       
    54         */
       
    55         ~CLmkDlgCategorySelectorImpl();
       
    56 
       
    57     public: // From CLmkSelectorImplBase
       
    58         void SetupListProviderL();
       
    59         const CLmkListProviderBase& ListProvider() const;
       
    60         void GetDlgResources( TBool aIsSingleSelector,
       
    61                               TInt& aTitlePaneResource,
       
    62                               TInt& aMenuBarResource,
       
    63                               TInt& aDialogResource ) const;
       
    64 
       
    65     protected: // From MLmkListProviderObserver
       
    66         void HandleListProviderEvent( TLmkListProviderEventType aEvent );
       
    67         void HandleListProviderError( TInt aError );
       
    68 
       
    69     protected:  // Constructors and destructor
       
    70         /**
       
    71         * C++ default constructor.
       
    72         * @param aDb
       
    73         * @param aShowEmptyCategories
       
    74         * @return newly instantiated object
       
    75         */
       
    76         CLmkDlgCategorySelectorImpl( CPosLandmarkDatabase& aDb,
       
    77                                   	 TBool aShowEmptyCategories,
       
    78                                 	 TBool aShowBlankNaviPane );
       
    79 
       
    80         /**
       
    81         * By default Symbian 2nd phase constructor is private.
       
    82         */
       
    83         void ConstructL();
       
    84 
       
    85     private:    // Data
       
    86         ///
       
    87         TBool iShowEmptyCategories;
       
    88         TBool iShowBlankNaviPane;
       
    89     };
       
    90 
       
    91 #endif      // CLMKDLGCATEGORYSELECTORIMPL_H
       
    92 
       
    93 // End of File