|
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 CMMANAGER_SHIM_S60_P_H |
|
19 #define CMMANAGER_SHIM_S60_P_H |
|
20 |
|
21 // System includes |
|
22 |
|
23 #include <QString> |
|
24 #include <cmmanager.h> |
|
25 |
|
26 // User includes |
|
27 |
|
28 // Forward declarations |
|
29 |
|
30 class CmConnectionMethodShim; |
|
31 class CmDestinationShim; |
|
32 |
|
33 // External data types |
|
34 |
|
35 // Constants |
|
36 |
|
37 // Class declaration |
|
38 |
|
39 class CmManagerShimPrivate |
|
40 { |
|
41 |
|
42 public: |
|
43 |
|
44 // Data types |
|
45 |
|
46 CmManagerShimPrivate(); |
|
47 |
|
48 ~CmManagerShimPrivate(); |
|
49 |
|
50 CmDestinationShim *CreateDestination(QString name); |
|
51 |
|
52 CmConnectionMethodShim *CreateConnectionMethod(uint bearerType); |
|
53 |
|
54 CmConnectionMethodShim* ConnectionMethod(uint connectionMethodId) const; |
|
55 |
|
56 void ConnectionMethod( |
|
57 QList<uint> &cmArray, |
|
58 bool legacyOnly) const; |
|
59 |
|
60 CmDestinationShim *Destination(uint destinationId) const; |
|
61 |
|
62 void AllDestinations(QList<uint> &destArray) const; |
|
63 |
|
64 protected: |
|
65 |
|
66 private: |
|
67 |
|
68 Q_DISABLE_COPY(CmManagerShimPrivate) |
|
69 |
|
70 void ConnectionMethodL( |
|
71 QList<uint> &cmArray, |
|
72 bool legacyOnly) const; |
|
73 |
|
74 void AllDestinationsL(QList<uint> &destArray) const; |
|
75 |
|
76 void TraceIfError(TInt error) const; |
|
77 |
|
78 private: // data |
|
79 |
|
80 RCmManager iCmManager; //!< Cm Manager instance |
|
81 |
|
82 // Friend classes |
|
83 }; |
|
84 |
|
85 #endif // CMMANAGER_SHIM_S60_P_H |