|
24
|
1 |
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
|
2 |
// All rights reserved.
|
|
|
3 |
// This component and the accompanying materials are made available
|
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
|
5 |
// which accompanies this distribution, and is available
|
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
|
7 |
//
|
|
|
8 |
// Initial Contributors:
|
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
|
10 |
//
|
|
|
11 |
// Contributors:
|
|
|
12 |
//
|
|
|
13 |
// Description:
|
|
|
14 |
// This file contains all the interfaces classes that can be implemented by
|
|
|
15 |
// the Licensee LTSY relating to CellBroadcast related features.
|
|
|
16 |
//
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
/**
|
|
|
22 |
@file
|
|
|
23 |
@publishedPartner
|
|
|
24 |
@released
|
|
|
25 |
*/
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
#ifndef MLTSYDISPATCHCELLBROADCASTINTERFACE_H_
|
|
|
29 |
#define MLTSYDISPATCHCELLBROADCASTINTERFACE_H_
|
|
|
30 |
|
|
|
31 |
#include <ctsy/ltsy/mltsydispatchinterface.h>
|
|
|
32 |
#include <etelmm.h>
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
namespace DispatcherCellBroadcast
|
|
|
36 |
{
|
|
|
37 |
|
|
|
38 |
/**
|
|
|
39 |
* This namespace contains all types relating to the Cell Broadcast dispatcher.
|
|
|
40 |
*/
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
struct TWcdmaCbsMsgBase
|
|
|
44 |
{
|
|
|
45 |
/*
|
|
|
46 |
* Number of Pages
|
|
|
47 |
*/
|
|
|
48 |
TInt iNumberOfPages;
|
|
|
49 |
|
|
|
50 |
/*
|
|
|
51 |
* Message Type
|
|
|
52 |
*/
|
|
|
53 |
TUint8 iMessageType;
|
|
|
54 |
|
|
|
55 |
/*
|
|
|
56 |
* Message ID
|
|
|
57 |
*/
|
|
|
58 |
TUint16 iMessageId;
|
|
|
59 |
|
|
|
60 |
/*
|
|
|
61 |
* Serial Number
|
|
|
62 |
*/
|
|
|
63 |
TUint16 iSerialNum;
|
|
|
64 |
|
|
|
65 |
/*
|
|
|
66 |
* Data Coding Scheme
|
|
|
67 |
*/
|
|
|
68 |
TUint8 iDCS;
|
|
|
69 |
|
|
|
70 |
/*
|
|
|
71 |
* Info length
|
|
|
72 |
*/
|
|
|
73 |
TUint8 iInfoLength;
|
|
|
74 |
};
|
|
|
75 |
|
|
|
76 |
}
|
|
|
77 |
|
|
|
78 |
class MLtsyDispatchCellBroadcastSetBroadcastFilterSetting : public MLtsyDispatchInterface
|
|
|
79 |
{
|
|
|
80 |
public:
|
|
|
81 |
|
|
|
82 |
static const TInt KLtsyDispatchCellBroadcastSetBroadcastFilterSettingApiId = KDispatchCellBroadcastFuncUnitId + 1;
|
|
|
83 |
|
|
|
84 |
/**
|
|
|
85 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobileBroadcastMessagingSetFilterSetting
|
|
|
86 |
* request from the CTSY.
|
|
|
87 |
*
|
|
|
88 |
* It is a request call that is completed by invoking
|
|
|
89 |
* CCtsyDispatcherCallback::CallbackCellBroadcastSetBroadcastFilterSettingComp()
|
|
|
90 |
*
|
|
|
91 |
* Implementation of this interface sets a new value for the filter setting.
|
|
|
92 |
* The filter specifies which broadcast messages are accepted and which are rejected
|
|
|
93 |
*
|
|
|
94 |
*
|
|
|
95 |
* @param aFilterSetting struct settings for a filter to accept/reject messages
|
|
|
96 |
*
|
|
|
97 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
|
98 |
* failure.
|
|
|
99 |
*
|
|
|
100 |
* @see RMobileBroadcastMessaging::SetFilterSetting()
|
|
|
101 |
*/
|
|
|
102 |
virtual TInt HandleSetBroadcastFilterSettingReqL(RMobileBroadcastMessaging::TMobilePhoneBroadcastFilter aFilterSetting) = 0;
|
|
|
103 |
|
|
|
104 |
}; // class MLtsyDispatchCellBroadcastSetBroadcastFilterSetting
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
class MLtsyDispatchCellBroadcastActivateBroadcastReceiveMessage : public MLtsyDispatchInterface
|
|
|
109 |
{
|
|
|
110 |
public:
|
|
|
111 |
|
|
|
112 |
static const TInt KLtsyDispatchCellBroadcastActivateBroadcastReceiveMessageApiId = KDispatchCellBroadcastFuncUnitId + 2;
|
|
|
113 |
|
|
|
114 |
/**
|
|
|
115 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobileBroadcastMessagingReceiveMessage
|
|
|
116 |
* request from the CTSY.
|
|
|
117 |
*
|
|
|
118 |
* It is a request call that is completed by invoking
|
|
|
119 |
* CCtsyDispatcherCallback::CallbackCellBroadcastActivateBroadcastReceiveMessageComp()
|
|
|
120 |
*
|
|
|
121 |
* RMobileBroadcastMessaging::ReceiveMessage will be completed when a new incoming broadcast message has been received
|
|
|
122 |
* via CallbackCellBroadcastGsmBroadcastNotifyMessageReceivedInd() or CallbackCellBroadcastWcdmaBroadcastMessageReceivedInd()
|
|
|
123 |
*
|
|
|
124 |
* @param aFilterSetting struct settings for a filter to accept/reject messages
|
|
|
125 |
*
|
|
|
126 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
|
127 |
* failure.
|
|
|
128 |
*
|
|
|
129 |
* @see RMobileBroadcastMessaging::ReceiveMessage()
|
|
|
130 |
* @see CCtsyDispatcherCallback::CallbackCellBroadcastGsmBroadcastNotifyMessageReceivedInd()
|
|
|
131 |
* @see CCtsyDispatcherCallback::CallbackCellBroadcastWcdmaBroadcastMessageReceivedInd()
|
|
|
132 |
*/
|
|
|
133 |
virtual TInt HandleActivateBroadcastReceiveMessageReqL(RMobileBroadcastMessaging::TMobilePhoneBroadcastFilter aFilterSetting) = 0;
|
|
|
134 |
|
|
|
135 |
}; // class MLtsyDispatchCellBroadcastActivateBroadcastReceiveMessage
|
|
|
136 |
|
|
|
137 |
|
|
|
138 |
|
|
|
139 |
class MLtsyDispatchCellBroadcastReceiveMessageCancel : public MLtsyDispatchInterface
|
|
|
140 |
{
|
|
|
141 |
public:
|
|
|
142 |
|
|
|
143 |
static const TInt KLtsyDispatchCellBroadcastReceiveMessageCancelApiId = KDispatchCellBroadcastFuncUnitId + 3;
|
|
|
144 |
|
|
|
145 |
/**
|
|
|
146 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobileBroadcastMessagingReceiveMessageCancel
|
|
|
147 |
* request from the CTSY.
|
|
|
148 |
*
|
|
|
149 |
* It is a request call that is completed by invoking
|
|
|
150 |
* CCtsyDispatcherCallback::CallbackCellBroadcastReceiveMessageCancelComp()
|
|
|
151 |
*
|
|
|
152 |
*
|
|
|
153 |
* @param aFilterSetting struct settings for a filter to accept/reject messages
|
|
|
154 |
*
|
|
|
155 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
|
156 |
* failure.
|
|
|
157 |
*
|
|
|
158 |
* @see RMobileBroadcastMessaging::ReceiveMessage()
|
|
|
159 |
* @see RMobileBroadcastMessaging::Close()
|
|
|
160 |
*/
|
|
|
161 |
virtual TInt HandleReceiveMessageCancelReqL(RMobileBroadcastMessaging::TMobilePhoneBroadcastFilter aFilterSetting ) = 0;
|
|
|
162 |
|
|
|
163 |
}; // class MLtsyDispatchCellBroadcastReceiveMessageCancel
|
|
|
164 |
|
|
|
165 |
class MLtsyDispatchCellBroadcastStartSimCbTopicBrowsing : public MLtsyDispatchInterface
|
|
|
166 |
{
|
|
|
167 |
public:
|
|
|
168 |
|
|
|
169 |
static const TInt KLtsyDispatchCellBroadcastStartSimCbTopicBrowsingApiId = KDispatchCellBroadcastFuncUnitId + 4;
|
|
|
170 |
|
|
|
171 |
/**
|
|
|
172 |
* The CTSY Dispatcher shall invoke this function on receiving the ECustomStartSimCbTopicBrowsingIPC
|
|
|
173 |
* request from the CTSY.
|
|
|
174 |
*
|
|
|
175 |
* It is a request call that is completed by invoking
|
|
|
176 |
* CCtsyDispatcherCallback::CallbackCellBroadcastStartSimCbTopicBrowsingComp()
|
|
|
177 |
*
|
|
|
178 |
*
|
|
|
179 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
|
180 |
* failure.
|
|
|
181 |
*/
|
|
|
182 |
virtual TInt HandleStartSimCbTopicBrowsingReqL() = 0;
|
|
|
183 |
|
|
|
184 |
}; // class MLtsyDispatchCellBroadcastStartSimCbTopicBrowsing
|
|
|
185 |
|
|
|
186 |
class MLtsyDispatchCellBroadcastDeleteSimCbTopic : public MLtsyDispatchInterface
|
|
|
187 |
{
|
|
|
188 |
public:
|
|
|
189 |
|
|
|
190 |
static const TInt KLtsyDispatchCellBroadcastDeleteSimCbTopicApiId = KDispatchCellBroadcastFuncUnitId + 5;
|
|
|
191 |
|
|
|
192 |
/**
|
|
|
193 |
* The CTSY Dispatcher shall invoke this function on receiving the ECustomDeleteSimCbTopicIPC
|
|
|
194 |
* request from the CTSY.
|
|
|
195 |
*
|
|
|
196 |
* It is a request call that is completed by invoking
|
|
|
197 |
* CCtsyDispatcherCallback::CallbackCellBroadcastDeleteSimCbTopicComp()
|
|
|
198 |
*
|
|
|
199 |
*
|
|
|
200 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
|
201 |
* failure.
|
|
|
202 |
*/
|
|
|
203 |
virtual TInt HandleDeleteSimCbTopicReqL(TUint aIndex, TBool aDeleteFlag) = 0;
|
|
|
204 |
|
|
|
205 |
}; // class MLtsyDispatchCellBroadcastDeleteSimCbTopic
|
|
|
206 |
|
|
|
207 |
|
|
|
208 |
#endif /*MLTSYDISPATCHCELLBROADCASTINTERFACE_H_*/
|