|
1 /* |
|
2 * Copyright (c) 2002-2005 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: Container/accessor class for defined key events |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CREMCONKEYEVENTCONTAINER_H |
|
21 #define CREMCONKEYEVENTCONTAINER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "RemConKeyEvent.h" |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Container/accessor class for defined key events. |
|
30 * |
|
31 * @lib RemConKeyEventConverter.dll (ECom plugin) |
|
32 * @since S60 3.0 |
|
33 */ |
|
34 class CRemConKeyEventContainer : public CBase |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Two-phased constructor. |
|
40 */ |
|
41 static CRemConKeyEventContainer* NewL(); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 virtual ~CRemConKeyEventContainer(); |
|
47 |
|
48 public: // New functions |
|
49 |
|
50 /** |
|
51 * Add a key event instance to container. |
|
52 * @since S60 3.0 |
|
53 * @param CRemConKeyEvent Key event to be added. |
|
54 * @return void |
|
55 */ |
|
56 void AddEventL( const CRemConKeyEvent* aKeyEvent ); |
|
57 |
|
58 /** |
|
59 * Return matching key event instances. |
|
60 * @since S60 3.0 |
|
61 * @return Array of key event instances. |
|
62 */ |
|
63 const RPointerArray<CRemConKeyEvent>& GetEvents() const; |
|
64 |
|
65 private: |
|
66 |
|
67 /** |
|
68 * C++ default constructor. |
|
69 */ |
|
70 CRemConKeyEventContainer(); |
|
71 |
|
72 /** |
|
73 * By default Symbian 2nd phase constructor is private. |
|
74 */ |
|
75 void ConstructL(); |
|
76 |
|
77 private: // Data |
|
78 // Array of key event instances |
|
79 RPointerArray<CRemConKeyEvent> iKeyEventArray; |
|
80 |
|
81 }; |
|
82 |
|
83 #endif // CREMCONKEYEVENTCONTAINER_H |
|
84 |
|
85 // End of File |