browserui/browser/FavouritesInc/BrowserBookmarksModel.h
changeset 0 84ad3b177aa3
equal deleted inserted replaced
-1:000000000000 0:84ad3b177aa3
       
     1 /*
       
     2 * Copyright (c) 2002 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 the License "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: 
       
    15 *      Declaration of class CBrowserBookmarksModel.
       
    16 *      
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef BROWSER_BOOKMARKS_MODEL_H
       
    22 #define BROWSER_BOOKMARKS_MODEL_H
       
    23 
       
    24 // INCLUDE FILES
       
    25 
       
    26 #include "BrowserFavouritesModel.h"
       
    27 
       
    28 // CLASS DECLARATION
       
    29 class MApiProvider;
       
    30 
       
    31 /**
       
    32 * Model for the Bookmarks Views of the WML Browser.
       
    33 */
       
    34 class CBrowserBookmarksModel : public CBrowserFavouritesModel
       
    35 	{
       
    36 	public:
       
    37 	    /**
       
    38         * Constructor.
       
    39         * @param aApiProvider The API provider
       
    40         */
       
    41 		CBrowserBookmarksModel( MApiProvider& aApiProvider );
       
    42 		// construction
       
    43 
       
    44         /**
       
    45         * Two-phased constructor. Leaves on failure.
       
    46         * @return The constructed model.
       
    47         */
       
    48         static CBrowserBookmarksModel* NewL( MApiProvider& aApiProvider );
       
    49 
       
    50     public:     // from CBrowserFavouritesModel
       
    51 
       
    52         /**
       
    53         * Get resource id of some text for an item.
       
    54         * @param aItem The item to get resource id for.
       
    55         * @param aType Type of resource text.
       
    56         * @return Resource id of the text.
       
    57         */
       
    58         TInt StringResourceId
       
    59             (
       
    60             const CFavouritesItem& aItem,
       
    61             CBrowserFavouritesModel::TTextResourceType aType
       
    62             ) const;
       
    63 
       
    64         MApiProvider& ApiProvider();
       
    65 
       
    66 
       
    67 
       
    68     protected:  // from CBrowserFavouritesModel
       
    69 
       
    70 		CFavouritesItemList* GetFoldersSortedLC();
       
    71 		
       
    72     private:
       
    73 	    const TDesC& GetDBName();
       
    74 	    
       
    75     private: //data members
       
    76         MApiProvider& iApiProvider; // API provider
       
    77     };
       
    78 
       
    79 #endif
       
    80 
       
    81 // End of file