|
1 /* |
|
2 * Copyright (c) 2006-2007 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: cch client api |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "cch.h" |
|
21 #include "cchimpl.h" |
|
22 |
|
23 // EXTERNAL DATA STRUCTURES |
|
24 // None |
|
25 |
|
26 // EXTERNAL FUNCTION PROTOTYPES |
|
27 // None |
|
28 |
|
29 // CONSTANTS |
|
30 // None |
|
31 |
|
32 // MACROS |
|
33 // None |
|
34 |
|
35 // LOCAL CONSTANTS AND MACROS |
|
36 // None |
|
37 |
|
38 // MODULE DATA STRUCTURES |
|
39 // None |
|
40 |
|
41 // LOCAL FUNCTION PROTOTYPES |
|
42 // None |
|
43 |
|
44 // FORWARD DECLARATIONS |
|
45 // None |
|
46 |
|
47 // ============================= LOCAL FUNCTIONS ============================= |
|
48 |
|
49 // ============================ MEMBER FUNCTIONS ============================= |
|
50 |
|
51 // --------------------------------------------------------------------------- |
|
52 // CCch::CCch |
|
53 // C++ default constructor can NOT contain any code, that might leave. |
|
54 // --------------------------------------------------------------------------- |
|
55 // |
|
56 EXPORT_C CCch::CCch() : |
|
57 iImplementation ( NULL ) |
|
58 { |
|
59 |
|
60 } |
|
61 |
|
62 EXPORT_C CCch::~CCch() |
|
63 { |
|
64 delete iImplementation; |
|
65 } |
|
66 |
|
67 // --------------------------------------------------------------------------- |
|
68 // CCch::ConstructL |
|
69 // Symbian 2nd phase constructor can leave. |
|
70 // --------------------------------------------------------------------------- |
|
71 // |
|
72 EXPORT_C void CCch::ConstructL() |
|
73 { |
|
74 iImplementation = CCchImpl::NewL( *this ); |
|
75 |
|
76 } |
|
77 // --------------------------------------------------------------------------- |
|
78 // CCch::NewL |
|
79 // Two-phased constructor. |
|
80 // --------------------------------------------------------------------------- |
|
81 // |
|
82 EXPORT_C CCch* CCch::NewL( ) |
|
83 { |
|
84 CCch* self = CCch::NewLC( ); |
|
85 CleanupStack::Pop( self ); |
|
86 return self; |
|
87 } |
|
88 |
|
89 // --------------------------------------------------------------------------- |
|
90 // CCch::NewLC |
|
91 // Two-phased constructor. |
|
92 // --------------------------------------------------------------------------- |
|
93 // |
|
94 EXPORT_C CCch* CCch::NewLC( ) |
|
95 { |
|
96 CCch* self = new (ELeave) CCch( ); |
|
97 CleanupStack::PushL( self ); |
|
98 self->ConstructL(); |
|
99 return self; |
|
100 } |
|
101 |
|
102 // --------------------------------------------------------------------------- |
|
103 // CCch::GetService |
|
104 // --------------------------------------------------------------------------- |
|
105 // |
|
106 EXPORT_C CCchService* CCch::GetService( TInt aId ) |
|
107 { |
|
108 return iImplementation->GetService( aId ); |
|
109 } |
|
110 |
|
111 // --------------------------------------------------------------------------- |
|
112 // CCch::GetServiceIds |
|
113 // --------------------------------------------------------------------------- |
|
114 // |
|
115 EXPORT_C TInt CCch::GetServiceIds( RArray<TInt>& aIds ) const |
|
116 { |
|
117 return iImplementation->GetServiceIds( aIds ); |
|
118 } |
|
119 |
|
120 // --------------------------------------------------------------------------- |
|
121 // CCch::GetServices |
|
122 // --------------------------------------------------------------------------- |
|
123 // |
|
124 EXPORT_C TInt CCch::GetServices( TCCHSubserviceType aType, |
|
125 RPointerArray<CCchService>& aServices ) |
|
126 { |
|
127 return iImplementation->GetServices( aType, aServices ); |
|
128 } |
|
129 |
|
130 // --------------------------------------------------------------------------- |
|
131 // CCch::ConnectivityDialogsAllowed |
|
132 // --------------------------------------------------------------------------- |
|
133 // |
|
134 EXPORT_C TBool CCch::ConnectivityDialogsAllowed() const |
|
135 { |
|
136 return iImplementation->ConnectivityDialogsAllowed(); |
|
137 } |
|
138 |
|
139 // --------------------------------------------------------------------------- |
|
140 // CCch::SetConnectivityDialogsAllowed |
|
141 // --------------------------------------------------------------------------- |
|
142 // |
|
143 EXPORT_C void CCch::SetConnectivityDialogsAllowed( |
|
144 TBool aConnectivityDialogsAllowed ) |
|
145 { |
|
146 iImplementation->SetConnectivityDialogsAllowed( |
|
147 aConnectivityDialogsAllowed ); |
|
148 } |
|
149 |
|
150 // --------------------------------------------------------------------------- |
|
151 // CCch::CchUiApi |
|
152 // --------------------------------------------------------------------------- |
|
153 // |
|
154 EXPORT_C MCchUi& CCch::CchUiApi() const |
|
155 { |
|
156 return iImplementation->CchUiApi(); |
|
157 } |
|
158 |
|
159 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
160 |
|
161 // End of File |