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 CMDESTINATION_SHIM_P_H |
|
19 #define CMDESTINATION_SHIM_P_H |
|
20 |
|
21 // System includes |
|
22 |
|
23 #include <QString> |
|
24 #include <cmmanagerdefines_shim.h> |
|
25 |
|
26 // User includes |
|
27 |
|
28 // Forward declarations |
|
29 |
|
30 class RCmDestination; |
|
31 class CmConnectionMethodShim; |
|
32 |
|
33 // External data types |
|
34 |
|
35 // Constants |
|
36 |
|
37 // Class declaration |
|
38 |
|
39 class CmDestinationShimPrivate |
|
40 { |
|
41 |
|
42 public: |
|
43 |
|
44 // Data types |
|
45 |
|
46 CmDestinationShimPrivate(RCmDestination &destination); |
|
47 |
|
48 ~CmDestinationShimPrivate(); |
|
49 |
|
50 int ConnectionMethodCount() const; |
|
51 |
|
52 CmConnectionMethodShim *ConnectionMethod(int index) const; |
|
53 |
|
54 CmConnectionMethodShim *ConnectionMethodByID(uint cmId) const; |
|
55 |
|
56 uint Priority(CmConnectionMethodShim *cmItem) const; |
|
57 |
|
58 QString Name() const; |
|
59 |
|
60 uint Id() const; |
|
61 |
|
62 uint Metadata(CMManagerShim::SnapMetadataField metadataField) const; |
|
63 |
|
64 CMManagerShim::CmmProtectionLevel ProtectionLevel() const; |
|
65 |
|
66 bool IsHidden() const; |
|
67 |
|
68 int AddConnectionMethod(CmConnectionMethodShim *cm); |
|
69 |
|
70 void DeleteConnectionMethod(CmConnectionMethodShim *cm); |
|
71 |
|
72 void RemoveConnectionMethod(CmConnectionMethodShim *cm); |
|
73 |
|
74 void ModifyPriority(CmConnectionMethodShim *cm, int index); |
|
75 |
|
76 void SetName(QString name); |
|
77 |
|
78 void Update(); |
|
79 |
|
80 void Refresh(); |
|
81 |
|
82 void DeleteDestination(); |
|
83 |
|
84 QString GetIcon() const; |
|
85 |
|
86 void SetIcon(QString icon); |
|
87 |
|
88 protected: |
|
89 |
|
90 private: |
|
91 |
|
92 Q_DISABLE_COPY(CmDestinationShimPrivate) |
|
93 |
|
94 void PriorityL(CmConnectionMethodShim *cmShim, uint &priority) const; |
|
95 |
|
96 void NameL(QString &name) const; |
|
97 |
|
98 void AddConnectionMethodL(CmConnectionMethodShim *cm, int &index); |
|
99 |
|
100 void DeleteConnectionMethodL(CmConnectionMethodShim *cm); |
|
101 |
|
102 void RemoveConnectionMethodL(CmConnectionMethodShim *cm); |
|
103 |
|
104 void ModifyPriorityL(CmConnectionMethodShim *cm, int index); |
|
105 |
|
106 void SetNameL(QString name); |
|
107 |
|
108 void GetIconL(QString &icon) const; |
|
109 |
|
110 void SetIconL(QString icon); |
|
111 |
|
112 CMManagerShim::CmmProtectionLevel mapCmmProtectionLevel( |
|
113 CMManager::TProtectionLevel protectionlvl) const; |
|
114 |
|
115 void TraceIfError(TInt error) const; |
|
116 |
|
117 private: // data |
|
118 |
|
119 RCmDestination iDestination; //!< CmManager Destination instance |
|
120 |
|
121 // Friend classes |
|
122 |
|
123 }; |
|
124 |
|
125 #endif // CMDESTINATION_SHIM_P_H |
|