|
1 /* |
|
2 * Copyright (c) 2002 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: MsgBaseControlObserver declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef INC_MSGBASECONTROLOBSERVER_H |
|
21 #define INC_MSGBASECONTROLOBSERVER_H |
|
22 |
|
23 // ========== INCLUDE FILES ================================ |
|
24 |
|
25 // ========== CONSTANTS ==================================== |
|
26 |
|
27 // ========== MACROS ======================================= |
|
28 |
|
29 // ========== DATA TYPES =================================== |
|
30 |
|
31 enum TMsgControlEventRequest |
|
32 { |
|
33 EMsgEnsureCorrectFormPosition, |
|
34 EMsgRotateFocusUp, |
|
35 EMsgRotateFocusDown, |
|
36 EMsgHeightChanged, |
|
37 EMsgScrollForm, |
|
38 EMsgCheckIfFocusIsAboveThis, |
|
39 EMsgDenyCut, |
|
40 EMsgDenyCopy, |
|
41 EMsgDenyPaste, |
|
42 EMsgUpdateScrollbar, |
|
43 EMsgStateFlags, |
|
44 EMsgGetNaviIndicators, |
|
45 EMsgButtonPressed |
|
46 }; |
|
47 |
|
48 // ========== FUNCTION PROTOTYPES ========================== |
|
49 |
|
50 // ========== FORWARD DECLARATIONS ========================= |
|
51 |
|
52 class CMsgBaseControl; |
|
53 |
|
54 // ========== CLASS DECLARATION ============================ |
|
55 |
|
56 /** |
|
57 * |
|
58 */ |
|
59 class MMsgBaseControlObserver |
|
60 { |
|
61 |
|
62 public: |
|
63 |
|
64 /** |
|
65 * Returns whether view is initialized. |
|
66 */ |
|
67 virtual TBool ViewInitialized() const = 0; |
|
68 |
|
69 /** |
|
70 * Returns the current view rectangle. |
|
71 * @return |
|
72 */ |
|
73 virtual TRect ViewRect() const = 0; |
|
74 |
|
75 /** |
|
76 * Handles an event from a control. |
|
77 * @param aControl |
|
78 * @param aRequest |
|
79 * @param aDelta |
|
80 * @return |
|
81 */ |
|
82 virtual TBool HandleBaseControlEventRequestL( |
|
83 CMsgBaseControl* aControl, |
|
84 TMsgControlEventRequest aRequest, |
|
85 TInt aDelta) = 0; |
|
86 |
|
87 /** |
|
88 * Handles an event from a control. |
|
89 * @param aControl |
|
90 * @param aRequest |
|
91 * @return |
|
92 */ |
|
93 virtual TBool HandleBaseControlEventRequestL( |
|
94 CMsgBaseControl* aControl, |
|
95 TMsgControlEventRequest aRequest) = 0; |
|
96 |
|
97 /** |
|
98 * Handles an event from a control. |
|
99 * @param aControl |
|
100 * @param aRequest |
|
101 * @param aArg1 |
|
102 * @param aArg2 |
|
103 * @param aArg3 |
|
104 * @return |
|
105 */ |
|
106 virtual TInt HandleEditObserverEventRequestL( |
|
107 const CCoeControl* aControl, |
|
108 TMsgControlEventRequest aRequest, |
|
109 TAny* aArg1 = 0, |
|
110 TAny* aArg2 = 0, |
|
111 TAny* aArg3 = 0 |
|
112 ) = 0; |
|
113 }; |
|
114 |
|
115 #endif |
|
116 |
|
117 // End of File |