24
|
1 |
// Copyright (c) 1997-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 |
@file
|
|
18 |
@internalComponent
|
|
19 |
*/
|
|
20 |
|
|
21 |
#ifndef _TE_MMNAMSTORE_H_
|
|
22 |
#define _TE_MMNAMSTORE_H_
|
|
23 |
|
|
24 |
#include "TE_EtelMMTestStepBase.h"
|
|
25 |
#include <etelmm.h>
|
|
26 |
#include <e32base.h>
|
|
27 |
#include <mmretrieve.h>
|
|
28 |
#include "TE_mmcanceller.h"
|
|
29 |
|
|
30 |
class CTestNamStore : public CEtelMMTestStepBase
|
|
31 |
{
|
|
32 |
public:
|
|
33 |
|
|
34 |
TInt iTestCount;
|
|
35 |
CTestNamStore() ;
|
|
36 |
~CTestNamStore(){} ;
|
|
37 |
virtual enum TVerdict doTestStepL();
|
|
38 |
/*static*/ void ValidateNamInfo(const RMobileNamStore::TMobileNamStoreInfoV1 &aInfo);
|
|
39 |
/*static*/ void ValidateNamEntry(const RMobileNamStore::TMobileNamEntryV1 &aEntry);
|
|
40 |
/*static*/ void ValidateNamEntry(const RMobileNamStore::TMobileNamEntryV4 &aEntry);
|
|
41 |
/*static*/ void ValidateNamRead(const RMobileNamStore::TMobileNamEntryV1 &aEntry);
|
|
42 |
/*static*/ void ValidateNamRead(const RMobileNamStore::TMobileNamEntryV4 &aEntry);
|
|
43 |
static void InitNamEntry(RMobileNamStore::TMobileNamEntryV1& aEntry);
|
|
44 |
static void InitNamEntry(RMobileNamStore::TMobileNamEntryV4& aEntry);
|
|
45 |
|
|
46 |
class CTestGetNamList : public CActive
|
|
47 |
{
|
|
48 |
public:
|
|
49 |
static CTestGetNamList* NewLC(RMobilePhoneStore& aStore, CTestNamStore* aTestNamStore);
|
|
50 |
~CTestGetNamList();
|
|
51 |
void Start();
|
|
52 |
CTestCanceller* RetrieveCancelPtr();
|
|
53 |
protected:
|
|
54 |
CTestGetNamList(RMobilePhoneStore& aStore, CTestNamStore* aTestNamStore);
|
|
55 |
void ConstructL();
|
|
56 |
void RunL();
|
|
57 |
void DoCancel();
|
|
58 |
TInt CheckResults();
|
|
59 |
protected:
|
|
60 |
CRetrieveMobilePhoneNamList* iRetrieve;
|
|
61 |
CTestCanceller* iCanceller;
|
|
62 |
RMobilePhoneStore& iStore;
|
|
63 |
CTestNamStore* iTestNamStore;
|
|
64 |
};
|
|
65 |
|
|
66 |
class CTestGetNamListV4 : public CActive
|
|
67 |
{
|
|
68 |
public:
|
|
69 |
static CTestGetNamListV4* NewLC(RMobilePhoneStore& aStore, CTestNamStore* aTestNamStore);
|
|
70 |
~CTestGetNamListV4();
|
|
71 |
void Start();
|
|
72 |
CTestCanceller* RetrieveCancelPtr();
|
|
73 |
protected:
|
|
74 |
CTestGetNamListV4(RMobilePhoneStore& aStore, CTestNamStore* aTestNamStore);
|
|
75 |
void ConstructL();
|
|
76 |
void RunL();
|
|
77 |
void DoCancel();
|
|
78 |
TInt CheckResults();
|
|
79 |
protected:
|
|
80 |
CRetrieveMobilePhoneNamList* iRetrieve;
|
|
81 |
CTestCanceller* iCanceller;
|
|
82 |
RMobilePhoneStore& iStore;
|
|
83 |
CTestNamStore* iTestNamStore;
|
|
84 |
};
|
|
85 |
|
|
86 |
class CTestGetNamListSimultaneous : public CActive
|
|
87 |
{
|
|
88 |
public:
|
|
89 |
static CTestGetNamListSimultaneous* NewLC(RMobilePhoneStore& aStore, CTestNamStore* aTestNamStore);
|
|
90 |
~CTestGetNamListSimultaneous();
|
|
91 |
CTestGetNamListSimultaneous();
|
|
92 |
void Start();
|
|
93 |
protected:
|
|
94 |
CTestGetNamListSimultaneous(RMobilePhoneStore& aStore, CTestNamStore* aTestNamStore);
|
|
95 |
void ConstructL();
|
|
96 |
void RunL();
|
|
97 |
void DoCancel();
|
|
98 |
TInt CheckResults();
|
|
99 |
protected:
|
|
100 |
CRetrieveMobilePhoneNamList* iRetrieve;
|
|
101 |
CTestCanceller* iCanceller;
|
|
102 |
RMobilePhoneStore& iStore;
|
|
103 |
CTestNamStore* iTestNamStore;
|
|
104 |
};
|
|
105 |
|
|
106 |
friend class CTestGetNamList;
|
|
107 |
friend class CTestGetNamListV4;
|
|
108 |
friend class CTestGetNamListSimultaneous;
|
|
109 |
|
|
110 |
};
|
|
111 |
|
|
112 |
#endif
|