44
|
1 |
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
//
|
|
16 |
|
|
17 |
//user include
|
|
18 |
#include "testltsyphbkopen.h"
|
|
19 |
|
|
20 |
CTestLtsyPhbkOpen::CTestLtsyPhbkOpen(CTestLtsyModel& aTestModel)
|
|
21 |
: CTestLtsyPhoneStoreBase(aTestModel)
|
|
22 |
{
|
|
23 |
|
|
24 |
}
|
|
25 |
|
|
26 |
CTestLtsyPhbkOpen::~CTestLtsyPhbkOpen()
|
|
27 |
{
|
|
28 |
}
|
|
29 |
|
|
30 |
CTestLtsyPhbkOpen* CTestLtsyPhbkOpen::NewLC(CTestLtsyModel& aTestModel)
|
|
31 |
{
|
|
32 |
CTestLtsyPhbkOpen* self = new (ELeave)CTestLtsyPhbkOpen(aTestModel);
|
|
33 |
CleanupStack::PushL(self);
|
|
34 |
self->ConstructL();
|
|
35 |
return self;
|
|
36 |
}
|
|
37 |
|
|
38 |
CTestLtsyPhbkOpen* CTestLtsyPhbkOpen::NewL(CTestLtsyModel& aTestModel)
|
|
39 |
{
|
|
40 |
CTestLtsyPhbkOpen* self=CTestLtsyPhbkOpen::NewLC(aTestModel);
|
|
41 |
CleanupStack::Pop(self);
|
|
42 |
return self;
|
|
43 |
}
|
|
44 |
|
|
45 |
void CTestLtsyPhbkOpen::ConstructL()
|
|
46 |
{
|
|
47 |
|
|
48 |
}
|
|
49 |
|
|
50 |
TVerdict CTestLtsyPhbkOpen::doTestStepPreambleL()
|
|
51 |
{
|
|
52 |
INFO_PRINTF1(_L("CTestLtsyPhbkOpen::doTestStepPreambleL called"));
|
|
53 |
SetTestStepResult(EPass);
|
|
54 |
return TestStepResult();
|
|
55 |
}
|
|
56 |
|
|
57 |
TVerdict CTestLtsyPhbkOpen::doTestStepL()
|
|
58 |
{
|
|
59 |
INFO_PRINTF1(_L("CTestLtsyPhbkOpen::doTestStepL called"));
|
|
60 |
TRAPD(err,OpenPhonebookL());
|
|
61 |
if(err != KErrNone)
|
|
62 |
{
|
|
63 |
INFO_PRINTF2(_L("The error was returned %d!! when open phonebook"),err);
|
|
64 |
SetTestStepResult(EFail);
|
|
65 |
}
|
|
66 |
return TestStepResult();
|
|
67 |
}
|
|
68 |
|
|
69 |
TVerdict CTestLtsyPhbkOpen::doTestStepPostambleL()
|
|
70 |
{
|
|
71 |
INFO_PRINTF1(_L("CTestLtsyPhbkOpen::doTestStepPostambleL called"));
|
|
72 |
return TestStepResult();
|
|
73 |
}
|
|
74 |
|
|
75 |
void CTestLtsyPhbkOpen::OpenPhonebookL()
|
|
76 |
{
|
|
77 |
PhoneBookStore().Open(iModel.SharedEnv().Phone(), KETelIccAdnPhoneBook);
|
|
78 |
// PhoneBookStore().Open(iModel.SharedEnv().Phone(), KETelIccFdnPhoneBook);
|
|
79 |
}
|
|
80 |
|
|
81 |
// end of file
|