|
1 /* |
|
2 * Copyright (c) 2002-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: Stores and loads CRCSESIPSettingEntry to/from database. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "crcsesipsettingregistry.h" |
|
22 #include "crcsesipsettingentry.h" |
|
23 #include "rcsepanic.h" |
|
24 #include "rcseconstants.h" |
|
25 #include "rcselogger.h" |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // ============================ MEMBER FUNCTIONS =============================== |
|
30 |
|
31 // ----------------------------------------------------------------------------- |
|
32 // CRCSESIPSettingRegistry::CRCSESIPSettingRegistry |
|
33 // C++ default constructor can NOT contain any code, that |
|
34 // might leave. |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 CRCSESIPSettingRegistry::CRCSESIPSettingRegistry() |
|
38 : CRCSERegistryBase( ESIPSetting ) |
|
39 { |
|
40 } |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // CRCSESIPSettingRegistry::ConstructL |
|
44 // Symbian 2nd phase constructor can leave. |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 void CRCSESIPSettingRegistry::ConstructL() |
|
48 { |
|
49 RCSELOGSTRING( "CRCSESIPSettingRegistry::ConstructL() - STUB impl" ); |
|
50 BaseConstructL(); |
|
51 } |
|
52 |
|
53 // ----------------------------------------------------------------------------- |
|
54 // CRCSESIPSettingRegistry::NewL |
|
55 // Two-phased constructor. |
|
56 // ----------------------------------------------------------------------------- |
|
57 // |
|
58 EXPORT_C CRCSESIPSettingRegistry* CRCSESIPSettingRegistry::NewL() |
|
59 { |
|
60 CRCSESIPSettingRegistry* self = CRCSESIPSettingRegistry::NewLC(); |
|
61 CleanupStack::Pop( self ); |
|
62 return self; |
|
63 } |
|
64 |
|
65 // ----------------------------------------------------------------------------- |
|
66 // CRCSESIPSettingRegistry::NewLC |
|
67 // Two-phased constructor. |
|
68 // ----------------------------------------------------------------------------- |
|
69 // |
|
70 EXPORT_C CRCSESIPSettingRegistry* CRCSESIPSettingRegistry::NewLC() |
|
71 { |
|
72 CRCSESIPSettingRegistry* self = new( ELeave ) CRCSESIPSettingRegistry; |
|
73 CleanupStack::PushL( self ); |
|
74 self->ConstructL(); |
|
75 return self; |
|
76 } |
|
77 |
|
78 |
|
79 // ----------------------------------------------------------------------------- |
|
80 // Destructor |
|
81 // ----------------------------------------------------------------------------- |
|
82 // |
|
83 EXPORT_C CRCSESIPSettingRegistry::~CRCSESIPSettingRegistry() |
|
84 { |
|
85 } |
|
86 |
|
87 // ----------------------------------------------------------------------------- |
|
88 // CRCSESIPSettingRegistry::FindL |
|
89 // Creates sql query and sets the data to aFoundQuery. |
|
90 // (other items were commented in a header). |
|
91 // ----------------------------------------------------------------------------- |
|
92 // |
|
93 EXPORT_C void CRCSESIPSettingRegistry::FindL( |
|
94 TUint32 /*aSIPProfileId*/, |
|
95 CRCSESIPSettingEntry& /*aFoundEntry*/ ) |
|
96 { |
|
97 RCSELOGSTRING( "CRCSESIPSettingRegistry::FindL() - KErrNotSupported" ); |
|
98 User::Leave( KErrNotSupported ); |
|
99 } |
|
100 |
|
101 // ----------------------------------------------------------------------------- |
|
102 // CRCSESIPSettingRegistry::AddL |
|
103 // Inserts aNewEntry to database. |
|
104 // (other items were commented in a header). |
|
105 // ----------------------------------------------------------------------------- |
|
106 // |
|
107 EXPORT_C TUint32 CRCSESIPSettingRegistry::AddL( |
|
108 const CRCSESIPSettingEntry& /*aNewEntry*/ ) |
|
109 { |
|
110 RCSELOGSTRING( "CRCSESIPSettingRegistry::AddL() - KErrNotSupported" ); |
|
111 User::Leave( KErrNotSupported ); |
|
112 return 0; //sipid; |
|
113 } |
|
114 |
|
115 // ----------------------------------------------------------------------------- |
|
116 // CRCSESIPSettingRegistry::DeleteL |
|
117 // Deletes a SIP entry which SIP id is aId. |
|
118 // (other items were commented in a header). |
|
119 // ----------------------------------------------------------------------------- |
|
120 // |
|
121 EXPORT_C void CRCSESIPSettingRegistry::DeleteL( TUint32 /*aId*/ ) |
|
122 { |
|
123 RCSELOGSTRING( "CRCSESIPSettingRegistry::Delete() - KErrNotSupported" ); |
|
124 User::Leave( KErrNotSupported ); |
|
125 } |
|
126 |
|
127 // ----------------------------------------------------------------------------- |
|
128 // CRCSESIPSettingRegistry::UpdateL |
|
129 // Updates SIP profile entry, which SIP identifier is aId. |
|
130 // (other items were commented in a header). |
|
131 // ----------------------------------------------------------------------------- |
|
132 // |
|
133 EXPORT_C void CRCSESIPSettingRegistry::UpdateL( |
|
134 TUint32 /*aId*/, |
|
135 const CRCSESIPSettingEntry& /*aUpdateData*/ ) |
|
136 { |
|
137 RCSELOGSTRING( "CRCSESIPSettingRegistry::UpdateL() - KErrNotSupported" ); |
|
138 User::Leave( KErrNotSupported ); |
|
139 } |
|
140 |
|
141 // ----------------------------------------------------------------------------- |
|
142 // CRCSESIPSettingRegistry::GetDefaultProfile |
|
143 // Sets a default profile. |
|
144 // (other items were commented in a header). |
|
145 // ----------------------------------------------------------------------------- |
|
146 // |
|
147 EXPORT_C void CRCSESIPSettingRegistry::GetDefaultProfile( |
|
148 CRCSESIPSettingEntry& aDefaultProfile ) const |
|
149 { |
|
150 aDefaultProfile.ResetDefaultValues(); |
|
151 } |
|
152 |
|
153 // ----------------------------------------------------------------------------- |
|
154 // CRCSESIPSettingRegistry::GetAllIdsL |
|
155 // Gets all SIP setting identifiers from data base. |
|
156 // (other items were commented in a header). |
|
157 // ----------------------------------------------------------------------------- |
|
158 // |
|
159 EXPORT_C void CRCSESIPSettingRegistry::GetAllIdsL( |
|
160 RArray<TUint32>& /*aAllIds*/ ) |
|
161 { |
|
162 RCSELOGSTRING( "CRCSESIPSettingRegistry::GetAllIdsL() - No impl !" ); |
|
163 } |
|
164 |
|
165 |
|
166 // End of File |