53
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef MEMSPYASYNCTRACKER_H_
|
|
19 |
#define MEMSPYASYNCTRACKER_H_
|
|
20 |
|
|
21 |
#include <e32base.h>
|
|
22 |
#include <aknwaitdialog.h>
|
|
23 |
#include <memspysession.h>
|
|
24 |
|
|
25 |
|
|
26 |
class CMemSpyWaitNote : public CBase, public MProgressDialogCallback
|
|
27 |
{
|
|
28 |
public:
|
|
29 |
|
|
30 |
~CMemSpyWaitNote();
|
|
31 |
|
|
32 |
void StartWaitNoteL();
|
|
33 |
|
|
34 |
void DialogDismissedL (TInt aButtonId);
|
|
35 |
|
|
36 |
private:
|
|
37 |
CAknWaitDialog* iWaitDialog;
|
|
38 |
};
|
|
39 |
|
|
40 |
|
|
41 |
class CMemSpyAsyncTracker : public CActive
|
|
42 |
{
|
|
43 |
public:
|
|
44 |
|
|
45 |
~CMemSpyAsyncTracker();
|
|
46 |
|
|
47 |
CMemSpyAsyncTracker(RMemSpySession& aSession, void (RMemSpySession::*function)(TRequestStatus&));
|
|
48 |
|
|
49 |
void StartL();
|
|
50 |
|
|
51 |
virtual void RunL();
|
|
52 |
|
|
53 |
virtual void DoCancel();
|
|
54 |
|
|
55 |
virtual TInt RunError(TInt aError);
|
|
56 |
|
|
57 |
private:
|
|
58 |
|
|
59 |
CMemSpyWaitNote* iWaitNote;
|
|
60 |
|
|
61 |
void (RMemSpySession::*iFunction)(TRequestStatus&);
|
|
62 |
|
|
63 |
RMemSpySession& iSession;
|
|
64 |
};
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
class CMemSpySwmtDumpTracker : public CMemSpyAsyncTracker
|
|
73 |
{
|
|
74 |
public:
|
|
75 |
CMemSpySwmtDumpTracker(RMemSpySession& aSession) :
|
|
76 |
CMemSpyAsyncTracker(aSession, &RMemSpySession::ForceSwmtUpdate)
|
|
77 |
{}
|
|
78 |
};
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
class CMemSpySwmtStartTimerTracker : public CMemSpyAsyncTracker
|
|
84 |
{
|
|
85 |
public:
|
|
86 |
CMemSpySwmtStartTimerTracker(RMemSpySession& aSession) :
|
|
87 |
CMemSpyAsyncTracker( aSession, &RMemSpySession::StartSwmtTimer )
|
|
88 |
{}
|
|
89 |
};
|
|
90 |
|
|
91 |
|
|
92 |
#endif /* MEMSPYASYNCTRACKER_H_ */
|