sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
* Series 60 version of Hindi Demo application
|
sl@0
|
16 |
*
|
sl@0
|
17 |
*/
|
sl@0
|
18 |
|
sl@0
|
19 |
|
sl@0
|
20 |
|
sl@0
|
21 |
#ifndef __HINDIDEMO_CONTAINER_H__
|
sl@0
|
22 |
#define __HINDIDEMO_CONTAINER_H__
|
sl@0
|
23 |
|
sl@0
|
24 |
#include "HindiDemo.hrh"
|
sl@0
|
25 |
|
sl@0
|
26 |
#include <aknsettingitemlist.h>
|
sl@0
|
27 |
#include <akncontext.h>
|
sl@0
|
28 |
#include <aknnavi.h>
|
sl@0
|
29 |
#include <aknnavide.h>
|
sl@0
|
30 |
#include <akntitle.h>
|
sl@0
|
31 |
#include <avkon.rsg>
|
sl@0
|
32 |
#include <barsread.h>
|
sl@0
|
33 |
#include <eikspane.h>
|
sl@0
|
34 |
|
sl@0
|
35 |
const TInt KLengthOfNaviTempString = 100;
|
sl@0
|
36 |
|
sl@0
|
37 |
#if !defined(KSettingEdwinMaxValueLength)
|
sl@0
|
38 |
#define KSettingEdwinMaxValueLength 50
|
sl@0
|
39 |
#endif
|
sl@0
|
40 |
|
sl@0
|
41 |
#if !defined(KSettingSecretMaxLabelLength)
|
sl@0
|
42 |
#define KSettingSecretMaxLabelLength 20
|
sl@0
|
43 |
#endif
|
sl@0
|
44 |
|
sl@0
|
45 |
|
sl@0
|
46 |
// -----------------------------------------------------------------------
|
sl@0
|
47 |
// CHindiDemoContainer
|
sl@0
|
48 |
// -----------------------------------------------------------------------
|
sl@0
|
49 |
class CHindiDemoContainer : public CAknSettingItemList {
|
sl@0
|
50 |
|
sl@0
|
51 |
public:
|
sl@0
|
52 |
|
sl@0
|
53 |
~CHindiDemoContainer();
|
sl@0
|
54 |
|
sl@0
|
55 |
// ------------------------------------------------------------------------------------------------
|
sl@0
|
56 |
// Framework method to create a setting item based upon the user id aSettingId. The
|
sl@0
|
57 |
// client code decides what type to construct. new (ELeave) must then be used and the resulting
|
sl@0
|
58 |
// pointer returned. Ownership is thereafter base class's responsibility.
|
sl@0
|
59 |
//
|
sl@0
|
60 |
// @param aSettingId ID to use to determine the type of the setting item
|
sl@0
|
61 |
// @return a constructed (not 2nd-stage constructed) setting item.
|
sl@0
|
62 |
// ------------------------------------------------------------------------------------------------
|
sl@0
|
63 |
CAknSettingItem* CreateSettingItemL(TInt aSettingId);
|
sl@0
|
64 |
|
sl@0
|
65 |
// ------------------------------------------------------------------------------------------------
|
sl@0
|
66 |
// This launches the setting page for the current item by calling EditItemL on it
|
sl@0
|
67 |
//
|
sl@0
|
68 |
// @param aIndex - current item's (Visible) index in the list
|
sl@0
|
69 |
// @param aCalledFromMenu - ignored in most classes; may alter the behaviour of the setting page
|
sl@0
|
70 |
// ------------------------------------------------------------------------------------------------
|
sl@0
|
71 |
void EditItemL(TInt aIndex, TBool aCalledFromMenu);
|
sl@0
|
72 |
|
sl@0
|
73 |
// -----------------------------------------------------------------------
|
sl@0
|
74 |
// Routine that dispatches Command events to individual handlers
|
sl@0
|
75 |
// -----------------------------------------------------------------------
|
sl@0
|
76 |
bool DispatchViewCommandEvents(TInt aCommand);
|
sl@0
|
77 |
|
sl@0
|
78 |
// -----------------------------------------------------------------------
|
sl@0
|
79 |
// Routine that initializes components owned by this Container
|
sl@0
|
80 |
// -----------------------------------------------------------------------
|
sl@0
|
81 |
void InitComponentsL();
|
sl@0
|
82 |
|
sl@0
|
83 |
void Draw(const TRect& aRect) const;
|
sl@0
|
84 |
|
sl@0
|
85 |
private:
|
sl@0
|
86 |
|
sl@0
|
87 |
// -----------------------------------------------------------------------
|
sl@0
|
88 |
// Routine that cleans up components owned by this container
|
sl@0
|
89 |
// -----------------------------------------------------------------------
|
sl@0
|
90 |
void CleanupComponents();
|
sl@0
|
91 |
|
sl@0
|
92 |
// -----------------------------------------------------------------------
|
sl@0
|
93 |
// Handles keys sent to this control
|
sl@0
|
94 |
// -----------------------------------------------------------------------
|
sl@0
|
95 |
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
|
sl@0
|
96 |
|
sl@0
|
97 |
// -----------------------------------------------------------------------
|
sl@0
|
98 |
// Responds to size changes to sets the size and position of the contents of this control
|
sl@0
|
99 |
// -----------------------------------------------------------------------
|
sl@0
|
100 |
void SizeChanged();
|
sl@0
|
101 |
|
sl@0
|
102 |
private:
|
sl@0
|
103 |
// -----------------------------------------------------------------------
|
sl@0
|
104 |
// CAknNavigationControlContainer* iNaviPane;
|
sl@0
|
105 |
// CAknNavigationDecorator* iNaviDecorator;
|
sl@0
|
106 |
// -----------------------------------------------------------------------
|
sl@0
|
107 |
|
sl@0
|
108 |
private:
|
sl@0
|
109 |
// -----------------------------------------------------------------------
|
sl@0
|
110 |
// NOTE: The following section is managed by the C++Builder IDE - DO NOT MODIFY
|
sl@0
|
111 |
//IDE-MANAGED-START
|
sl@0
|
112 |
/* 13/08/05 20:28 */
|
sl@0
|
113 |
CAknContextPane * iContextPane;
|
sl@0
|
114 |
CAknTitlePane * iTitlePane;
|
sl@0
|
115 |
CAknNavigationControlContainer * iNaviPane;
|
sl@0
|
116 |
CAknNavigationDecorator * iNaviDecorator;
|
sl@0
|
117 |
//IDE-MANAGED-END
|
sl@0
|
118 |
|
sl@0
|
119 |
|
sl@0
|
120 |
// -----------------------------------------------------------------------
|
sl@0
|
121 |
};
|
sl@0
|
122 |
|
sl@0
|
123 |
#endif // __HINDIDEMO_CONTAINER_H__
|