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: This file contains the header file of the CCbsSetFilterSettingHandler class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CCBSSETFILTERSETTINGHANDLER_H |
|
20 #define CCBSSETFILTERSETTINGHANDLER_H |
|
21 |
|
22 // INCLUDES |
|
23 /***************************************************** |
|
24 * Series 60 Customer / ETel |
|
25 * Series 60 ETel API |
|
26 *****************************************************/ |
|
27 #include <etelmm.h> |
|
28 #include "CbsServerConstants.h" |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CCbsRecEtel; |
|
32 class CCbsRecEtelMonitor; |
|
33 class MCbsEtelMessaging; |
|
34 |
|
35 // CLASS DECLARATION |
|
36 |
|
37 /** |
|
38 * Handles the SetFilterSetting command. |
|
39 * |
|
40 */ |
|
41 class CCbsSetFilterSettingHandler : public CActive |
|
42 { |
|
43 public: // New functions |
|
44 |
|
45 /** |
|
46 * Creates an instance of the class. |
|
47 * |
|
48 * @param aEtel A reference to the receiver |
|
49 * @param aMessaging A reference to the messaging object |
|
50 * @return A new instance of |
|
51 * CCbsSetFilterSettingHandler |
|
52 */ |
|
53 static CCbsSetFilterSettingHandler* NewL( CCbsRecEtel& aEtel, |
|
54 MCbsEtelMessaging& aMessaging ); |
|
55 |
|
56 /** |
|
57 * Destructor. |
|
58 */ |
|
59 ~CCbsSetFilterSettingHandler(); |
|
60 |
|
61 /** |
|
62 * Sets a new filter setting to EPOC Telephony server. |
|
63 * |
|
64 * @param aSetting The new setting |
|
65 */ |
|
66 void SetFilterSetting( |
|
67 RMobileBroadcastMessaging::TMobilePhoneBroadcastFilter aSetting ); |
|
68 |
|
69 private: // From CActive |
|
70 |
|
71 /** |
|
72 * Called when EPOC Telephony server has completed the SetFilterSetting operation. |
|
73 */ |
|
74 void RunL(); |
|
75 |
|
76 /** |
|
77 * Cancels an outstanding ReadCbsMessage request. |
|
78 */ |
|
79 void DoCancel(); |
|
80 |
|
81 /** |
|
82 * Is called if RunL() leaves. |
|
83 * |
|
84 * @param aError Error code |
|
85 * @return Always KErrNone |
|
86 */ |
|
87 TInt RunError( TInt aError ); |
|
88 |
|
89 private: |
|
90 |
|
91 /** |
|
92 * The constructor. |
|
93 * |
|
94 * @param aEtel CCbsRecEtel object. |
|
95 * @param aMessaging EPOC Telephony server messaging object. |
|
96 */ |
|
97 CCbsSetFilterSettingHandler( CCbsRecEtel& aEtel, |
|
98 MCbsEtelMessaging& aMessaging ); |
|
99 |
|
100 /** |
|
101 * Finalizes the construction. |
|
102 */ |
|
103 void ConstructL(); |
|
104 |
|
105 private: // Data |
|
106 |
|
107 // CCbsRecEtel instance to which CB messages are passed. |
|
108 CCbsRecEtel& iEtel; |
|
109 |
|
110 // Messaging subsession. |
|
111 MCbsEtelMessaging& iSmsMessaging; |
|
112 |
|
113 // Type of broadcast id |
|
114 RMobileBroadcastMessaging::TMobileBroadcastIdType iIdType; |
|
115 }; |
|
116 |
|
117 #endif // CCBSSETFILTERSETTINGHANDLER_H |
|
118 |
|
119 // End of File |
|
120 |
|
121 |
|