|
1 /* |
|
2 * Copyright (c) 2002-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: ThreadDeath notifier for CSatSession |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MTHREADDEATHNOTIFIER_H |
|
21 #define MTHREADDEATHNOTIFIER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Notifies CSatThreadDeathMonitor to start monitor new thread death |
|
30 * |
|
31 * @lib SatServer |
|
32 * @since Series 60 3.0 |
|
33 */ |
|
34 class MThreadDeathNotifier |
|
35 { |
|
36 protected: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * C++ default constructor. |
|
40 */ |
|
41 MThreadDeathNotifier() {}; |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 virtual ~MThreadDeathNotifier() {}; |
|
47 |
|
48 public: // New functions |
|
49 |
|
50 /** |
|
51 * Notifies Thread death monitor that thread is closing |
|
52 */ |
|
53 virtual void NotifyThreadDeath() = 0; |
|
54 |
|
55 /** |
|
56 * Start monitoring thread's death |
|
57 */ |
|
58 virtual void StartObservingThread() = 0; |
|
59 |
|
60 /** |
|
61 * Sets thread that is observered. |
|
62 * @param aThreadId Thread which death should be observered |
|
63 */ |
|
64 virtual void SetObserveredThread( TThreadId& aThread ) = 0; |
|
65 |
|
66 private: |
|
67 |
|
68 // Prohibit copy constructor if not deriving from CBase. |
|
69 MThreadDeathNotifier( const MThreadDeathNotifier& ); |
|
70 |
|
71 // Prohibit assigment operator if not deriving from CBase. |
|
72 MThreadDeathNotifier& operator=( const MThreadDeathNotifier& ); |
|
73 |
|
74 }; |
|
75 |
|
76 #endif // MTHREADDEATHNOTIFIER_H |
|
77 |
|
78 // End of File |