mapnavproviderrefapp/inc/mnrpappserver.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:31:27 +0100
branchRCL_3
changeset 18 870918037e16
parent 0 522cd55cc3d7
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  CMnrpAppServer class definition
*
*/


#ifndef MNRP_APPSERVER_H
#define MNRP_APPSERVER_H

#include <AknServerApp.h>

class CMnrpAppUi;
class CMnrpNavigationService;
class CMnrpMapViewService;

/** Application Server class of MnRefProvider component */
class CMnrpAppServer : public CAknAppServer
    {
    public:
        ~CMnrpAppServer();
        
        CMnrpAppUi* AppUi();

    public: // from CAknAppServer
    	/** Creates new service class and returns pointer to it */
        IMPORT_C CApaAppServiceBase* CreateServiceL(TUid aServiceType) const;
        
        /** Overrides base function. Doesn't close application evenb if all
         *	clients have disconnected until user closes it herself. 
         *	It is important for standalone execution, when calling application
         *	may be closed, but user still wants to continue with Map or Navigation.
         */
        IMPORT_C void HandleAllClientsClosed();
        
    protected:        
    	/** Creates new navigation service class and returns pointer to it */
        CMnrpNavigationService* CreateNavigationServiceL() const;
    	/** Creates new map view service class and returns pointer to it */
        CMnrpMapViewService* CreateMapViewServiceL() const;
    };

#endif // MNRP_APPSERVER_H