|
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: Declares window owning control for editor lines. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef USSDEDITORLINES_H |
|
20 #define USSDEDITORLINES_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <calslbs.h> |
|
24 #include <aknview.h> |
|
25 #include "UssdLayout.h" |
|
26 |
|
27 /** |
|
28 * Declares window owning control for editor lines. |
|
29 * |
|
30 * @since 1.0 |
|
31 */ |
|
32 class CUssdEditorLines : public CCoeControl |
|
33 { |
|
34 public: // Constructors and destructor |
|
35 |
|
36 // Default constructor |
|
37 CUssdEditorLines(); |
|
38 |
|
39 /** |
|
40 * Symbian OS default constructor. |
|
41 * @param aParent The parent control. |
|
42 */ |
|
43 void ConstructL( const CCoeControl* aParent ); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 ~CUssdEditorLines(); |
|
49 |
|
50 private: // Functions from base classes |
|
51 |
|
52 /** |
|
53 * From CoeControl,SizeChanged. |
|
54 */ |
|
55 void SizeChanged(); |
|
56 |
|
57 /** |
|
58 * From CCoeControl,Draw. |
|
59 */ |
|
60 void Draw( const TRect& aRect ) const; |
|
61 |
|
62 /** |
|
63 * From CoeControl,HandlePointerEventL. |
|
64 * Redirect pointer event to CEikEdwin. |
|
65 */ |
|
66 void HandlePointerEventL(const TPointerEvent& aPointerEvent); |
|
67 |
|
68 private: //data |
|
69 |
|
70 // The line rectangles. |
|
71 CArrayPtrFlat< TAknLayoutRect >* iRects; |
|
72 |
|
73 // Buffer for RRegion objects. |
|
74 RRegionBuf< KUssdMaxNumberOfEditorLines >* iRegBuf; |
|
75 |
|
76 }; |
|
77 |
|
78 #endif // USSDEDITORLINES_H |
|
79 |
|
80 // End of File |