1 /* |
|
2 * Copyright (c) 2002 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: Profile PTT settings implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CPROFILEVIBRASETTINGSIMPL_H |
|
21 #define __CPROFILEVIBRASETTINGSIMPL_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <MProfileVibraSettings.h> |
|
26 #include <MProfileSetVibraSettings.h> |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 class CRepository; |
|
31 |
|
32 /** |
|
33 * Profile vibra settings implementation. |
|
34 * |
|
35 * @lib ?library |
|
36 * @since 10.1 |
|
37 */ |
|
38 NONSHARABLE_CLASS(CProfileVibraSettingsImpl) : public CBase, |
|
39 public MProfileVibraSettings, |
|
40 public MProfileSetVibraSettings |
|
41 { |
|
42 public: // Constructors and destructor |
|
43 |
|
44 /** |
|
45 * Two-phased constructor. |
|
46 */ |
|
47 static CProfileVibraSettingsImpl* NewL(); |
|
48 |
|
49 /** |
|
50 * Constructor. |
|
51 */ |
|
52 CProfileVibraSettingsImpl(); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~CProfileVibraSettingsImpl(); |
|
58 |
|
59 public: // New functions |
|
60 |
|
61 /** |
|
62 * Internalize data from the central repository. |
|
63 * @since 3.0 |
|
64 * @param aCenRep Central Repository object to read the settings |
|
65 * @param aProfileId the id of the profile to be internalized |
|
66 */ |
|
67 void InternalizeL( CRepository& aCenRep, TInt aProfileId ); |
|
68 |
|
69 /** |
|
70 * Externalize data to Central Repository. |
|
71 * @since 3.0 |
|
72 * @param aCenRep Central Repository object to write the settings |
|
73 */ |
|
74 void ExternalizeL( CRepository& aCenRep, TInt aProfileId ) const; |
|
75 |
|
76 public: // Functions from base classes |
|
77 |
|
78 /** |
|
79 * From MProfileVibraSettings |
|
80 */ |
|
81 virtual TInt AlertVibra() const; |
|
82 |
|
83 /** |
|
84 * From MProfileVibraSettings |
|
85 */ |
|
86 virtual TBool RingAlertVibra() const; |
|
87 |
|
88 /** |
|
89 * From MProfileVibraSettings |
|
90 */ |
|
91 virtual TBool MessageAlertVibra() const; |
|
92 |
|
93 /** |
|
94 * From MProfileVibraSettings |
|
95 */ |
|
96 virtual TBool EmailAlertVibra() const; |
|
97 |
|
98 /** |
|
99 * From MProfileVibraSettings |
|
100 */ |
|
101 virtual TBool ReminderAlarmVibra() const; |
|
102 |
|
103 /** |
|
104 * From MProfileVibraSettings |
|
105 */ |
|
106 virtual TBool InformationVibra() const; |
|
107 |
|
108 |
|
109 /** |
|
110 * From MProfileSetVibraSettings |
|
111 */ |
|
112 virtual void SetAlertVibra(TInt aAlertVibra); |
|
113 |
|
114 /** |
|
115 * From MProfileSetVibraSettings |
|
116 */ |
|
117 virtual void SetRingAlertVibra(TBool aRingAlertVibra); |
|
118 |
|
119 /** |
|
120 * From MProfileSetVibraSettings |
|
121 */ |
|
122 virtual void SetMessageAlertVibra(TBool aMessageAlertVibra); |
|
123 |
|
124 /** |
|
125 * From MProfileSetVibraSettings |
|
126 */ |
|
127 virtual void SetEmailAlertVibra(TBool aEmailAlertVibra); |
|
128 |
|
129 /** |
|
130 * From MProfileSetVibraSettings |
|
131 */ |
|
132 virtual void SetReminderAlarmVibra(TBool aReminderAlarmVibra); |
|
133 |
|
134 /** |
|
135 * From MProfileSetVibraSettings |
|
136 */ |
|
137 virtual void SetInformationVibra(TBool aInformationVibra); |
|
138 |
|
139 private: |
|
140 |
|
141 /** |
|
142 * By default Symbian 2nd phase constructor is private. |
|
143 */ |
|
144 void ConstructL(); |
|
145 |
|
146 private: // Data |
|
147 |
|
148 TInt iAlertVibra; |
|
149 |
|
150 }; |
|
151 |
|
152 #endif //__CPROFILEVIBRASETTINGSIMPL_H |
|
153 |
|
154 //End of File |
|