1 /* |
|
2 * Copyright (c) 2006 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 definitions for CBS MCN Clients. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CBSMCNCOMMON_H |
|
21 #define CBSMCNCOMMON_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <s32std.h> |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // DATA TYPES |
|
30 |
|
31 // MCN message max size |
|
32 const TInt KCbsMcnFullMsgSize = 1320; |
|
33 // MCN topic number max size |
|
34 const TInt KCbsTopicNumberPageSize = 5; |
|
35 |
|
36 // Network in which current message was received in. |
|
37 enum TCbsNetworkMode |
|
38 { |
|
39 ECbsNetworkGsm, |
|
40 ECbsNetworkWcdma, |
|
41 ECbsNetworkNotDefined |
|
42 }; |
|
43 |
|
44 |
|
45 // Class for MCN messages over IPC |
|
46 class TCbsMcnMessage |
|
47 { |
|
48 public: |
|
49 TCbsMcnMessage() : iBuffer( NULL ), |
|
50 iBuffer8( NULL ), |
|
51 iTopicNumber( 0 ), |
|
52 iNetworkMode( ECbsNetworkNotDefined ) {}; |
|
53 |
|
54 public: // Data |
|
55 // Buffer for the Mcn message. |
|
56 TBuf<KCbsMcnFullMsgSize> iBuffer; |
|
57 |
|
58 // 8-bit Buffer for MCN/Livecast messages |
|
59 TBuf8<KCbsMcnFullMsgSize> iBuffer8; |
|
60 |
|
61 //Buffer for the Topic number of the Mcn message. |
|
62 //TBuf<KCbsTopicNumberPageSize> iTopicNumber; |
|
63 TUint iTopicNumber; |
|
64 |
|
65 // Network in which current message was received |
|
66 TCbsNetworkMode iNetworkMode; |
|
67 }; |
|
68 |
|
69 // Livecast topic range |
|
70 const TUint KCbsLivecastTopicMin = 40960; |
|
71 const TUint KCbsLivecastTopicMax = 45055; |
|
72 |
|
73 #endif // CBSMCNCOMMON_H |
|
74 |
|
75 // End of File |
|
76 |
|