mapnavproviderrefapp/inc/mnrpappserver.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2006 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:  CMnrpAppServer class definition
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MNRP_APPSERVER_H
       
    20 #define MNRP_APPSERVER_H
       
    21 
       
    22 #include <AknServerApp.h>
       
    23 
       
    24 class CMnrpAppUi;
       
    25 class CMnrpNavigationService;
       
    26 class CMnrpMapViewService;
       
    27 
       
    28 /** Application Server class of MnRefProvider component */
       
    29 class CMnrpAppServer : public CAknAppServer
       
    30     {
       
    31     public:
       
    32         ~CMnrpAppServer();
       
    33         
       
    34         CMnrpAppUi* AppUi();
       
    35 
       
    36     public: // from CAknAppServer
       
    37     	/** Creates new service class and returns pointer to it */
       
    38         IMPORT_C CApaAppServiceBase* CreateServiceL(TUid aServiceType) const;
       
    39         
       
    40         /** Overrides base function. Doesn't close application evenb if all
       
    41          *	clients have disconnected until user closes it herself. 
       
    42          *	It is important for standalone execution, when calling application
       
    43          *	may be closed, but user still wants to continue with Map or Navigation.
       
    44          */
       
    45         IMPORT_C void HandleAllClientsClosed();
       
    46         
       
    47     protected:        
       
    48     	/** Creates new navigation service class and returns pointer to it */
       
    49         CMnrpNavigationService* CreateNavigationServiceL() const;
       
    50     	/** Creates new map view service class and returns pointer to it */
       
    51         CMnrpMapViewService* CreateMapViewServiceL() const;
       
    52     };
       
    53 
       
    54 #endif // MNRP_APPSERVER_H
       
    55