fotaapplication/fotaserver/FotaServer/inc/FotaSrvApp.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 09:07:52 +0200
changeset 0 b497e44ab2fc
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2005 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:   Header file for CFotaSrvApp
*
*/




#ifndef __FOTASRVAPP_H_
#define __FOTASRVAPP_H_

// INCLUDES
#include <eikapp.h>
#include <aknapp.h>
#include "FotaServer.h"
#include "FotaSrvUI.h"
#include "fotaConst.h"

// CLASS DECLARATION

/**
* Fota server application
 *
 *  @lib    fotaserver
 *  @since  S60 v3.1
 */
class CFotaSrvApp : public CAknApplication
    {

public:
	CFotaServer* Server();

    CFotaSrvApp();

    virtual ~CFotaSrvApp();

    /**
     * Show or hide UI
     *
     * @since   S60   v3.1
     * @param   aVisible    Tells whether to hide / show the ui
     * @return  none
     */
    void SetUIVisibleL( const TBool aVisible, const TBool aAlsoFSW=EFalse);

private:
    /**
    * From CApaApplication, creates FotaSrvDocument document object.
    * @since   S60   v3.1
    * @param    None    
	* @return A pointer to the created document object.
	*/
    CApaDocument* CreateDocumentL();
    
    /**
    * From CApaApplication, returns application's UID (KUidFotaServer).
    * @since   S60   v3.1
    * @param    None
	* @return   The value of KUidFotaServer.
    */
    TUid AppDllUid() const;
    
    /**
    * From CApaApplication
    * @since   S60   v3.1
    * @param   aAppServer returned server
	* @return  None
    */
    void NewAppServerL( CApaAppServer*& aAppServer );

private:


    /**
     * Fota server.
     * Own. 
     */
    CFotaServer*    iFotaServer;


    /**
     * Document
     * Own. 
     */
    CFotaSrvDocument* iDocument;

    };

#endif

// End of File