1 /* |
|
2 * Copyright (c) 2005-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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #if (!defined __T_GRAPHICS_WSERV_PRIORITYKEYEVENT_H__) |
|
20 #define __T_GRAPHICS_WSERV_PRIORITYKEYEVENT_H__ |
|
21 |
|
22 // User Includes |
|
23 #include "DataWrapperBase.h" |
|
24 |
|
25 // EPOC Includes |
|
26 #include <w32std.h> |
|
27 |
|
28 /** |
|
29 * Test Active Notification class |
|
30 * |
|
31 */ |
|
32 class CT_DataWsPriorityKeyEvent : public CDataWrapperBase |
|
33 { |
|
34 public: |
|
35 /** |
|
36 * Two phase constructor |
|
37 */ |
|
38 static CT_DataWsPriorityKeyEvent* NewL(); |
|
39 |
|
40 /** |
|
41 * Public destructor |
|
42 */ |
|
43 ~CT_DataWsPriorityKeyEvent(); |
|
44 |
|
45 /** |
|
46 * Return a pointer to the object that the data wraps |
|
47 * |
|
48 * \return pointer to the object that the data wraps |
|
49 */ |
|
50 virtual TAny* GetObject() { return iWsPriorityKeyEvent; } |
|
51 |
|
52 /** |
|
53 * Set the object that the data wraps |
|
54 * |
|
55 * @param aObject object that the wrapper is testing |
|
56 * |
|
57 */ |
|
58 virtual void SetObjectL(TAny* aAny); |
|
59 |
|
60 /** |
|
61 * The object will no longer be owned by this |
|
62 * |
|
63 * @leave KErrNotSupported if the the function is not supported |
|
64 */ |
|
65 virtual void DisownObjectL(); |
|
66 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
67 |
|
68 protected: |
|
69 /** |
|
70 * Protected constructor. First phase construction |
|
71 */ |
|
72 CT_DataWsPriorityKeyEvent(); |
|
73 |
|
74 /** |
|
75 * Second phase construction |
|
76 */ |
|
77 void ConstructL(); |
|
78 |
|
79 private: |
|
80 /** |
|
81 * Helper methods |
|
82 */ |
|
83 void DestroyData(); |
|
84 |
|
85 void DoCmdnew(); |
|
86 void DoCmdHandle(const TDesC& aEntry); |
|
87 void DoCmdKey(const TDesC& aEntry); |
|
88 void DoCmdSetHandle(const TDesC& aEntry); |
|
89 |
|
90 private: |
|
91 TWsPriorityKeyEvent* iWsPriorityKeyEvent; |
|
92 }; |
|
93 |
|
94 #endif /* __T_GRAPHICS_WSERV_PRIORITYKEYEVENT_H__ */ |
|