|
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: Interface for identity object. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "s_xmppsettingsapi.h" |
|
20 TBool setpassword = EFalse; |
|
21 |
|
22 CXmppSettingsApi* CXmppSettingsApi::NewL() |
|
23 { |
|
24 // if (!myCSPSettings) |
|
25 // { |
|
26 // myCSPSettings = new ( ELeave ) CXmppSettingsApi; |
|
27 // } |
|
28 // return myCSPSettings; |
|
29 return new ( ELeave ) CXmppSettingsApi; |
|
30 } |
|
31 |
|
32 CXmppSettingsApi* CXmppSettingsApi::NewLC() |
|
33 { |
|
34 CXmppSettingsApi* settings = CXmppSettingsApi::NewL(); |
|
35 CleanupStack::PushL( settings ); |
|
36 return settings; |
|
37 } |
|
38 |
|
39 CXmppSettingsApi::~CXmppSettingsApi() |
|
40 { |
|
41 |
|
42 } |
|
43 |
|
44 void CXmppSettingsApi::CreateSettingsRecordL( TUint32& aSettingsRecordId ) |
|
45 { |
|
46 |
|
47 } |
|
48 |
|
49 void CXmppSettingsApi::RemoveSettingsRecordL( TUint32 aSettingsRecordId ) |
|
50 { |
|
51 |
|
52 } |
|
53 |
|
54 void CXmppSettingsApi::DefaultSettingsRecordL( TUint32& aSettingsRecordId ) |
|
55 { |
|
56 |
|
57 } |
|
58 |
|
59 void CXmppSettingsApi::GetSettingsRecordIdArrayL( RArray<TUint32>& aArray ) |
|
60 { |
|
61 |
|
62 } |
|
63 |
|
64 void CXmppSettingsApi::SetParamL( TUint32 aSettingsRecordId, |
|
65 const TDesC& aAttrName, |
|
66 const TDesC& aAttrValue ) |
|
67 { |
|
68 |
|
69 } |
|
70 |
|
71 void CXmppSettingsApi::SetParamL( TUint32 aSettingsRecordId, |
|
72 const TDesC& aAttrName, |
|
73 TInt aAttrValue ) |
|
74 { |
|
75 |
|
76 } |
|
77 |
|
78 void CXmppSettingsApi::GetParamL( TUint32 aSettingsRecordId, |
|
79 const TDesC& aAttrName, |
|
80 TDes& aAttrValue ) |
|
81 { |
|
82 if(setpassword) |
|
83 { |
|
84 _LIT(KText,"password"); |
|
85 aAttrValue.Copy(KText); |
|
86 } |
|
87 else |
|
88 { |
|
89 _LIT(KText,""); |
|
90 aAttrValue.Copy(KText); |
|
91 } |
|
92 } |
|
93 |
|
94 void CXmppSettingsApi::GetParamL( TUint32 aSettingsRecordId, |
|
95 const TDesC& aAttrName, |
|
96 TInt& aAttrValue ) |
|
97 { |
|
98 |
|
99 } |
|
100 |
|
101 void CXmppSettingsApi::RemoveParamL( TUint32 aSettingsRecordId, |
|
102 const TDesC& aAttrName ) |
|
103 { |
|
104 |
|
105 } |
|
106 |
|
107 |
|
108 void CXmppSettingsApi::GetRepositoryKeyL( TUint32 aSettingsRecordId, |
|
109 const TDesC& aAttrName, |
|
110 TBool aCreateColumnIfNotExist, |
|
111 TUint32& aTheKey ) |
|
112 { |
|
113 |
|
114 } |