phoneclientserver/phoneserver/Inc/Standard/PhSrvStartUp.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     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:  Static Phone Server startup utility class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef PHSRVSTARTUP_H
       
    20 #define PHSRVSTARTUP_H
       
    21 
       
    22 
       
    23 // INCLUDES
       
    24 #include <phclttypes.h> 
       
    25 
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 //None.
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 * Static server startup utility class. Encapsulates all the knowledge of how 
       
    34 * to start and prepare the phone server, including build target (WINS/MARM) 
       
    35 * specific functionality.
       
    36 *
       
    37 * @since 1.0
       
    38 */
       
    39 class PhoneServerStartUpUtils
       
    40     {
       
    41     public: // New functions
       
    42 
       
    43 
       
    44         /**
       
    45         * Creates a new server and starts it.
       
    46         */
       
    47         static void CreateAndRunServerL();
       
    48 
       
    49         /**
       
    50         * Prepare the server thread, i.e. create a cleanup stack environment 
       
    51         * and start the server for real.
       
    52         *
       
    53         * @return Symbian error code of the operation.
       
    54         */
       
    55         static TInt PrepareServerEnvironment();
       
    56     };
       
    57 
       
    58 
       
    59 #endif  // PHSRVSTARTUP_H
       
    60 
       
    61 
       
    62 // End of File