24
|
1 |
// Copyright (c) 2000-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_MMONSTORE_H_
|
|
22 |
#define _TE_MMONSTORE_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 CTestOnStore : public CEtelMMTestStepBase
|
|
31 |
{
|
|
32 |
public:
|
|
33 |
|
|
34 |
TInt iTestCount;
|
|
35 |
CTestOnStore() ;
|
|
36 |
~CTestOnStore(){} ;
|
|
37 |
virtual enum TVerdict doTestStepL();
|
|
38 |
/*static*/ void ValidateONInfo(const RMobileONStore::TMobileONStoreInfoV1 &aInfo);
|
|
39 |
/*static*/ void ValidateONEntry(const RMobileONStore::TMobileONEntryV1 &aEntry);
|
|
40 |
/*static*/ void ValidateONRead(const RMobileONStore::TMobileONEntryV1 &aEntry);
|
|
41 |
static void InitONEntry(RMobileONStore::TMobileONEntryV1& aEntry);
|
|
42 |
|
|
43 |
class CTestGetONList : public CActive
|
|
44 |
{
|
|
45 |
public:
|
|
46 |
static CTestGetONList* NewLC(RMobilePhoneStore& aStore, CTestOnStore* aTestOnStore);
|
|
47 |
~CTestGetONList();
|
|
48 |
void Start();
|
|
49 |
CTestCanceller* RetrieveCancelPtr();
|
|
50 |
protected:
|
|
51 |
CTestGetONList(RMobilePhoneStore& aStore, CTestOnStore* aTestOnStore);
|
|
52 |
void ConstructL();
|
|
53 |
void RunL();
|
|
54 |
void DoCancel();
|
|
55 |
TInt CheckResults();
|
|
56 |
protected:
|
|
57 |
CRetrieveMobilePhoneONList* iRetrieve;
|
|
58 |
CTestCanceller* iCanceller;
|
|
59 |
RMobilePhoneStore& iStore;
|
|
60 |
CTestOnStore* iTestOnStore;
|
|
61 |
};
|
|
62 |
|
|
63 |
friend class CTestGetONList;
|
|
64 |
|
|
65 |
};
|
|
66 |
|
|
67 |
#endif
|