|
1 /* |
|
2 * Copyright (c) 2008-2008 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: Divert dual activation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPSETCALLDIVERTINGDUALAFFECTIMPL_H |
|
20 #define CPSETCALLDIVERTINGDUALAFFECTIMPL_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <PsetCallDiverting.h> |
|
25 #include <mmretrieve.h> |
|
26 #include <ctsydomaincrkeys.h> |
|
27 #include "MSSSettingsObserver.h" |
|
28 #include "nwdefs.h" |
|
29 #include "PsetConstants.h" |
|
30 #include "PSetCallDivertingBase.h" |
|
31 |
|
32 // CLASS DECLARATION |
|
33 class CPsetSAObserver; |
|
34 class CDesC16ArrayFlat; |
|
35 class RSSSettings; |
|
36 class MPsetDivertObserver; |
|
37 class MPsetRequestObserver; |
|
38 class RVmbxNumber; |
|
39 class CRepository; |
|
40 class TCallDivertNotifySetting; |
|
41 class MCallDiverting; |
|
42 class CPSetSubscriberIdCheck; |
|
43 |
|
44 /** |
|
45 * CPSetCallDivertingDualAffectImpl implements divert functionality which assumes |
|
46 * that network makes always dual activation if device gives param EAllTeleAndBearer |
|
47 * and used SIM supports feature. |
|
48 * |
|
49 * @lib phonesettings |
|
50 * @since S60 v5.1 |
|
51 */ |
|
52 NONSHARABLE_CLASS(CPSetCallDivertingDualAffectImpl) : public CPSetCallDivertingBase |
|
53 { |
|
54 public: // Constructors and destructors. |
|
55 |
|
56 /** |
|
57 * Two-phased constructor. |
|
58 * |
|
59 * @return new instance of the class. |
|
60 */ |
|
61 static CPSetCallDivertingDualAffectImpl* NewL( |
|
62 MPsetDivertObserver& aObserver, |
|
63 RMobilePhone& aPhone, |
|
64 CPsetCallDiverting* aDivert ); |
|
65 |
|
66 /** |
|
67 * Destructor. |
|
68 */ |
|
69 ~CPSetCallDivertingDualAffectImpl(); |
|
70 |
|
71 public: // From base class. |
|
72 |
|
73 /** |
|
74 * @see MCallDiverting. |
|
75 */ |
|
76 void SetDivertingL( const TCallDivertSetting& aDivert, |
|
77 TBasicServiceGroups aBsc ); |
|
78 |
|
79 public: //from base class CActive |
|
80 |
|
81 void RunL(); |
|
82 |
|
83 void DoCancel(); |
|
84 |
|
85 TInt RunError( TInt aError ); |
|
86 |
|
87 protected: |
|
88 |
|
89 /** |
|
90 * C++ constructor. |
|
91 */ |
|
92 CPSetCallDivertingDualAffectImpl( RMobilePhone& aPhone, CPsetCallDiverting* aDivert ); |
|
93 |
|
94 /** |
|
95 * Symbian OS constructor. |
|
96 */ |
|
97 void ConstructL( MPsetDivertObserver& aObserver ); |
|
98 |
|
99 private: |
|
100 |
|
101 void HandleSANotificationL( |
|
102 TBool aVmbxDivert, |
|
103 TDivertingStatus& aCfStatus ); |
|
104 |
|
105 void SetCurrentDivertInformation( |
|
106 TUnconditionalCFStatus& aStatus, |
|
107 const TBool aDivertChanged ); |
|
108 |
|
109 TBool SetVoiceDivert( |
|
110 const TCallDivertSetting& aDivert, |
|
111 const TBasicServiceGroups /*aBsc*/ ); |
|
112 |
|
113 TSelectedLine GetSAAls(); |
|
114 |
|
115 private: |
|
116 |
|
117 CPSetSubscriberIdCheck* iIdCheck; |
|
118 }; |
|
119 |
|
120 #endif // CPSETCALLDIVERTINGDUALAFFECTIMPL_H |
|
121 |
|
122 // End of File |