testexecfw/stf/stffw/testengine/inc/SettingServerClientServer.h
changeset 2 8bb370ba6d1d
equal deleted inserted replaced
1:bbd31066657e 2:8bb370ba6d1d
       
     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: This file contains the header file of the 
       
    15 * CSettingServer.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef SETTINGSERVERCLIENTSERVER_H
       
    20 #define SETTINGSERVERCLIENTSERVER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 // The server version.
       
    26 // A version must be specified when creating a session with the server.
       
    27 const TUint KSettingServerMajorVersionNumber=0;
       
    28 const TUint KSettingServerMinorVersionNumber=1;
       
    29 const TUint KSettingServerVersionNumber=1;
       
    30 
       
    31 // Server heap size
       
    32 const TUint KDefaultHeapSize = 0x10000;     // 64 K
       
    33 const TUint KMaxHeapSize     = 0x20000;     // 128 K 
       
    34 
       
    35 // MACROS
       
    36 // none
       
    37 
       
    38 // DATA TYPES
       
    39 
       
    40 // Panic reasons
       
    41 enum TSettingServerPanic
       
    42     {
       
    43     EBadRequest,
       
    44     EBadDescriptor,
       
    45     EMainSchedulerError,
       
    46     ESvrCreateServer,
       
    47     ECreateTrapCleanup,
       
    48     ENoStartupInformation,
       
    49     ETooManyCloseSessions,
       
    50     EPopFromEmptyStack
       
    51     };
       
    52 
       
    53 // Opcodes used in message passing between client and server
       
    54 enum TSettingServerRequests
       
    55     {
       
    56     // RSettingServer requests
       
    57     ESettingServerCloseSession,
       
    58 
       
    59     // RLoggerSetting requests
       
    60     ELoadLoggerSettingsFromIniFile,
       
    61     ELoadLoggerSettingsFromCommandLine,
       
    62     EGetLoggerSettings,
       
    63 
       
    64     // e.g. SetAttribute requests
       
    65     ESetLoggerOutputPath,
       
    66     
       
    67     // Reset logger settings to default value
       
    68     EResetLoggerSettings,
       
    69     };
       
    70 
       
    71 // Struct to pass parameters to server thread
       
    72 struct TThreadStartSetting
       
    73     {
       
    74     TFileName  iName;         // Server name
       
    75     RThread    iServerThread; // The server thread
       
    76     RSemaphore iStarted;      // Startup syncronisation semaphore   
       
    77     TInt       iStartupResult;// Start-up result
       
    78     };
       
    79 
       
    80 #endif /* SETTINGSERVERCLIENTSERVER_H */
       
    81 // End of file