1 /* |
|
2 * Copyright (c) 2003 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 contains the data structure definitions |
|
16 * needed by both the server and the client interfaces at compile |
|
17 * time. |
|
18 * |
|
19 * |
|
20 */ |
|
21 |
|
22 |
|
23 #ifndef SATSTYPES_H |
|
24 #define SATSTYPES_H |
|
25 |
|
26 // INCLUDES |
|
27 #include <e32base.h> |
|
28 #include <etelsat.h> |
|
29 #include <msatuiobserver.h> |
|
30 |
|
31 // CONSTANTS |
|
32 |
|
33 // The length of the IPC data buffer. |
|
34 const TInt KSatIpcBufferLength = 256; |
|
35 |
|
36 // The size of the name buffer of SAT application. |
|
37 const TInt KSatAppNameSize = 255; |
|
38 |
|
39 // The size of the name buffer of SAT application. |
|
40 const TInt KSatGetInputEntrySize = 256; |
|
41 |
|
42 // DATA TYPES |
|
43 |
|
44 // The query IPC data structure. |
|
45 struct TSatDisplayTextV1 |
|
46 { |
|
47 TUint8 iPCmdNumber; |
|
48 TBuf<KSatIpcBufferLength> iText; |
|
49 TBuf<KSatIpcBufferLength> iSimApplicationName; |
|
50 RSat::TIconId iIconId; |
|
51 TBool iSustainedText; |
|
52 TTimeIntervalSeconds iDuration; |
|
53 RSat::TClearScreenTrigger iClearScreen; |
|
54 }; |
|
55 |
|
56 // The query IPC data package. |
|
57 typedef TPckg<TSatDisplayTextV1> TSatDisplayTextV1Pckg; |
|
58 |
|
59 // The event IPC data structure. |
|
60 struct TSatEventV1 |
|
61 { |
|
62 TSatSEvent iEvent; |
|
63 TSatSEventStatus iStatus; |
|
64 TInt iError; |
|
65 }; |
|
66 |
|
67 // The event IPC data package. |
|
68 typedef TPckg<TSatEventV1> TSatEventV1Pckg; |
|
69 |
|
70 // The query IPC data structure. |
|
71 struct TSatQueryV1 |
|
72 { |
|
73 TBuf<KSatIpcBufferLength> iQueryText; |
|
74 TSatSQueryCommand iCommand; |
|
75 TBuf<KSatIpcBufferLength> iSimApplicationName; |
|
76 TBuf<KSatIpcBufferLength> iDestinationName; |
|
77 TSatAlphaIdStatus iAlphaIdStatus; |
|
78 TSatIconId iIconId; |
|
79 }; |
|
80 |
|
81 // The query IPC data package. |
|
82 typedef TPckg<TSatQueryV1> TSatQueryV1Pckg; |
|
83 |
|
84 // The query response IPC data structure. |
|
85 struct TSatQueryRspV1 |
|
86 { |
|
87 TSatSQueryCommand iCommand; |
|
88 TBool iAccepted; |
|
89 TInt iWgId; |
|
90 TBool iRequestedIconDisplayed; |
|
91 TBool iSessionTerminatedByUser; |
|
92 }; |
|
93 |
|
94 // The query response IPC data package. |
|
95 typedef TPckg<TSatQueryRspV1> TSatQueryRspV1Pckg; |
|
96 |
|
97 // The notification IPC data structure. |
|
98 struct TSatNotificationV1 |
|
99 { |
|
100 RSat::TAlphaIdBuf iText; |
|
101 TSatSNotifyCommand iCommand; |
|
102 TSatAlphaIdStatus iAlphaIdStatus; |
|
103 TSatControlResult iControlResult; // CC and MoSm |
|
104 TSatIconId iIconId; |
|
105 }; |
|
106 |
|
107 // The notification response IPC data package. |
|
108 typedef TPckg<TSatNotificationV1> TSatNotificationV1Pckg; |
|
109 |
|
110 // The notification IPC data structure. |
|
111 struct TSatNotificationRspV1 |
|
112 { |
|
113 TSatSNotifyCommand iCommand; |
|
114 TBool iAccepted; |
|
115 TInt iWgId; |
|
116 TBool iRequestedIconDisplayed; |
|
117 TBool iSessionTerminatedByUser; |
|
118 }; |
|
119 |
|
120 // The notification response IPC data package. |
|
121 typedef TPckg<TSatNotificationRspV1> TSatNotificationRspV1Pckg; |
|
122 |
|
123 // Types for session termination |
|
124 enum TSatTerminationType |
|
125 { |
|
126 ETerminatedByCancel, |
|
127 ETerminatedByEndKey |
|
128 }; |
|
129 |
|
130 // Session termination data structure |
|
131 struct TSatTermination |
|
132 { |
|
133 TSatTerminationType type; |
|
134 }; |
|
135 |
|
136 // Session termination IPC data package. |
|
137 typedef TPckg<TSatTermination> TSatTerminationPckg; |
|
138 |
|
139 #endif // SATSTYPES_H |
|
140 |
|
141 // End of File |
|