|
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 * Wrapper for CM Manager Symbian interface. |
|
16 */ |
|
17 |
|
18 // System includes |
|
19 |
|
20 #include <cmconnectionmethod.h> |
|
21 #include <cmconnectionmethod_shim.h> |
|
22 |
|
23 // User includes |
|
24 |
|
25 #include "cmconnectionmethod_shim_s60_p.h" |
|
26 |
|
27 // External function prototypes |
|
28 |
|
29 // Local constants |
|
30 |
|
31 // ======== LOCAL FUNCTIONS ======== |
|
32 |
|
33 // ======== MEMBER FUNCTIONS ======== |
|
34 |
|
35 CmConnectionMethodShim::CmConnectionMethodShim( |
|
36 RCmConnectionMethod &cm) |
|
37 { |
|
38 d_ptr = new CmConnectionMethodShimPrivate(cm); |
|
39 } |
|
40 |
|
41 CmConnectionMethodShim::~CmConnectionMethodShim() |
|
42 { |
|
43 delete d_ptr; |
|
44 } |
|
45 |
|
46 uint CmConnectionMethodShim::getIntAttribute( |
|
47 CMManagerShim::ConnectionMethodAttribute attribute) const |
|
48 { |
|
49 return d_ptr->GetIntAttribute(attribute); |
|
50 } |
|
51 |
|
52 bool CmConnectionMethodShim::getBoolAttribute( |
|
53 CMManagerShim::ConnectionMethodAttribute attribute) const |
|
54 { |
|
55 return d_ptr->GetBoolAttribute(attribute); |
|
56 } |
|
57 |
|
58 QString CmConnectionMethodShim::getStringAttribute( |
|
59 CMManagerShim::ConnectionMethodAttribute attribute) const |
|
60 { |
|
61 return d_ptr->GetStringAttribute(attribute); |
|
62 } |
|
63 |
|
64 QString CmConnectionMethodShim::getString8Attribute( |
|
65 CMManagerShim::ConnectionMethodAttribute attribute) const |
|
66 { |
|
67 return d_ptr->GetString8Attribute(attribute); |
|
68 } |
|
69 |
|
70 void CmConnectionMethodShim::setIntAttribute( |
|
71 CMManagerShim::ConnectionMethodAttribute attribute, |
|
72 uint value) |
|
73 { |
|
74 d_ptr->SetIntAttribute(attribute, value); |
|
75 } |
|
76 |
|
77 void CmConnectionMethodShim::setBoolAttribute( |
|
78 CMManagerShim::ConnectionMethodAttribute attribute, |
|
79 bool value) |
|
80 { |
|
81 d_ptr->SetBoolAttribute(attribute, value); |
|
82 } |
|
83 |
|
84 void CmConnectionMethodShim::setStringAttribute( |
|
85 CMManagerShim::ConnectionMethodAttribute attribute, |
|
86 QString value) |
|
87 { |
|
88 d_ptr->SetStringAttribute(attribute, value); |
|
89 } |
|
90 |
|
91 void CmConnectionMethodShim::setString8Attribute( |
|
92 CMManagerShim::ConnectionMethodAttribute attribute, |
|
93 QString value) |
|
94 { |
|
95 d_ptr->SetString8Attribute(attribute, value); |
|
96 } |
|
97 |
|
98 bool CmConnectionMethodShim::deleteConnectionMethod() |
|
99 { |
|
100 return d_ptr->DeleteConnectionMethod(); |
|
101 } |
|
102 |
|
103 void CmConnectionMethodShim::update() |
|
104 { |
|
105 d_ptr->Update(); |
|
106 } |
|
107 |
|
108 void CmConnectionMethodShim::refresh() |
|
109 { |
|
110 d_ptr->Refresh(); |
|
111 } |