1 /* |
|
2 * Copyright (c) 2004 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 CCbsRecWcdmaMessage |
|
15 * class. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CCBSRECWCDMAMESSAGE_H |
|
21 #define CCBSRECWCDMAMESSAGE_H |
|
22 |
|
23 // INCLUDES |
|
24 /***************************************************** |
|
25 * Series 60 Customer / ETel |
|
26 * Series 60 ETel API |
|
27 *****************************************************/ |
|
28 #include <etelmm.h> |
|
29 |
|
30 #include "CbsCommon.h" |
|
31 #include "CbsReceiverTypes.h" |
|
32 #include "CCbsMessage.h" |
|
33 |
|
34 |
|
35 // CLASS DECLARATION |
|
36 |
|
37 /** |
|
38 * CCbsRecWcdmaMessage represents a WCDMA message page generated by |
|
39 * CCbsRecEtelMonitor. |
|
40 * |
|
41 * CCbsRecWcdmaMessage is constructed from a CB message page received from |
|
42 * EPOC Telephony Server. |
|
43 */ |
|
44 class CCbsRecWcdmaMessage : public CCbsMessage |
|
45 { |
|
46 public: // Constructors and Destructors |
|
47 /** |
|
48 * Constructs a new CCbsRecMessage based on TDes8& |
|
49 * (which is a descriptor) received from EPOC Telephony Server. |
|
50 * |
|
51 * @param aMessagePage Source message descriptor |
|
52 * @param aAttributes Message attributes |
|
53 * @return A new instance of CCbsRecWcdmaMessage |
|
54 */ |
|
55 static CCbsRecWcdmaMessage* NewL( const TDes8& aMessagePage, |
|
56 const RMobileBroadcastMessaging::TMobileBroadcastAttributesV2& aAttributes ); |
|
57 |
|
58 /** |
|
59 * Constructs a new CCbsRecMessage based on TDes8& |
|
60 * (which is a descriptor) received from EPOC Telephony Server. |
|
61 * |
|
62 * @param aMessage Source message |
|
63 * @return A new instance of CCbsRecWcdmaMessage |
|
64 */ |
|
65 static CCbsRecWcdmaMessage* NewL( const CCbsMessage& aMessage ); |
|
66 |
|
67 /** |
|
68 * Destructor |
|
69 */ |
|
70 ~CCbsRecWcdmaMessage(); |
|
71 |
|
72 public: |
|
73 /** |
|
74 * Returns the page number of this page in the message page sequence, |
|
75 * |
|
76 * @return Page number of this page. |
|
77 */ |
|
78 TUint ThisPage() const; |
|
79 |
|
80 /** |
|
81 * Returns the total number of pages in this page's message. |
|
82 * |
|
83 * @return Total number of pages in this message |
|
84 */ |
|
85 TUint TotalPages() const; |
|
86 |
|
87 public: // from CCbsMessage |
|
88 |
|
89 /** |
|
90 * Appends another message's content to this message's content. |
|
91 * |
|
92 * @return Type of this message |
|
93 */ |
|
94 TInt MessageType() const; |
|
95 |
|
96 private: |
|
97 |
|
98 /** |
|
99 * 2nd-phase constructor. |
|
100 * |
|
101 * @param aMessagePage Message page |
|
102 * @param aAttributes Message attributes |
|
103 */ |
|
104 void ConstructL( const TDes8& aMessagePage, |
|
105 const RMobileBroadcastMessaging::TMobileBroadcastAttributesV2& aAttributes ); |
|
106 |
|
107 /** |
|
108 * 2nd-phase constructor. |
|
109 * |
|
110 * @param aMessage Message page |
|
111 */ |
|
112 void ConstructL( const CCbsMessage& aMessage ); |
|
113 |
|
114 /** |
|
115 * Default constructor |
|
116 */ |
|
117 CCbsRecWcdmaMessage( const RMobileBroadcastMessaging::TMobileBroadcastAttributesV2& aAttributes ); |
|
118 |
|
119 /** |
|
120 * Default constructor |
|
121 */ |
|
122 CCbsRecWcdmaMessage(); |
|
123 |
|
124 private: // prohibited functions and operators |
|
125 |
|
126 // Copy constructor: NewL() used instead |
|
127 CCbsRecWcdmaMessage( const CCbsRecWcdmaMessage& ); |
|
128 |
|
129 // Assignment operator |
|
130 CCbsRecWcdmaMessage& operator=( const CCbsRecWcdmaMessage& ); |
|
131 |
|
132 private: // data |
|
133 |
|
134 // Message type (CBS message, schedule message, CBS41 message) |
|
135 TUint8 iMessageType; |
|
136 |
|
137 // WCDMA message attributes |
|
138 RMobileBroadcastMessaging::TMobileBroadcastAttributesV2 iWcdmaAttributes; |
|
139 |
|
140 }; |
|
141 |
|
142 #endif // CCBSRECWCDMAMESSAGE_H |
|
143 |
|
144 // End of File |
|