|
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: Text setting page with a validation of the entered text |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef SIP_SETT_LIST_SIP_SRV_TEXT_SET_PAGE_H |
|
21 #define SIP_SETT_LIST_SIP_SRV_TEXT_SET_PAGE_H |
|
22 |
|
23 // INCLUDES |
|
24 |
|
25 #include <akntextsettingpage.h> |
|
26 #include <aknsettingpage.h> |
|
27 #include "tgssipvalidatorwrapper.h" |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * CSIPSettListSIPSrvTextSetPage page class |
|
33 * @since 3.0 |
|
34 * page class for SIP Server settings view |
|
35 */ |
|
36 class CSIPSettListSIPSrvTextSetPage : public CAknTextSettingPage |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * C++ default constructor. |
|
42 * @param aResourceID resource ID of the setting page |
|
43 * @param aCallBack Callback method that is used to validate input |
|
44 * @param aText Reference to text descriptor |
|
45 * @param aTextSettingPageFlags Flags (not used) |
|
46 */ |
|
47 CSIPSettListSIPSrvTextSetPage( |
|
48 TInt aResourceID, TGSSIPValidatorWrapper aValidator, |
|
49 TDes& aText, TInt aTextSettingPageFlags = 0 ); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 virtual ~CSIPSettListSIPSrvTextSetPage(); |
|
55 |
|
56 public: // Functions from base classes |
|
57 |
|
58 /** |
|
59 * From CAknTextSettingPage |
|
60 * Called to validate input before closing the page |
|
61 * @param aAccept ETrue = User pressed OK, else EFalse |
|
62 * @return ETrue = delete the page |
|
63 */ |
|
64 TBool OkToExitL( TBool aAccept ); |
|
65 |
|
66 protected: // New methods |
|
67 |
|
68 /** |
|
69 * Reads the error msg txt from resource file |
|
70 * @return buffer containing the text |
|
71 */ |
|
72 HBufC* ErrorMsgTxtLC(); |
|
73 |
|
74 private: // Data |
|
75 |
|
76 // Callback method for validating the input |
|
77 TGSSIPValidatorWrapper iValidator; |
|
78 |
|
79 // Resource ID for displaying correct error msg |
|
80 TInt iID; |
|
81 }; |
|
82 |
|
83 |
|
84 #endif // SIP_SETT_LIST_SIP_SRV_TEXT_SET_PAGE_H |
|
85 |
|
86 // End of File |