|
1 /* |
|
2 * Copyright (c) 2002-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 CPESettingsCommand.h |
|
15 * object. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CPESETTINGSCOMMAND_H |
|
22 #define CPESETTINGSCOMMAND_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include <NwDefs.h> |
|
27 #include "PEPanic.pan" |
|
28 #include "PEVirtualEngine.h" |
|
29 #include <MSSSettingsObserver.h> |
|
30 |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 class MPEPhoneModelInternal; |
|
34 class CPESettingsObserver; |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 /** |
|
39 * CPESettingsCommand observer SSSettings changes |
|
40 * |
|
41 * @lib phoneenginegsm |
|
42 * @since Series_60 4.0 |
|
43 */ |
|
44 NONSHARABLE_CLASS( CPESettingsCommand ) : public CBase, |
|
45 public MSSSettingsObserver |
|
46 { |
|
47 public: // Constructors and destructor |
|
48 |
|
49 /** |
|
50 * Two-phased constructor. |
|
51 */ |
|
52 static CPESettingsCommand* NewL( |
|
53 MPEPhoneModelInternal& aModel ); |
|
54 |
|
55 /** |
|
56 * Destructor. |
|
57 */ |
|
58 virtual ~CPESettingsCommand( ); |
|
59 |
|
60 public: // New functions |
|
61 |
|
62 /** |
|
63 * GetALSLineL |
|
64 * @param aALSLine, Als line information to be updated |
|
65 */ |
|
66 void GetALSLineL( RMobilePhone::TMobilePhoneALSLine& aALSLine ); |
|
67 |
|
68 /** |
|
69 * SetALSLineL |
|
70 * @param aALSLine, Als line information to set |
|
71 */ |
|
72 void SetALSLineL( RMobilePhone::TMobilePhoneALSLine& aALSLine ); |
|
73 |
|
74 /** |
|
75 * GetClirL |
|
76 * @param aClir, Clir information to be updated |
|
77 */ |
|
78 void GetClirL( RMobileCall::TMobileCallIdRestriction& aClir ); |
|
79 |
|
80 /** |
|
81 * GetCugL |
|
82 * @param aCugIndex, CUG index |
|
83 */ |
|
84 void GetCugL( TInt aCugIndex ); |
|
85 |
|
86 public: // Functions from MSSSettingsObserver |
|
87 |
|
88 /* |
|
89 * Observer functoin |
|
90 * @param aSetting Current setting |
|
91 * @param aNewValue New value for the setting |
|
92 */ |
|
93 virtual void PhoneSettingChanged( |
|
94 TSSSettingsSetting aSetting, |
|
95 TInt aNewValue ); |
|
96 |
|
97 private: |
|
98 |
|
99 /** |
|
100 * Constructor. |
|
101 */ |
|
102 CPESettingsCommand( MPEPhoneModelInternal& aModel ); |
|
103 |
|
104 /** |
|
105 * By default Symbian 2nd phase constructor is private. |
|
106 */ |
|
107 void ConstructL(); |
|
108 |
|
109 private: // Data |
|
110 |
|
111 //MPEPhoneModelInternal is used to send message to the phone application |
|
112 MPEPhoneModelInternal& iModel; |
|
113 //Pointer to instance of Settings |
|
114 RSSSettings iSSSettings; |
|
115 |
|
116 }; |
|
117 |
|
118 #endif // CPESETTINGSCOMMAND_H |
|
119 |
|
120 // End of File |