clock2/clockengines/clockserver/server/inc/clockservermain.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Entry point for the clock server.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __CLOCKSERVER_MAIN_H__
       
    19 #define __CLOCKSERVER_MAIN_H__
       
    20 
       
    21 // Constants
       
    22 /**
       
    23 * @enum TSrvFault
       
    24 * @brief The server panic codes
       
    25 */
       
    26 enum TSrvFault
       
    27     {
       
    28     EMainCreateSemaphore,
       
    29     EMainCreateScheduler,
       
    30     EMainActiveError,
       
    31     EMainServerNotStarted,
       
    32     EMainClockServerThreadRename
       
    33     };
       
    34 
       
    35 // Function declarations
       
    36 /**
       
    37 * @brief Called when there is a panic in the server program.
       
    38 * @param aFault of type TSrvFault, one of the panic codes.
       
    39 */
       
    40 GLREF_C void Fault( TSrvFault aFault );
       
    41 
       
    42 /**
       
    43 * @brief Creates the server object. Called if the object 
       
    44 *			  is not already present.
       
    45 * @param TAny*
       
    46 * @return TInt Error code.
       
    47 */
       
    48 IMPORT_C TInt TheServerThread( TAny* /*aPr*/ );
       
    49 
       
    50 /**
       
    51 * @brief Returns if ClockServer is already running or not.
       
    52 * @return TBool ETrue if ClockServer already running, EFalse otherwise.
       
    53 */
       
    54 LOCAL_C TBool IsServerLoaded();
       
    55 
       
    56 /**
       
    57 * @brief The Main startup entry point.
       
    58 * @return TInt Error code.
       
    59 */
       
    60 GLDEF_C TInt E32Main();
       
    61 
       
    62 #endif		// __CLOCKSERVER_MAIN_H__
       
    63 
       
    64 // End of file