|
1 /* |
|
2 * Copyright (c) 2003-2004 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 /** |
|
20 * |
|
21 * @file MMIDletSuiteUserPreferences.h |
|
22 * |
|
23 * @internalComponent |
|
24 * |
|
25 */ |
|
26 |
|
27 #ifndef MMIDLETSUITEUSERPREFERENCES_H |
|
28 #define MMIDLETSUITEUSERPREFERENCES_H |
|
29 |
|
30 #include <e32std.h> |
|
31 |
|
32 namespace MIDP |
|
33 { |
|
34 class MSecurityPreferences; |
|
35 |
|
36 /** |
|
37 * |
|
38 * An abstract operational interface to user preferences for an |
|
39 * individual MIDlet suite. |
|
40 * |
|
41 */ |
|
42 |
|
43 class MMIDletSuiteUserPreferences |
|
44 { |
|
45 public: |
|
46 |
|
47 virtual ~MMIDletSuiteUserPreferences() = 0; |
|
48 |
|
49 /** |
|
50 * |
|
51 * Returns the id of the MIDlet suite, |
|
52 * |
|
53 */ |
|
54 |
|
55 virtual TUint32 Id(void) const = 0; |
|
56 |
|
57 /** |
|
58 * |
|
59 * Returns the named property of the MIDlet suite. |
|
60 * |
|
61 * @param aName the name of the property |
|
62 * |
|
63 * @param aValue where to 'place' the value of the property if found. |
|
64 * |
|
65 * @return KErrNone if the named property is found, KErrNotFound otherwise. |
|
66 * |
|
67 */ |
|
68 |
|
69 virtual TInt PropertyL(const TDesC& aName, TPtrC& aValue) const = 0; |
|
70 |
|
71 /** |
|
72 * |
|
73 * Returns the user's security preferences for the MIDlet suite. |
|
74 * |
|
75 */ |
|
76 |
|
77 virtual MSecurityPreferences& SecurityPreferencesL(void) = 0; |
|
78 }; |
|
79 |
|
80 inline MMIDletSuiteUserPreferences::~MMIDletSuiteUserPreferences() |
|
81 { |
|
82 } |
|
83 |
|
84 } // end of namespace MIDP |
|
85 |
|
86 #endif // MMIDLETSUITEUSERPREFERENCES_H |