1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 /* |
2 // All rights reserved. |
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
3 // This component and the accompanying materials are made available |
3 * All rights reserved. |
4 // under the terms of "Eclipse Public License v1.0" |
4 * This component and the accompanying materials are made available |
5 // which accompanies this distribution, and is available |
5 * under the terms of "Eclipse Public License v1.0" |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 * which accompanies this distribution, and is available |
7 // |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 // Initial Contributors: |
8 * |
9 // Nokia Corporation - initial contribution. |
9 * Initial Contributors: |
10 // |
10 * Nokia Corporation - initial contribution. |
11 // Contributors: |
11 * |
12 // |
12 * Contributors: |
13 // Description: |
13 * |
14 // RecoverView Test module |
14 * Description: |
15 // |
15 * RecoverView Test module |
16 // |
16 * |
|
17 */ |
|
18 |
17 |
19 |
18 |
20 |
19 #include <e32test.h> |
21 #include <e32test.h> |
20 #include <cntviewbase.h> |
22 #include <cntviewbase.h> |
21 #include <cntitem.h> |
23 #include <cntitem.h> |
22 #include <cntfldst.h> |
24 #include <cntfldst.h> |
23 |
25 |
24 #include "CContactViewEventQueue.h" |
26 #include "ccontactvieweventqueue.h" |
25 |
27 |
26 _LIT(KTestName, "T_RecoverView"); |
28 _LIT(KTestName, "T_RecoverView"); |
27 |
29 |
28 _LIT(KTestDbName, "c:T_RecoverView.cdb"); |
30 _LIT(KTestDbName, "c:T_RecoverView.cdb"); |
29 |
31 |
107 |
109 |
108 CTestResources* res = CTestResources::NewLC(EFalse); |
110 CTestResources* res = CTestResources::NewLC(EFalse); |
109 |
111 |
110 //Creating a contact to test recovery |
112 //Creating a contact to test recovery |
111 _LIT(KPhoneNumLabel,"Phone Number"); |
113 _LIT(KPhoneNumLabel,"Phone Number"); |
112 _LIT(KPhoneNum, "+447700900012"); |
114 _LIT(KPhoneNum, "+440000000000"); |
113 |
115 |
114 CContactCard* contact = CContactCard::NewLC(); |
116 CContactCard* contact = CContactCard::NewLC(); |
115 CContactItemField* field = CContactItemField::NewLC(KStorageTypeText,KUidContactFieldPhoneNumber); |
117 CContactItemField* field = CContactItemField::NewLC(KStorageTypeText,KUidContactFieldPhoneNumber); |
116 |
118 |
117 field->SetLabelL(KPhoneNumLabel()); |
119 field->SetLabelL(KPhoneNumLabel()); |