|
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 __CPROFILEPTTSETTINGSIMPL_H |
|
21 #define __CPROFILEPTTSETTINGSIMPL_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <MProfilePttSettings.h> |
|
26 #include "MProfileSetPttSettings.h" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CRepository; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Profile extra tones implementation. |
|
35 * |
|
36 * @lib ProfileEng.lib |
|
37 * @since 3.1 |
|
38 */ |
|
39 NONSHARABLE_CLASS(CProfilePttSettingsImpl) : public CBase, |
|
40 public MProfilePttSettings, |
|
41 public MProfileSetPttSettings |
|
42 { |
|
43 public: // Constructors and destructor |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 */ |
|
48 static CProfilePttSettingsImpl* NewL(); |
|
49 static CProfilePttSettingsImpl* NewL( |
|
50 const MProfilePttSettings& aProfilePttSettings ); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 virtual ~CProfilePttSettingsImpl(); |
|
56 |
|
57 public: // New functions |
|
58 |
|
59 /** |
|
60 * Internalize data from the central repository. |
|
61 * @since 3.1 |
|
62 * @param aCenRep Central Repository object to read the settings |
|
63 * @param aProfileId the id of the profile to be internalized |
|
64 */ |
|
65 void InternalizeL( CRepository& aCenRep, TInt aProfileId ); |
|
66 |
|
67 /** |
|
68 * Externalize data to Central Repository. |
|
69 * @since 3.1 |
|
70 * @param aCenRep Central Repository object to write the settings |
|
71 */ |
|
72 void ExternalizeL( CRepository& aCenRep, TInt aProfileId ) const; |
|
73 |
|
74 public: // Functions from base classes |
|
75 |
|
76 /** |
|
77 * From MProfilePttSettings. |
|
78 */ |
|
79 const TDesC& PttRingingTone() const; |
|
80 |
|
81 /** |
|
82 * From MProfilePttSettings. |
|
83 */ |
|
84 TProfilePttStatus PttStatus() const; |
|
85 |
|
86 /** |
|
87 * From MProfileSetPttSettings. |
|
88 */ |
|
89 void SetPttRingingToneL( const TDesC& aPttRingingTone ); |
|
90 |
|
91 /** |
|
92 * From MProfileSetPttSettings. |
|
93 */ |
|
94 void SetPttStatus( TProfilePttStatus aPttStatus ); |
|
95 |
|
96 private: |
|
97 |
|
98 /** |
|
99 * By default Symbian 2nd phase constructor is private. |
|
100 */ |
|
101 void ConstructL(); |
|
102 |
|
103 /** |
|
104 * By default Symbian 2nd phase constructor is private. |
|
105 * @param aProfileExtraTones Profile extra tones |
|
106 */ |
|
107 void ConstructL( const MProfilePttSettings& aProfilePttSettings ); |
|
108 |
|
109 private: // Data |
|
110 |
|
111 // Own: PTT ringing tone |
|
112 HBufC* iPttRingingTone; |
|
113 |
|
114 // Own: PTT status |
|
115 TProfilePttStatus iPttStatus; |
|
116 }; |
|
117 |
|
118 #endif // __CPROFILEPTTSETTINGSIMPL_H |
|
119 |
|
120 // End of File |
|
121 |