|
1 /* |
|
2 * Copyright (c) 2002 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: It provides Profile information. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPHCNTPROFILEENGINE_H |
|
20 #define CPHCNTPROFILEENGINE_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <MProfileEngine.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Profile interface. |
|
30 * |
|
31 * @lib PhoneCntFinder |
|
32 * @since 2.0 |
|
33 */ |
|
34 class CPhCntProfileEngine |
|
35 : public CBase |
|
36 { |
|
37 public: // New functions |
|
38 |
|
39 /** |
|
40 * Refresh contents of profile. |
|
41 */ |
|
42 virtual void RefreshL() = 0; |
|
43 |
|
44 /** |
|
45 * Checks if profile information has been |
|
46 * retrieved. |
|
47 * |
|
48 * @return ETrue if it is allowed to call |
|
49 * the Profile method. |
|
50 */ |
|
51 virtual TBool HasProfile() const = 0; |
|
52 |
|
53 /** |
|
54 * Returns active profile. It is valid |
|
55 * after RefreshL has succeeded. |
|
56 * |
|
57 * @return active profile information. |
|
58 */ |
|
59 virtual MProfile& Profile() = 0; |
|
60 |
|
61 /** |
|
62 * Sets active profile. It is valid |
|
63 * after RefreshL has succeeded. |
|
64 * |
|
65 * @param aProfileId Id of the profile to be set. |
|
66 */ |
|
67 virtual void SetActiveProfileL( |
|
68 const TInt aProfileId ) = 0; |
|
69 |
|
70 /** |
|
71 * Checks whether the given feature is supported by Profiles Engine. |
|
72 * @param aFeatureId the feature to be checked. |
|
73 * @return ETrue if the given feature is supported, EFalse otherwise. |
|
74 * @since Series60_2.8 |
|
75 */ |
|
76 virtual TBool IsFeatureSupported( |
|
77 TProfileFeatureId aFeatureId ) const = 0; |
|
78 }; |
|
79 |
|
80 #endif // CPHCNTPROFILEENGINE_H |
|
81 |
|
82 // End of File |