|
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 basic implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPSETCALLDIVERTINGBASICIMPL_H |
|
20 #define CPSETCALLDIVERTINGBASICIMPL_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 |
|
42 /** |
|
43 * CPSetCallDivertingBasicImpl implements basic divert funcationality. |
|
44 * |
|
45 * @lib phonesettings |
|
46 * @since S60 v5.1 |
|
47 */ |
|
48 NONSHARABLE_CLASS(CPSetCallDivertingBasicImpl) : public CPSetCallDivertingBase |
|
49 { |
|
50 public: // Constructors and destructors. |
|
51 |
|
52 /** |
|
53 * Two-phased constructor. |
|
54 * |
|
55 * @return new instance of the class. |
|
56 */ |
|
57 static CPSetCallDivertingBasicImpl* NewL( |
|
58 MPsetDivertObserver& aObserver, |
|
59 RMobilePhone& aPhone, |
|
60 CPsetCallDiverting* aDivert ); |
|
61 |
|
62 /** |
|
63 * Destructor. |
|
64 */ |
|
65 ~CPSetCallDivertingBasicImpl(); |
|
66 |
|
67 public: // From base class. |
|
68 |
|
69 /** |
|
70 * @see MCallDiverting. |
|
71 */ |
|
72 void SetDivertingL( const TCallDivertSetting& aDivert, |
|
73 TBasicServiceGroups aBsc ); |
|
74 |
|
75 public: //from base class CActive |
|
76 |
|
77 void RunL(); |
|
78 |
|
79 void DoCancel(); |
|
80 |
|
81 TInt RunError( TInt aError ); |
|
82 |
|
83 protected: |
|
84 |
|
85 /** |
|
86 * C++ constructor. |
|
87 */ |
|
88 CPSetCallDivertingBasicImpl( RMobilePhone& aPhone, CPsetCallDiverting* aDivert ); |
|
89 |
|
90 /** |
|
91 * Symbian OS constructor. |
|
92 */ |
|
93 void ConstructL( MPsetDivertObserver& aObserver ); |
|
94 |
|
95 private: |
|
96 |
|
97 void HandleSANotificationL( |
|
98 TBool aVmbxDivert, TDivertingStatus& aCfStatus ); |
|
99 |
|
100 TBool SetVoiceDivert( const TCallDivertSetting& aDivert, |
|
101 const TBasicServiceGroups aBsc ); |
|
102 |
|
103 TSelectedLine GetSAAls(); |
|
104 }; |
|
105 |
|
106 #endif // CPSETCALLDIVERTINGBASICIMPL_H |
|
107 |
|
108 // End of File |