mmserv/sts/stsserver/inc/stsclientservercommon.h
changeset 22 128eb6a32b84
child 36 73253677b50a
equal deleted inserted replaced
16:43d09473c595 22:128eb6a32b84
       
     1 /*
       
     2  * Copyright (c) 2010 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:
       
    15  * This file defines common types and constants used by the STS server
       
    16  * and sessions.
       
    17  */
       
    18 
       
    19 #ifndef STSCLIENTSERVERCOMMON_H_
       
    20 #define STSCLIENTSERVERCOMMON_H_
       
    21 
       
    22 // SYMBIAN INCLUDES
       
    23 #include <e32std.h>
       
    24 #include <systemtoneservice.h>
       
    25 
       
    26 // CONSTANTS
       
    27 _LIT( KStsServerFile, "StsServer" );
       
    28 _LIT( KStsServerName, "!StsServer" );
       
    29 
       
    30 const TInt KStsServerMajorVersion = 0;
       
    31 const TInt KStsServerMinorVersion = 1;
       
    32 const TInt KStsServerBuild = 0;
       
    33 
       
    34 // This type enumerates the client/server messages for the STS server.
       
    35 enum TStsServerCommandType
       
    36     {
       
    37     StsMsg_RegisterMsgQueue,
       
    38     StsMsg_StopAlarm,
       
    39     StsMsg_PlayTone,
       
    40     StsMsg_PlayAlarm,
       
    41     StsMsg_ENDMARKER
       
    42     };
       
    43 
       
    44 const TStsServerCommandType KStsCmdLast =
       
    45         (TStsServerCommandType) ((int) StsMsg_ENDMARKER - 1);
       
    46 
       
    47 enum TStsCallBackType
       
    48     {
       
    49     EStsShutdown,
       
    50     EStsPlayAlarmComplete
       
    51     };
       
    52 
       
    53 struct TStsCallBack
       
    54     {
       
    55     TStsCallBackType callBackType;
       
    56     MStsPlayAlarmObserver* observer;
       
    57     unsigned int alarmContext;
       
    58     };
       
    59 
       
    60 #endif // STSCLIENTSERVERCOMMON_H_