|
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: SIP Settings view controller |
|
15 * |
|
16 */ |
|
17 #ifndef SIP_SETT_INTEGER_SETPAGE_H |
|
18 #define SIP_SETT_INTEGER_SETPAGE_H |
|
19 |
|
20 #include <akntextsettingpage.h> |
|
21 #include <aknsettingpage.h> |
|
22 #include "tgssipvalidatorwrapper.h" |
|
23 #include "tgssipserverdata.h" |
|
24 |
|
25 // CLASS DECLARATION |
|
26 |
|
27 /** |
|
28 * CSIPSettIntegerSetPage page class |
|
29 * |
|
30 * page class for SIP Server settings view |
|
31 */ |
|
32 class CSIPSettIntegerSetPage : public CAknIntegerSettingPage |
|
33 { |
|
34 public: // Constructors and destructor |
|
35 |
|
36 /** |
|
37 * C++ default constructor. |
|
38 * @param aResourceID resource ID of the setting page |
|
39 * @param aInteger , SetPage reference integer value; |
|
40 * @param aTextSettingPageFlags Flags (not used) |
|
41 */ |
|
42 CSIPSettIntegerSetPage( |
|
43 TInt aResourceID, |
|
44 TInt& aInteger, |
|
45 TInt aTextSettingPageFlags ); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 virtual ~CSIPSettIntegerSetPage(); |
|
51 |
|
52 public: // Functions from base classes |
|
53 |
|
54 /** |
|
55 * From CAknTextSettingPage |
|
56 * Called to validate input before closing the page |
|
57 * @param aAccept ETrue = User pressed OK, else EFalse |
|
58 * @return ETrue = delete the page |
|
59 */ |
|
60 TBool OkToExitL( TBool aAccept ); |
|
61 // Called to the Setpage initialize complete |
|
62 |
|
63 void DynamicInitL (); |
|
64 |
|
65 |
|
66 |
|
67 private: // Data |
|
68 TInt iValue; |
|
69 TBuf<KMaxServerPortLength> iNULLString; |
|
70 |
|
71 }; |
|
72 |
|
73 |
|
74 #endif /* SIPSETTINTEGERSETPAGE_H_ */ |