locsrv_plat/map_image_api/tsrc/testprovider/inc/testproviderappserver.h
branchRCL_3
changeset 44 2b4ea9893b66
parent 42 02ba3f1733c6
child 45 6b6920c56e2f
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
     1 /*
       
     2 * Copyright (c) 2004-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:  
       
    15 *     See class description below
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef MNTP_APPSERVER_H
       
    21 #define MNTP_APPSERVER_H
       
    22 
       
    23 #include <aknserverapp.h>
       
    24 #include <e32property.h> 
       
    25 
       
    26 class CTestProviderNavigationService;
       
    27 class CTestProviderMapViewService;
       
    28 class CTestProviderGeocodingService;
       
    29 
       
    30 #ifdef RD_MAPNAV_BITMAP_ACCESS
       
    31 class CTestProviderMapImageService;
       
    32 #endif
       
    33 
       
    34 class CTestProviderAppUi;
       
    35 class CTestCommandListener;
       
    36 
       
    37 /**
       
    38 *  An instance of CTestProviderAppServer is the application part of the Eikon
       
    39 *  application framework for the MapNav TestProvider
       
    40 */
       
    41 class CTestProviderAppServer : public CAknAppServer
       
    42     {
       
    43     public:
       
    44         CTestProviderAppUi* AppUi() const;
       
    45         ~CTestProviderAppServer();
       
    46         
       
    47         void ConstructL( const TDesC& aFixedServerName );
       
    48         
       
    49         TBool IsFree();
       
    50         
       
    51         void HandleTestCommandL();
       
    52         TInt GetTestCommand() 
       
    53             {
       
    54             return iTestCommand;
       
    55             };
       
    56 
       
    57     public: // from CAknAppServer
       
    58         IMPORT_C CApaAppServiceBase* CreateServiceL(TUid aServiceType) const;
       
    59         IMPORT_C void HandleAllClientsClosed();
       
    60 
       
    61     protected:        
       
    62         CTestProviderGeocodingService* CreateGeocodingServiceL() const;
       
    63         CTestProviderNavigationService* CreateNavigationServiceL() const;
       
    64         CTestProviderMapViewService* CreateMapViewServiceL() const;
       
    65 #ifdef RD_MAPNAV_BITMAP_ACCESS
       
    66         CTestProviderMapImageService* CreateMapImageServiceL() const;
       
    67 #endif        
       
    68         void DumpEmptyL() const;
       
    69         
       
    70         static TInt TestCommandCallback( TAny* aPtr );
       
    71         
       
    72     private:
       
    73         mutable TBool iBusy;
       
    74         mutable CTestProviderGeocodingService* iGeocodingService;
       
    75         mutable CTestProviderNavigationService* iNavigationService;
       
    76         mutable CTestProviderMapViewService* iMapViewService;
       
    77 #ifdef RD_MAPNAV_BITMAP_ACCESS
       
    78         mutable CTestProviderMapImageService* iMapImageService;
       
    79 #endif        
       
    80         CTestCommandListener*   iListener;
       
    81         TInt iTestCommand;
       
    82     };
       
    83 
       
    84 #endif // MNTP_APPSERVER_H
       
    85