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