fotaapplication/fotaserver/FotaServer/inc/FotaSrvApp.h
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     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:   Header file for CFotaSrvApp
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __FOTASRVAPP_H_
       
    22 #define __FOTASRVAPP_H_
       
    23 
       
    24 // INCLUDES
       
    25 #include <eikapp.h>
       
    26 #include <aknapp.h>
       
    27 #include "FotaServer.h"
       
    28 #include "FotaSrvUI.h"
       
    29 #include "fotaConst.h"
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 * Fota server application
       
    35  *
       
    36  *  @lib    fotaserver
       
    37  *  @since  S60 v3.1
       
    38  */
       
    39 class CFotaSrvApp : public CAknApplication
       
    40     {
       
    41 
       
    42 public:
       
    43 	CFotaServer* Server();
       
    44 
       
    45     CFotaSrvApp();
       
    46 
       
    47     virtual ~CFotaSrvApp();
       
    48 
       
    49     /**
       
    50      * Show or hide UI
       
    51      *
       
    52      * @since   S60   v3.1
       
    53      * @param   aVisible    Tells whether to hide / show the ui
       
    54      * @return  none
       
    55      */
       
    56     void SetUIVisibleL( const TBool aVisible, const TBool aAlsoFSW=EFalse);
       
    57 
       
    58 private:
       
    59     /**
       
    60     * From CApaApplication, creates FotaSrvDocument document object.
       
    61     * @since   S60   v3.1
       
    62     * @param    None    
       
    63 	* @return A pointer to the created document object.
       
    64 	*/
       
    65     CApaDocument* CreateDocumentL();
       
    66     
       
    67     /**
       
    68     * From CApaApplication, returns application's UID (KUidFotaServer).
       
    69     * @since   S60   v3.1
       
    70     * @param    None
       
    71 	* @return   The value of KUidFotaServer.
       
    72     */
       
    73     TUid AppDllUid() const;
       
    74     
       
    75     /**
       
    76     * From CApaApplication
       
    77     * @since   S60   v3.1
       
    78     * @param   aAppServer returned server
       
    79 	* @return  None
       
    80     */
       
    81     void NewAppServerL( CApaAppServer*& aAppServer );
       
    82 
       
    83 private:
       
    84 
       
    85 
       
    86     /**
       
    87      * Fota server.
       
    88      * Own. 
       
    89      */
       
    90     CFotaServer*    iFotaServer;
       
    91 
       
    92 
       
    93     /**
       
    94      * Document
       
    95      * Own. 
       
    96      */
       
    97     CFotaSrvDocument* iDocument;
       
    98 
       
    99     };
       
   100 
       
   101 #endif
       
   102 
       
   103 // End of File