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 <e32base.h> |
|
21 #include <cmdestination.h> |
|
22 #include <cmmanager_shim.h> |
|
23 #include <cmconnectionmethod_shim.h> |
|
24 #include <cmdestination_shim.h> |
|
25 |
|
26 // User includes |
|
27 |
|
28 #include "cmmanager_shim_s60_p.h" |
|
29 |
|
30 // External function prototypes |
|
31 |
|
32 // Local constants |
|
33 |
|
34 // ======== LOCAL FUNCTIONS ======== |
|
35 |
|
36 // ======== MEMBER FUNCTIONS ======== |
|
37 |
|
38 CmManagerShim::CmManagerShim() |
|
39 { |
|
40 d_ptr = new CmManagerShimPrivate(); |
|
41 } |
|
42 |
|
43 CmManagerShim::~CmManagerShim() |
|
44 { |
|
45 delete d_ptr; |
|
46 } |
|
47 |
|
48 CmDestinationShim *CmManagerShim::createDestination(QString name) |
|
49 { |
|
50 return d_ptr->CreateDestination(name); |
|
51 } |
|
52 |
|
53 CmConnectionMethodShim *CmManagerShim::createConnectionMethod(uint bearerType) |
|
54 { |
|
55 return d_ptr->CreateConnectionMethod(bearerType); |
|
56 } |
|
57 |
|
58 CmConnectionMethodShim *CmManagerShim::connectionMethod( |
|
59 uint connectionMethodId) const |
|
60 { |
|
61 return d_ptr->ConnectionMethod(connectionMethodId); |
|
62 } |
|
63 |
|
64 void CmManagerShim::connectionMethod( |
|
65 QList<uint> &cmArray, |
|
66 bool legacyOnly) const |
|
67 { |
|
68 return d_ptr->ConnectionMethod( |
|
69 cmArray, |
|
70 legacyOnly); |
|
71 } |
|
72 |
|
73 CmDestinationShim *CmManagerShim::destination(uint destinationId) const |
|
74 { |
|
75 return d_ptr->Destination(destinationId); |
|
76 } |
|
77 |
|
78 void CmManagerShim::allDestinations(QList<uint> &destArray) const |
|
79 { |
|
80 return d_ptr->AllDestinations(destArray); |
|
81 } |
|
82 |
|
83 QString CmManagerShim::getUncategorizedIcon() const |
|
84 { |
|
85 return d_ptr->GetUncategorizedIcon(); |
|
86 } |
|