1 /* |
|
2 * Copyright (c) 2007-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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CSCSVCPLUGINRCSEHANDLER_H |
|
20 #define C_CSCSVCPLUGINRCSEHANDLER_H |
|
21 |
|
22 class CRCSEProfileEntry; |
|
23 class CRCSEProfileRegistry; |
|
24 class CCSCSvcPluginSpSettHandler; |
|
25 |
|
26 /** |
|
27 * An instance of class CCSCSvcPluginRcseHandler. |
|
28 * |
|
29 * @lib |
|
30 * @since S60 v3.2 |
|
31 */ |
|
32 class CCSCSvcPluginRcseHandler : public CBase |
|
33 { |
|
34 public: |
|
35 |
|
36 static CCSCSvcPluginRcseHandler* NewL(); |
|
37 |
|
38 /** |
|
39 * Destructor. |
|
40 */ |
|
41 ~CCSCSvcPluginRcseHandler(); |
|
42 |
|
43 |
|
44 /** |
|
45 * Returns VoIP profile id for corresponding EasyVoIP plugin. |
|
46 * Also returns SIP profile reference ids if any |
|
47 * was found from VoIP profile entry. |
|
48 * Function leaves on failure. |
|
49 * |
|
50 * @since S60 v3.2 |
|
51 * @param aServiceId service id |
|
52 * @param aProfileId for VoIP profile id to be returned |
|
53 * @param aSipProfileIds for SIP profile references appended to entry |
|
54 */ |
|
55 void GetProfileIdsL( |
|
56 TUint32 aServiceId, |
|
57 TUint32& aProfileId, |
|
58 RArray<TUint32>& aSipProfileIds ); |
|
59 |
|
60 /** |
|
61 * Destroys VoIP profile from RCSE based on VoIP profile id. |
|
62 * Function leaves on failure. |
|
63 * |
|
64 * @since S60 v3.2 |
|
65 * @param aProfileId for VoIP profile id to be deleted |
|
66 */ |
|
67 void RemoveProfileL( TUint32 aProfileId ); |
|
68 |
|
69 |
|
70 private: |
|
71 |
|
72 CCSCSvcPluginRcseHandler(); |
|
73 |
|
74 void ConstructL(); |
|
75 |
|
76 |
|
77 /** |
|
78 * For deleting RPointerArray in case of leave. |
|
79 * |
|
80 * @since S60 v3.2 |
|
81 * @param aPointerArray for pointer array to be deleted |
|
82 */ |
|
83 static void ResetAndDestroy( TAny* aPointerArray ); |
|
84 |
|
85 |
|
86 private: // data |
|
87 |
|
88 /* |
|
89 * Handle to Richcall Setting Engine profile registry. |
|
90 * Own. |
|
91 */ |
|
92 CRCSEProfileRegistry* iRcseProfileRegistry; |
|
93 |
|
94 /* |
|
95 * Handle to CCSCSvcPluginRcseHandler. |
|
96 * Own. |
|
97 */ |
|
98 CCSCSvcPluginSpSettHandler* iSpSettHandler; |
|
99 }; |
|
100 |
|
101 #endif // C_CSCSVCPLUGINRCSEHANDLER_H |
|
102 |
|
103 |
|