|
1 /* |
|
2 * Copyright (c) 2007 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: GSPDataHSDPAPlugin model. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef GSPDATAHSDPAMODEL_H |
|
19 #define GSPDATAHSDPAMODEL_H |
|
20 |
|
21 // INCLUDES |
|
22 // INCLUDES |
|
23 #include <centralrepository.h> |
|
24 #include <e32property.h> |
|
25 #include <etel.h> |
|
26 #include <etelpckt.h> |
|
27 #include <mmtsy_names.h> |
|
28 #include <rmmcustomapi.h> |
|
29 // CONSTANTS |
|
30 |
|
31 const TInt KSettingHsdpaDisable = 0; |
|
32 const TInt KSettingHsdpaEnable = 1; |
|
33 |
|
34 |
|
35 // CLASS DEFINITIONS |
|
36 |
|
37 class CRfsHandler; |
|
38 class RMmCustomAPI; |
|
39 class RMobilePhone; |
|
40 /** |
|
41 * CGSPDataHSDPAModel is the model class of GS app. |
|
42 * It provides functions to get and set setting values. |
|
43 */ |
|
44 class CGSPDataHSDPAModel : public CBase |
|
45 { |
|
46 public: // Constructor and destructor |
|
47 /** |
|
48 * Two-phased constructor |
|
49 */ |
|
50 static CGSPDataHSDPAModel* NewL(); |
|
51 |
|
52 /** |
|
53 * Destructor |
|
54 */ |
|
55 ~CGSPDataHSDPAModel(); |
|
56 |
|
57 public: //new |
|
58 /** |
|
59 * Returns packet data HSDPA state. |
|
60 * @return 0: Disabled |
|
61 * 1: Enabled |
|
62 */ |
|
63 TInt CurrentHSDPAItemL(); |
|
64 |
|
65 /** |
|
66 * Set packet data HSDPA state. |
|
67 * @param ahsdpaValue 0: Disabled |
|
68 * 1: Enabled |
|
69 */ |
|
70 void SetHSDPAItemValueL( TInt aHsdpaValue ); |
|
71 |
|
72 /** |
|
73 * Returns packet data HSDPA state. |
|
74 * @return 1: Show |
|
75 * 0 : Hide |
|
76 */ |
|
77 TInt HSDPAItemVisibilityL(); |
|
78 |
|
79 /** |
|
80 * Set packet data HSDPA Visibility. |
|
81 * @param aHsdpaVisible 0: Hide |
|
82 * 1: Show |
|
83 */ |
|
84 void SetHSDPAItemVisibilityL( TInt aHsdpaVisible ); |
|
85 |
|
86 private: // Private constructors |
|
87 /** |
|
88 * Default C++ contructor |
|
89 */ |
|
90 CGSPDataHSDPAModel(); |
|
91 |
|
92 /** |
|
93 * Symbian OS default constructor |
|
94 * @return void |
|
95 */ |
|
96 void ConstructL(); |
|
97 |
|
98 private: // Data |
|
99 // Handle to tel server. |
|
100 RTelServer iTelServer; |
|
101 |
|
102 //Handle to Custom API |
|
103 RMmCustomAPI iCustomAPI; |
|
104 |
|
105 // Handle to Mobile phone. |
|
106 RMobilePhone iMobilePhone ; |
|
107 |
|
108 // Networking repository |
|
109 CRepository* iNetworkRepository; |
|
110 |
|
111 }; |
|
112 #endif // GSPDATAHSDPAMODEL_H |
|
113 // End of File |