|
1 /* |
|
2 * Copyright (c) 2002-2006 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: Container for Call Divert view. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GSCALLDIVERTCONTAINER_H |
|
20 #define GSCALLDIVERTCONTAINER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "gsbasecontainer.h" |
|
24 #include "CallDivertPlugin.hrh" |
|
25 |
|
26 // FORWARD DECLARATION |
|
27 class CGSListBoxItemTextArray; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 /** |
|
31 * GSCallDivertContainer container class |
|
32 */ |
|
33 class CGSCallDivertContainer : public CGSBaseContainer |
|
34 { |
|
35 public: // Constructors and destructor |
|
36 |
|
37 /** |
|
38 * Symbian OS default constructor. |
|
39 * |
|
40 * @param aRect gives the size of container |
|
41 */ |
|
42 void ConstructL( const TRect& aRect ); |
|
43 |
|
44 /* Destructor */ |
|
45 ~CGSCallDivertContainer(); |
|
46 |
|
47 /* Constructor */ |
|
48 CGSCallDivertContainer( TGSCallDivertServiceGroups aItemId ); |
|
49 |
|
50 public: |
|
51 /** |
|
52 * Retrieves the feature id for the selected item in the listbox |
|
53 * @return listbox item array's current feature. |
|
54 */ |
|
55 TInt CurrentFeatureId() const; |
|
56 |
|
57 private: |
|
58 |
|
59 void GetHelpContext( TCoeHelpContext& aContext ) const; |
|
60 |
|
61 /* Updates listbox |
|
62 * @param aItemId |
|
63 */ |
|
64 void UpdateListBoxL( TInt aItemId ); |
|
65 |
|
66 /* Creates listbox |
|
67 * @param aResLbxId |
|
68 */ |
|
69 void ConstructListBoxL( TInt aResLbxId ); |
|
70 |
|
71 /* Sets title to container */ |
|
72 void SetTitleL(); |
|
73 |
|
74 void CreateListBoxItemsL(); |
|
75 |
|
76 private: //new |
|
77 void MakeAllVoiceCallDivertsItemL(); |
|
78 void MakeAllVideoCallDivertsItemL(); |
|
79 void MakeIfBusyItemL(); |
|
80 void MakeIfNotAnsweredItemL(); |
|
81 void MakeIfOutOfReachItemL(); |
|
82 void MakeIfNotAvailableItemL(); |
|
83 |
|
84 private: |
|
85 // listbox item array |
|
86 CGSListBoxItemTextArray* iListboxItemArray; |
|
87 //variable to store the main view selection |
|
88 TGSCallDivertServiceGroups iItemId; |
|
89 |
|
90 }; |
|
91 |
|
92 #endif //GSCALLDIVERTCONTAINER_H |
|
93 // End of File |