|
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: Interface to access control groups. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MAMMSCONTROLLABLE_H |
|
20 #define MAMMSCONTROLLABLE_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class MAMMSControlGroup; |
|
27 |
|
28 // CLASS DECLARATION |
|
29 /** |
|
30 * |
|
31 * Interface to access control groups. |
|
32 * |
|
33 * @since 3.0 |
|
34 */ |
|
35 NONSHARABLE_CLASS(MAMMSControllable) |
|
36 { |
|
37 public: |
|
38 /** |
|
39 * Finds and returns control group specified with a name. |
|
40 * @since 3.0 |
|
41 * @param aClassName Name of the control group. |
|
42 * @return Control group or NULL if group can't be found. |
|
43 */ |
|
44 virtual MAMMSControlGroup* Find(const TDesC& aClassName) = 0; |
|
45 |
|
46 /** |
|
47 * Returns control group at the specified index. |
|
48 * @since 3.0 |
|
49 * @param aIndex Group index. |
|
50 * @return A control group at specified index. |
|
51 */ |
|
52 virtual MAMMSControlGroup* At(TInt aIndex) = 0; |
|
53 |
|
54 /** |
|
55 * Return number of control groups. |
|
56 * @since 3.0 |
|
57 * @return Number of control groups. |
|
58 */ |
|
59 virtual TInt Count() = 0; |
|
60 protected: |
|
61 |
|
62 /** |
|
63 * Protected destructor not to allow delete through this interface. |
|
64 */ |
|
65 virtual ~MAMMSControllable() {}; |
|
66 }; |
|
67 |
|
68 #endif // MAMMSCONTROLLABLE_H |