|
1 /* |
|
2 * Copyright (c) 2004-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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CBASECAPABILITY_H |
|
20 #define CBASECAPABILITY_H |
|
21 |
|
22 #include <e32std.h> |
|
23 #include <e32base.h> |
|
24 |
|
25 // TYPE DEFINITIONS |
|
26 typedef TBuf<64> TCapabilityTitle; |
|
27 |
|
28 /** |
|
29 * |
|
30 * Capability base class, pure virtual, needs to be derived |
|
31 * |
|
32 */ |
|
33 class CBaseCapability |
|
34 : public CBase |
|
35 { |
|
36 public: // New methods |
|
37 |
|
38 virtual ~CBaseCapability() {}; |
|
39 |
|
40 /** |
|
41 * Creates text for the setting item list box |
|
42 * |
|
43 * @return Correctly formatted list box text |
|
44 */ |
|
45 virtual HBufC* ListBoxTextL() = 0; |
|
46 |
|
47 /** |
|
48 * Launches pop-up window to modify the values |
|
49 * |
|
50 * @return Did user change the value or not |
|
51 */ |
|
52 virtual TBool LaunchPopupListL() = 0; |
|
53 |
|
54 /** |
|
55 * Clones and returns copy of itself |
|
56 * |
|
57 * @return Cloned copy of the instance itself |
|
58 */ |
|
59 virtual CBaseCapability* CloneL() = 0; |
|
60 |
|
61 public: // Data |
|
62 |
|
63 // The index on the list from the top (0 = topmost) |
|
64 TBool iIndexOnList; |
|
65 |
|
66 // Title of this capability |
|
67 TCapabilityTitle iTitle; |
|
68 |
|
69 // UID of the capability |
|
70 TInt iUid; |
|
71 |
|
72 // Value |
|
73 TInt iValue; |
|
74 }; |
|
75 |
|
76 #endif // CBASECAPABILITY_H |
|
77 |
|
78 // End of File |