equal
deleted
inserted
replaced
|
1 // kill.h |
|
2 // |
|
3 // Copyright (c) 2005 - 2010 Accenture. All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of the "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 // Accenture - Initial contribution |
|
11 // |
|
12 |
|
13 #include <fshell/memoryaccesscmd.h> |
|
14 |
|
15 using namespace IoUtils; |
|
16 |
|
17 class CCmdKill : public CMemoryAccessCommandBase |
|
18 { |
|
19 public: |
|
20 static CCommandBase* NewLC(); |
|
21 ~CCmdKill(); |
|
22 private: |
|
23 CCmdKill(); |
|
24 void KillIdL(TUint aId); |
|
25 template <class T> void DoKillByHandleL(TUint aId); |
|
26 void DoKillThreadL(TUint aId); |
|
27 void FindIdAndKillL(const TDesC& aPattern); |
|
28 template <class RProcessOrThread, class TFindProcessOrThread> void DoFindIdAndKillL(const TDesC& aPattern); |
|
29 private: // From CCommandBase. |
|
30 virtual const TDesC& Name() const; |
|
31 virtual void DoRunL(); |
|
32 virtual void OptionsL(RCommandOptionList& aOptions); |
|
33 virtual void ArgumentsL(RCommandArgumentList& aArguments); |
|
34 private: |
|
35 TUint iId; |
|
36 TInt iReason; |
|
37 TBool iThread; |
|
38 TBool iTerminate; |
|
39 HBufC* iPanicCategory; |
|
40 HBufC* iMatch; |
|
41 TBool iAll; |
|
42 }; |