|
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 item with a validation of the entered text |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef SIP_SETT_LIST_SIP_SRV_TEXT_SET_ITEM_H |
|
21 #define SIP_SETT_LIST_SIP_SRV_TEXT_SET_ITEM_H |
|
22 |
|
23 // INCLUDES |
|
24 |
|
25 #include <aknsettingitemlist.h> |
|
26 |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * CSIPSettListSIPSrvTextSetItem item class |
|
32 * @since 3.0 |
|
33 * item class for SIP Server settings view |
|
34 */ |
|
35 class CSIPSettListSIPSrvTextSetItem : public CAknTextSettingItem |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 |
|
39 /** |
|
40 * C++ default constructor. No two-phased construction due |
|
41 * the nature of this object |
|
42 * @param aIdentifier ID of this instance |
|
43 * @param aText Default text |
|
44 * @param aFunction Valitdation function |
|
45 */ |
|
46 CSIPSettListSIPSrvTextSetItem( |
|
47 TInt aIdentifier, TDes& aText, TBool (*aFunctionL)( TAny* aPtr ) ); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 virtual ~CSIPSettListSIPSrvTextSetItem(); |
|
53 |
|
54 public: // Functions from base classes |
|
55 |
|
56 /** |
|
57 * From CAknSettingItem |
|
58 * Called when user wants to edit the text |
|
59 * @param aCalledFromMenu Called from menu or not (doesn't matter, tho) |
|
60 */ |
|
61 void EditItemL( TBool aCalledFromMenu ); |
|
62 |
|
63 protected: // Data |
|
64 |
|
65 TBool (*iFunctionL)( TAny* aPtr ); |
|
66 }; |
|
67 |
|
68 #endif // SIP_SETT_LIST_SIP_SRV_TEXT_SET_ITEM_H |
|
69 |
|
70 // End of File |