|
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 #ifndef STSCLIENTSERVERCOMMON_H_ |
|
19 #define STSCLIENTSERVERCOMMON_H_ |
|
20 |
|
21 // SYMBIAN INCLUDES |
|
22 #include <e32std.h> |
|
23 #include <systemtoneservice.h> |
|
24 |
|
25 // CONSTANTS |
|
26 _LIT( KStsServerFile, "StsServer" ); |
|
27 _LIT( KStsServerName, "!StsServer" ); |
|
28 |
|
29 const TInt KStsServerMajorVersion = 0; |
|
30 const TInt KStsServerMinorVersion = 1; |
|
31 const TInt KStsServerBuild = 0; |
|
32 |
|
33 // This type enumerates the client/server messages for the STS server. |
|
34 enum TStsServerCommandType |
|
35 { |
|
36 StsMsg_RegisterMsgQueue, |
|
37 StsMsg_StopAlarm, |
|
38 StsMsg_PlayTone, |
|
39 StsMsg_PlayAlarm, |
|
40 StsMsg_PlayToneAlarm, |
|
41 StsMsg_ENDMARKER |
|
42 }; |
|
43 |
|
44 const TStsServerCommandType KStsCmdLast = |
|
45 (TStsServerCommandType) ((int) StsMsg_ENDMARKER - 1); |
|
46 |
|
47 enum TStsCallBackType |
|
48 { |
|
49 EStsShutdown, EStsPlayAlarmComplete |
|
50 }; |
|
51 |
|
52 struct TStsCallBack |
|
53 { |
|
54 TStsCallBackType callBackType; |
|
55 MStsPlayAlarmObserver* observer; |
|
56 unsigned int alarmContext; |
|
57 }; |
|
58 |
|
59 #endif // STSCLIENTSERVERCOMMON_H_ |