equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002-2004 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 the License "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: Array of event handlers |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef ASYNCEVENTHANDLERARRAY_H |
|
21 #define ASYNCEVENTHANDLERARRAY_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "AsyncEventHandlerBase.h" |
|
25 #include <e32base.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 //class CAsyncEventHandlerBase; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Base class for event handlers |
|
34 */ |
|
35 NONSHARABLE_CLASS( CAsyncEventHandlerArray ) : public CArrayPtrFlat<CAsyncEventHandlerBase> |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 |
|
39 /** |
|
40 * C++ default constructor. |
|
41 */ |
|
42 CAsyncEventHandlerArray(); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 virtual ~CAsyncEventHandlerArray(); |
|
48 |
|
49 public: // New functions |
|
50 |
|
51 /** |
|
52 * Remove the handler from the array. |
|
53 */ |
|
54 void Remove( CAsyncEventHandlerBase* aEventHandler ); |
|
55 |
|
56 private: // Data |
|
57 |
|
58 TBool iDestructing; // ETrue when the destructor is running. |
|
59 }; |
|
60 |
|
61 #endif /* ASYNCEVENTHANDLERARRAY_H */ |