|
1 /* |
|
2 * Copyright (c) 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: The new cch client api class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_CCH_H |
|
21 #define C_CCH_H |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 //class CCchImpl; |
|
26 class CCchServiceStub; |
|
27 |
|
28 const TInt KServiceId = 5; |
|
29 |
|
30 /** |
|
31 * Class for cch service management |
|
32 * |
|
33 * CCchService is used for launching various kinds of service functions |
|
34 * @code |
|
35 * ?good_class_usage_example(s) |
|
36 * @endcode |
|
37 * |
|
38 * @lib ?library |
|
39 */ |
|
40 class CCchService : public CBase |
|
41 { |
|
42 |
|
43 public: |
|
44 |
|
45 |
|
46 protected: |
|
47 |
|
48 virtual ~CCchService() { }; |
|
49 }; |
|
50 |
|
51 /** |
|
52 * Class for basic cch functionality, getting services |
|
53 * |
|
54 * @code |
|
55 * ?good_class_usage_example(s) |
|
56 * @endcode |
|
57 * |
|
58 * @lib cch |
|
59 */ |
|
60 class CCch : public CBase |
|
61 { |
|
62 |
|
63 public: |
|
64 |
|
65 /** |
|
66 * Two-phased constructor. |
|
67 */ |
|
68 IMPORT_C static CCch* NewL(); |
|
69 |
|
70 /** |
|
71 * Two-phased constructor. |
|
72 */ |
|
73 IMPORT_C static CCch* NewLC(); |
|
74 |
|
75 /** |
|
76 * Destructor. |
|
77 */ |
|
78 ~CCch(); |
|
79 |
|
80 /** |
|
81 * Returns one service |
|
82 * |
|
83 * @param aId Service id |
|
84 * @return Service or NULL if not found. Ownership is not transferred. |
|
85 */ |
|
86 IMPORT_C CCchService* GetService( TInt aId ); |
|
87 |
|
88 /** |
|
89 * Returns service ids of all configured services |
|
90 * |
|
91 * @param aIds Array of TInt to be filled with ids |
|
92 * @return Symbian error code |
|
93 */ |
|
94 IMPORT_C TInt GetServiceIds( RArray<TInt>& aIds ) const; |
|
95 |
|
96 /** |
|
97 * Returns ETrue if connectivity dialogs are allowed in service enabling. |
|
98 * |
|
99 * @return ETrue if connectivity dialogs are allowed in service enabling |
|
100 */ |
|
101 IMPORT_C TBool ConnectivityDialogsAllowed() const; |
|
102 |
|
103 /** |
|
104 * For allowing/disallowing connectivity dialogs showing in |
|
105 * service enabling. |
|
106 * |
|
107 * @param aConnectivityDialogsAllowed Boolean to set connectivity dialogs |
|
108 * allowed/disallowed |
|
109 */ |
|
110 IMPORT_C void SetConnectivityDialogsAllowed( |
|
111 TBool aConnectivityDialogsAllowed ); |
|
112 |
|
113 |
|
114 |
|
115 protected: |
|
116 |
|
117 /** |
|
118 * The constructor |
|
119 */ |
|
120 CCch(); |
|
121 |
|
122 private: |
|
123 |
|
124 /** |
|
125 * By default Symbian 2nd phase constructor is private. |
|
126 */ |
|
127 void ConstructL(); |
|
128 |
|
129 private: // data |
|
130 |
|
131 CCchServiceStub* iServiceStub; |
|
132 }; |
|
133 |
|
134 |
|
135 class HelpData |
|
136 { |
|
137 public: |
|
138 static HBufC* iUserName; |
|
139 static TInt iGetConnectionParamError; |
|
140 }; |
|
141 |
|
142 #endif // C_CCH_H |