24
|
1 |
// Copyright (c) 1999-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 LOGCHECK_H
|
|
22 |
#define LOGCHECK_H
|
|
23 |
|
|
24 |
#include <logwrap.h>
|
|
25 |
#include <logview.h>
|
|
26 |
#include <logcli.h>
|
|
27 |
#include <e32test.h>
|
|
28 |
|
|
29 |
#include "smsstackbaseteststeps.h"
|
|
30 |
|
|
31 |
class CSmsLogChecker : public CActive
|
|
32 |
{
|
|
33 |
public:
|
|
34 |
static CSmsLogChecker* NewL(RFs& aFs, CSmsBaseTestStep* aTest, TInt aPriority);
|
|
35 |
~CSmsLogChecker();
|
|
36 |
|
|
37 |
void CountOriginalIdsL(TRequestStatus& aStatus);
|
|
38 |
void CompareNewIdsL(const RArray<TLogId>& aMessageLogIds, TRequestStatus& aStatus);
|
|
39 |
|
|
40 |
private:
|
|
41 |
enum TTask
|
|
42 |
{
|
|
43 |
ENone,
|
|
44 |
ECountOriginal,
|
|
45 |
ECountNew
|
|
46 |
} iTask;
|
|
47 |
|
|
48 |
enum TState
|
|
49 |
{
|
|
50 |
EIdle,
|
|
51 |
EFilter,
|
|
52 |
EFirst,
|
|
53 |
ENext
|
|
54 |
} iState;
|
|
55 |
|
|
56 |
CSmsLogChecker(RFs& aFs, CSmsBaseTestStep* aTest, TInt aPriority);
|
|
57 |
void ConstructL();
|
|
58 |
void RunL();
|
|
59 |
TInt RunError(TInt aError);
|
|
60 |
void DoCancel();
|
|
61 |
|
|
62 |
void Complete(TInt aStatus);
|
|
63 |
void StartTaskL(TTask aTask, RArray<TLogId>& aIds, TRequestStatus& aStatus);
|
|
64 |
void CompleteTaskL();
|
|
65 |
|
|
66 |
private:
|
|
67 |
|
|
68 |
RFs& iFs;
|
|
69 |
CSmsBaseTestStep* iTest;
|
|
70 |
|
|
71 |
const RArray<TLogId>* iMessageLogIds;
|
|
72 |
RArray<TLogId> iOriginalIds;
|
|
73 |
RArray<TLogId> iNewIds;
|
|
74 |
RArray<TLogId>* iCurrentArray;
|
|
75 |
TRequestStatus* iReport;
|
|
76 |
|
|
77 |
CLogClient* iClient;
|
|
78 |
CLogViewEvent* iView;
|
|
79 |
CLogFilter* iFilter;
|
|
80 |
|
|
81 |
TBuf<32> iDirection;
|
|
82 |
};
|
|
83 |
|
|
84 |
#endif
|