1 /* |
|
2 * Copyright (c) 2010 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: |
|
15 * Private implementation of Wrapper for CM Manager Symbian interface. |
|
16 */ |
|
17 |
|
18 #ifndef CMCONNECTIONMETHOD_SHIM_S60_P_H |
|
19 #define CMCONNECTIONMETHOD_SHIM_S60_P_H |
|
20 |
|
21 // System includes |
|
22 |
|
23 #include <QString> |
|
24 #include <cmconnectionmethod.h> |
|
25 #include <cmmanagerdefines_shim.h> |
|
26 |
|
27 // User includes |
|
28 |
|
29 // Forward declarations |
|
30 |
|
31 // External data types |
|
32 |
|
33 // Constants |
|
34 |
|
35 // Class declaration |
|
36 class CmConnectionMethodShimPrivate |
|
37 { |
|
38 |
|
39 public: |
|
40 |
|
41 // Data types |
|
42 |
|
43 CmConnectionMethodShimPrivate(RCmConnectionMethod &cm); |
|
44 |
|
45 ~CmConnectionMethodShimPrivate(); |
|
46 |
|
47 uint GetIntAttribute( |
|
48 CMManagerShim::ConnectionMethodAttribute attribute) const; |
|
49 |
|
50 bool GetBoolAttribute( |
|
51 CMManagerShim::ConnectionMethodAttribute attribute) const; |
|
52 |
|
53 QString GetStringAttribute( |
|
54 CMManagerShim::ConnectionMethodAttribute attribute) const; |
|
55 |
|
56 QString GetString8Attribute( |
|
57 CMManagerShim::ConnectionMethodAttribute attribute) const; |
|
58 |
|
59 void SetIntAttribute( |
|
60 CMManagerShim::ConnectionMethodAttribute attribute, |
|
61 uint value); |
|
62 |
|
63 void SetBoolAttribute( |
|
64 CMManagerShim::ConnectionMethodAttribute attribute, |
|
65 bool value); |
|
66 |
|
67 void SetStringAttribute( |
|
68 CMManagerShim::ConnectionMethodAttribute attribute, |
|
69 QString value); |
|
70 |
|
71 void SetString8Attribute( |
|
72 CMManagerShim::ConnectionMethodAttribute attribute, |
|
73 QString value); |
|
74 |
|
75 bool DeleteConnectionMethod(); |
|
76 |
|
77 void Update(); |
|
78 |
|
79 QString GetIcon() const; |
|
80 |
|
81 void SetIcon(QString icon); |
|
82 |
|
83 void Refresh(); |
|
84 |
|
85 protected: |
|
86 |
|
87 private: |
|
88 |
|
89 Q_DISABLE_COPY(CmConnectionMethodShimPrivate) |
|
90 |
|
91 void GetStringAttributeL( |
|
92 CMManagerShim::ConnectionMethodAttribute attribute, |
|
93 QString &value) const; |
|
94 |
|
95 void GetString8AttributeL( |
|
96 CMManagerShim::ConnectionMethodAttribute attribute, |
|
97 QString &value) const; |
|
98 |
|
99 void SetIntAttributeL( |
|
100 CMManagerShim::ConnectionMethodAttribute attribute, |
|
101 uint value); |
|
102 |
|
103 void SetBoolAttributeL( |
|
104 CMManagerShim::ConnectionMethodAttribute attribute, |
|
105 bool value); |
|
106 |
|
107 void SetStringAttributeL( |
|
108 CMManagerShim::ConnectionMethodAttribute attribute, |
|
109 QString value); |
|
110 |
|
111 void SetString8AttributeL( |
|
112 CMManagerShim::ConnectionMethodAttribute attribute, |
|
113 QString value); |
|
114 |
|
115 void GetIconL(QString &value) const; |
|
116 |
|
117 void SetIconL(QString icon); |
|
118 |
|
119 void TraceIfError(TInt error) const; |
|
120 |
|
121 private: // data |
|
122 |
|
123 RCmConnectionMethod iCm; //!< CmManager Connection Method instance |
|
124 |
|
125 // Friend classes |
|
126 |
|
127 /* |
|
128 * CmDestinationShimPrivate::AddConnectionMethodL needs direct access |
|
129 * to Connection Methods it is adding to the Destination. |
|
130 */ |
|
131 friend class CmDestinationShimPrivate; |
|
132 }; |
|
133 |
|
134 #endif // CMCONNECTIONMETHOD_SHIM_S60_P_H |
|