|
1 /* |
|
2 * Copyright (c) 2005 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: The proxy setting view |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef SIP_SETT_LIST_SIP_SRV_TAKE_OVER_CBA_KEY_PRESS |
|
21 #define SIP_SETT_LIST_SIP_SRV_TAKE_OVER_CBA_KEY_PRESS |
|
22 #include <coecntrl.h> |
|
23 |
|
24 class CSIPSettListSIPSrvTakeOverCBAKeyPress : public CCoeControl |
|
25 { |
|
26 public: // Constructors and destructor |
|
27 |
|
28 /** |
|
29 * Two-phased constructor. |
|
30 */ |
|
31 static CSIPSettListSIPSrvTakeOverCBAKeyPress * NewL(); |
|
32 |
|
33 /** |
|
34 * Two-phased constructor. Instance is placed on the cleanup stack |
|
35 * @param aHandler Profile handler for model |
|
36 */ |
|
37 static CSIPSettListSIPSrvTakeOverCBAKeyPress * NewLC(); |
|
38 |
|
39 /** |
|
40 * Destructor. |
|
41 */ |
|
42 virtual ~CSIPSettListSIPSrvTakeOverCBAKeyPress (); |
|
43 |
|
44 public: // Own functions |
|
45 |
|
46 /** |
|
47 * Returns information is right soft key pressed |
|
48 * @return Is right soft key pressed |
|
49 */ |
|
50 TBool BackCalled(); |
|
51 |
|
52 protected: // for CCoeControl |
|
53 |
|
54 /** |
|
55 * From CCoeControl, receives key events and passes them |
|
56 * to list box |
|
57 */ |
|
58 virtual TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType); |
|
59 |
|
60 private: |
|
61 |
|
62 /** |
|
63 * C++ default constructor. |
|
64 */ |
|
65 CSIPSettListSIPSrvTakeOverCBAKeyPress (); |
|
66 |
|
67 /** |
|
68 * By default Symbian 2nd phase constructor is private. |
|
69 */ |
|
70 void ConstructL(); |
|
71 |
|
72 private: // Data |
|
73 |
|
74 /** |
|
75 * Is right soft key pressed |
|
76 */ |
|
77 TBool iBackCalled; |
|
78 |
|
79 /** |
|
80 * For testing purposes |
|
81 */ |
|
82 friend class UT_CSIPSettListSIPSrvTakeOverCBAKeyPress; |
|
83 |
|
84 }; |
|
85 |
|
86 #endif // SIP_SETT_LIST_SIP_SRV_TAKE_OVER_CBA_KEY_PRESS |
|
87 |
|
88 // End of File |