basiclocationinfodisplay/blid/engine/inc/BlidModelFactory.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2005 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:  A factory class which can create instances of
       
    15 *                MBlidSettings
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __CBLIDMODELFACTORY_H__
       
    22 #define __CBLIDMODELFACTORY_H__
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <lbspositioninfo.h>
       
    27 #include <lbs.h>
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class MBlidSettings;
       
    31 class MBlidLocation;
       
    32 class MBlidRouter;
       
    33 class CBlidEng;
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 *  A factory class which creates needed models.
       
    38 *  This factory class creates instances of
       
    39 *  MBlidSettings.
       
    40 *
       
    41 */
       
    42 class BlidModelFactory
       
    43     {
       
    44     public: // new functions
       
    45         /**
       
    46          * Factory method for Setting model creation.
       
    47          * @return Pointer to settings model.
       
    48          */
       
    49         static MBlidSettings* SettingsL();
       
    50 
       
    51         /**
       
    52          * Factory method for Location model creation.
       
    53          * @param aServer RPositionServer variable
       
    54          * @return Pointer to location model.
       
    55          */
       
    56         static MBlidLocation* LocationL( RPositionServer& aServer, CBlidEng& aEngine );
       
    57 
       
    58         /**
       
    59          * Factory method for Router model creation.
       
    60          * @return Pointer to router model.
       
    61          */
       
    62         static MBlidRouter* RouterL(); 
       
    63     };
       
    64 
       
    65 #endif      // __BLIDMODELFACTORY_H__
       
    66 
       
    67 // End of File