equal
deleted
inserted
replaced
|
1 // Copyright (c) 1995-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 #ifndef OPENWFCMONITORTHREAD_H_ |
|
17 #define OPENWFCMONITORTHREAD_H_ |
|
18 |
|
19 #include <e32base.h> |
|
20 |
|
21 class COpenWfcJobManger; |
|
22 |
|
23 class COpenWfcMonitorThread : public CBase |
|
24 { |
|
25 public: |
|
26 virtual ~COpenWfcMonitorThread(); |
|
27 |
|
28 static COpenWfcMonitorThread* NewL(TInt aNumber, COpenWfcJobManger& aManager); |
|
29 static COpenWfcMonitorThread* NewLC(TInt aNumber, COpenWfcJobManger& aManager); |
|
30 static TInt Main(TAny *aSelf); |
|
31 void Start(); |
|
32 void Resume(); |
|
33 void Suspend(); |
|
34 void Signal(); |
|
35 TInt Run(); |
|
36 void EndThread(); |
|
37 |
|
38 private: |
|
39 COpenWfcMonitorThread(COpenWfcJobManger& aManager); |
|
40 void ConstructL(TInt aScreenNumber); |
|
41 |
|
42 private: |
|
43 volatile TBool iEndThread; |
|
44 RThread iThread; |
|
45 TRequestStatus iThreadStatus; |
|
46 COpenWfcJobManger& iManager; |
|
47 RSemaphore iSemaphore; |
|
48 }; |
|
49 |
|
50 #endif /* OPENWFCMONITORTHREAD_H_ */ |