equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 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: test akntabgrp.h |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_TESTSDKTABGRPCONTROL_H |
|
20 #define C_TESTSDKTABGRPCONTROL_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <akntabobserver.h> |
|
24 #include <coecntrl.h> |
|
25 |
|
26 /** |
|
27 * CTestTabsControl is used to add setting page control in its window |
|
28 */ |
|
29 class CTestTabsControl : public CCoeControl, public MAknTabObserver |
|
30 { |
|
31 public: |
|
32 /** |
|
33 * Two-phased constructor. |
|
34 */ |
|
35 static CTestTabsControl* NewL(); |
|
36 |
|
37 /** |
|
38 * Destructor. |
|
39 */ |
|
40 ~CTestTabsControl(); |
|
41 |
|
42 /** |
|
43 * from MAknTabObserver. |
|
44 */ |
|
45 void TabChangedL ( TInt aIndex ); |
|
46 |
|
47 private: |
|
48 |
|
49 /** |
|
50 * Constructor. |
|
51 */ |
|
52 CTestTabsControl(); |
|
53 |
|
54 /** |
|
55 * By default Symbian 2nd phase constructor is private. |
|
56 */ |
|
57 void ConstructL(); |
|
58 |
|
59 /** |
|
60 * Receive key events. |
|
61 */ |
|
62 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
|
63 |
|
64 /** |
|
65 * Draw control. |
|
66 */ |
|
67 void Draw(const TRect& aRect) const; |
|
68 |
|
69 /** |
|
70 * Return number of controls in its window. |
|
71 */ |
|
72 TInt CountComponentControls() const; |
|
73 |
|
74 /** |
|
75 * Controls in its window. |
|
76 */ |
|
77 CCoeControl* ComponentControl(TInt aIndex) const; |
|
78 |
|
79 /** |
|
80 * Resize screen. |
|
81 */ |
|
82 void SizeChanged(); |
|
83 |
|
84 }; |
|
85 |
|
86 #endif // C_TESTSDKTABGRPCONTROL_H |