appinstaller/AppinstUi/Server/Inc/SWInstServer.h
changeset 80 9dcba1ee99f7
parent 77 d1838696558c
equal deleted inserted replaced
77:d1838696558c 80:9dcba1ee99f7
     1 /*
       
     2 * Copyright (c) 2002-2004 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:   This file contains the header file of the CSWInstServer class 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SWINSTSERVER_H
       
    20 #define SWINSTSERVER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <AknServerApp.h>
       
    24 
       
    25 namespace SwiUI
       
    26 {
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class MRequestCallback;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 * This class represents the SWInstaller server.
       
    35 *
       
    36 * @since 3.0
       
    37 */
       
    38 class CSWInstServer : public CAknAppServer
       
    39     {
       
    40     public:  // Constructors and destructor
       
    41   
       
    42         /**
       
    43         * Constructor.
       
    44         * @return Instance of the created server object.
       
    45         */  
       
    46         static CSWInstServer* NewL();
       
    47 
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         virtual ~CSWInstServer();      
       
    52         
       
    53     public: // New functions
       
    54 
       
    55         /**
       
    56         * Prepare the server for exit.
       
    57         * @since 3.0
       
    58         * @param aExitCallback - Will be called when the server is ready for exit.
       
    59         */
       
    60         void PrepareForExit( MRequestCallback* aExitCallback );        
       
    61 
       
    62     public: // Functions from base classes
       
    63 
       
    64         /**
       
    65         * From CApaAppServiceBase, Service creation function.
       
    66         * @since 3.0
       
    67         */
       
    68         CApaAppServiceBase* CreateServiceL( TUid aServiceType ) const;
       
    69 
       
    70         /**
       
    71         * From CEikAppServer, Security check for services.
       
    72         * @since 3.0
       
    73         */
       
    74         CPolicyServer::TCustomResult CreateServiceSecurityCheckL( TUid aServiceType, 
       
    75                                                                   const RMessage2& aMsg, 
       
    76                                                                   TInt& aAction, 
       
    77                                                                   TSecurityInfo& aMissing );        
       
    78         
       
    79     private:
       
    80 
       
    81         /**
       
    82         * Constructor.
       
    83         */
       
    84         CSWInstServer();
       
    85 
       
    86         /**
       
    87         * 2nd phase constructor.
       
    88         * @param aServerName - Name of the server
       
    89         */
       
    90         void ConstructL();
       
    91     };
       
    92 }
       
    93 
       
    94 #endif      // SWINSTSERVER_H   
       
    95             
       
    96 // End of File