|
1 /* |
|
2 * Copyright (c) 2005-2006 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 the License "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: describes system information utilities. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __SYSINFOUTILS_H__ |
|
20 #define __SYSINFOUTILS_H__ |
|
21 |
|
22 |
|
23 /** |
|
24 * @ref RPhoneInstance singleton pattern used to maintain one instance RMoblePhone |
|
25 * resource shared by other implementation class in sysinfo. |
|
26 * |
|
27 * @lib sysinfoservice.lib |
|
28 * @since S60 3.2 |
|
29 */ |
|
30 class RPhoneInstance |
|
31 { |
|
32 public: |
|
33 /** |
|
34 * Connects to the RTelServer and the RMobilePhone classes. |
|
35 * |
|
36 * @return @p KErrNone if the initialization succeeded, otherwise connetion |
|
37 * ErrorCode. |
|
38 */ |
|
39 static TInt Connect( RTelServer& aTelServer,RMobilePhone& aMobilePhone ); |
|
40 |
|
41 }; |
|
42 |
|
43 /** |
|
44 * @ref RepositoryUtil static interface class to access modify value of |
|
45 * central repository UID,Keys. |
|
46 * |
|
47 * @lib sysinfoservice.lib |
|
48 * @since S60 3.2 |
|
49 */ |
|
50 class RepositoryUtil |
|
51 { |
|
52 public: |
|
53 /** |
|
54 * Modifies interger value of an Repository key. |
|
55 */ |
|
56 static void SetRepositoryKeyL(const TUid& aUid, const TUint32& aKey, |
|
57 const TInt& aValue); |
|
58 |
|
59 /** |
|
60 * Modifies Descriptor value of an Repository key. |
|
61 */ |
|
62 static void SetRepositoryKeyL(const TUid& aUid, const TUint32& aKey, |
|
63 const TDesC& aValue); |
|
64 |
|
65 /** |
|
66 * reads interger value of an Repository key. On return aValue consists |
|
67 * of Key value. |
|
68 */ |
|
69 static void GetRepositoryKeyL(const TUid& aUid, const TUint32& aKey, |
|
70 TInt& aValue); |
|
71 |
|
72 /** |
|
73 * reads descriptor value of an Repository key. On return aValue consists |
|
74 * of descriptor. |
|
75 */ |
|
76 static void GetRepositoryKeyL(const TUid& aUid, const TUint32& aKey, |
|
77 TDes& aValue); |
|
78 }; |
|
79 |
|
80 #endif __SYSINFO_UTILS_H__ |