|
1 /* |
|
2 * Copyright (c) 2007 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: Custom command validation action class definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_VTUICMDCUSTOMVALIDATIONACTIONBASE_H |
|
20 #define C_VTUICMDCUSTOMVALIDATIONACTIONBASE_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 #include "cvtuicmdvalidationactionbase.h" |
|
25 |
|
26 /** |
|
27 * CVtUiCmdCustomValidationActionBase |
|
28 * |
|
29 * Custom command validation action base class. This class is an extension to |
|
30 * command validation action and defines new attribute Type ID that is used |
|
31 * for defining type of the custom validation action. |
|
32 * |
|
33 * @since S60 v3.2 |
|
34 */ |
|
35 NONSHARABLE_CLASS( CVtUiCmdCustomValidationActionBase ) |
|
36 : public CVtUiCmdValidationActionBase |
|
37 { |
|
38 |
|
39 public: // typedefs |
|
40 |
|
41 // Custom type id type definition. |
|
42 typedef TInt TCustomTypeId; |
|
43 |
|
44 public: |
|
45 |
|
46 /** |
|
47 * Returns custom type id. |
|
48 * @return Custom type id. |
|
49 */ |
|
50 TCustomTypeId CustomTypeId() const; |
|
51 |
|
52 protected: // new protected methods |
|
53 |
|
54 /** |
|
55 * C++ constructor. |
|
56 */ |
|
57 CVtUiCmdCustomValidationActionBase( TCustomTypeId aCustomTypeId ); |
|
58 |
|
59 private: // data |
|
60 |
|
61 // Custom type id. |
|
62 const TCustomTypeId iCustomTypeId; |
|
63 |
|
64 }; |
|
65 |
|
66 #endif // C_VTUICMDCUSTOMVALIDATIONACTIONBASE_H |