landmarksui/uicontrols/inc/CLmkAppCategorySettingsImpl.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 settings impl class.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #ifndef CLMKAPPCATEGORYSETTINGSIMPL_H
       
    26 #define CLMKAPPCATEGORYSETTINGSIMPL_H
       
    27 
       
    28 //  INCLUDES
       
    29 #include "CLmkAppLmItemSelectorImpl.h"
       
    30 #include "TLmkDeletionHelper.h"
       
    31 
       
    32 // FORWARD DECLARATIONS
       
    33 class CAknWaitDialog;
       
    34 
       
    35 // CLASS DECLARATION
       
    36 
       
    37 /**
       
    38 *  Application's (view-based) category settings impl class.
       
    39 *
       
    40 */
       
    41 class CLmkAppCategorySettingsImpl : public CLmkAppLmItemSelectorImpl
       
    42     {
       
    43     public:  // Constructors and destructor
       
    44         /**
       
    45         * Two-phased constructor.
       
    46         * @param aDb database reference
       
    47         * @param aSender landmark sender reference
       
    48         * @param aFindBox
       
    49         * @return newly instantiated object
       
    50         */
       
    51         IMPORT_C static CLmkAppCategorySettingsImpl* NewL(
       
    52                                     CPosLandmarkDatabase& aDb,
       
    53                                     CLmkSender& aSender,
       
    54                                     TBool aFindBox );
       
    55 
       
    56 
       
    57         /**
       
    58         * Destructor.
       
    59         */
       
    60         ~CLmkAppCategorySettingsImpl();
       
    61 
       
    62     public: // From CLmkSelectorImpl
       
    63         void SetupListProviderL();
       
    64         const CLmkListProviderBase& ListProvider() const;
       
    65 
       
    66     public: // From MEikCommandObserver
       
    67         void ProcessCommandL( TInt aCommandId );
       
    68 
       
    69 
       
    70     public:// New Member functions
       
    71     	IMPORT_C TBool IsPredefinedCategoryL();
       
    72 
       
    73     public: //from MLmkMapAndNavigationObserver
       
    74         void HandleLmCreated(TPosLmItemId aNewLmkItemId);
       
    75 
       
    76     protected: //from MLmkAOOperationObserver
       
    77         void HandleOperationL( TOperationTypes aType,
       
    78                               TReal32 aProgress,
       
    79                               TInt aStatus );
       
    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         TBool HandleEventListReadyL();
       
    85 
       
    86     protected: // Constructors and destructor
       
    87         /**
       
    88         * C++ default constructor.
       
    89         * @param aDb database reference
       
    90         * @param aSender landmark sender reference
       
    91         * @param aFindBox
       
    92         */
       
    93         CLmkAppCategorySettingsImpl( CPosLandmarkDatabase& aDb,
       
    94                                      CLmkSender& aSender,
       
    95                                      TBool aFindBox );
       
    96 
       
    97         /**
       
    98         * By default Symbian 2nd phase constructor is private.
       
    99         */
       
   100         void ConstructL();
       
   101 
       
   102     private: // New functions
       
   103         /**
       
   104         * Make new category
       
   105         */
       
   106         void NewCategoryCmdL();
       
   107 
       
   108         /**
       
   109         * Rename category
       
   110         */
       
   111         void RenameCategoryCmdL();
       
   112 
       
   113         /**
       
   114         * Delete category
       
   115         */
       
   116         void DeleteCategoryCmdL();
       
   117 
       
   118     protected: // Data
       
   119         /// helps updating the list after deletion
       
   120         TLmkDeletionHelper iDeletionHelper;
       
   121 
       
   122         /// Own: iBuffer
       
   123         HBufC* iBuffer;
       
   124 
       
   125         ///Own: iWaiNote
       
   126         CAknWaitDialog* iWaitNote;
       
   127     };
       
   128 
       
   129 #endif      // CLMKAPPCATEGORYSETTINGSIMPL_H
       
   130 
       
   131 // End of File