|
1 /* |
|
2 * Copyright (c) 2002-2005 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: Defines Instant Messaging alert tone setting item |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CCATONESETTINGITEM_H |
|
21 #define CCATONESETTINGITEM_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <aknsettingitemlist.h> |
|
25 |
|
26 class CRepository; |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * Defines alert tone setting item for instant message |
|
32 * |
|
33 * @lib chat.lib |
|
34 * @since Series 60 3.0 |
|
35 */ |
|
36 class CCAToneSettingItem : public CAknSettingItem |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * C++ default constructor. |
|
42 */ |
|
43 CCAToneSettingItem( TInt aIdentifier, |
|
44 TDes& aToneName, |
|
45 CRepository& aCenRep, |
|
46 TBool aBranding = EFalse ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CCAToneSettingItem(); |
|
52 |
|
53 public: // Functions from base classes |
|
54 |
|
55 /** |
|
56 * From CAknSettingItem |
|
57 */ |
|
58 void StoreL(); |
|
59 |
|
60 /** |
|
61 * From CAknSettingItem |
|
62 */ |
|
63 void LoadL(); |
|
64 |
|
65 /** |
|
66 * From CAknSettingItem |
|
67 */ |
|
68 void EditItemL( TBool aCalledFromMenu ); |
|
69 |
|
70 /** |
|
71 * From CAknSettingItem |
|
72 */ |
|
73 const TDesC& SettingTextL(); |
|
74 |
|
75 /** |
|
76 * From CAknSettingItem |
|
77 */ |
|
78 void CompleteConstructionL(); |
|
79 |
|
80 private: // New functions |
|
81 |
|
82 /** |
|
83 * Gets the default audio file name |
|
84 * @param aSoundFileName After the call this will |
|
85 * contain the default file name |
|
86 */ |
|
87 void DefaultSoundFile( TDes& aSoundFileName ); |
|
88 |
|
89 private: // Data |
|
90 |
|
91 TFileName iInternalToneFileName; |
|
92 |
|
93 // External filename for selected tone |
|
94 TDes& iExternalToneFileName; |
|
95 |
|
96 // Own: Localised text qtn_tc_none |
|
97 HBufC* iNoSoundText; |
|
98 |
|
99 // Own: "No_Sound.wav" file name |
|
100 HBufC* iNoSoundFileName; |
|
101 |
|
102 // Own: Localised text for title for tone selection |
|
103 HBufC* iTitle; /// Title for tone selection |
|
104 TPtrC iSettingText; |
|
105 TBool iBranding; |
|
106 |
|
107 // does not own. Access to central repository |
|
108 CRepository& iCenRep; |
|
109 |
|
110 // Flag is read from CR in construction |
|
111 // @see IMVariant.hrh |
|
112 // ETrue if feature EIMFeatBrandableTones is |
|
113 // variated on, EFalse otherwise. |
|
114 TBool iBrandableToneList; |
|
115 }; |
|
116 |
|
117 #endif // CCATONESETTINGITEM_H |
|
118 |
|
119 // End of File |