|
1 /* |
|
2 * Copyright (c) 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: PSM CenRep storage class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef PSMCENREPSTORAGE_H |
|
20 #define PSMCENREPSTORAGE_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include "psmstorage.h" |
|
24 |
|
25 /** |
|
26 * PSM CenRep Storage class |
|
27 * |
|
28 * Handles Central Repository (aka. passive configurations ) changes during |
|
29 * power save mode change. |
|
30 * |
|
31 * @since S60 5.0 |
|
32 */ |
|
33 class CPsmCenRepStorage : public CPsmStorage |
|
34 { |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Creates a new PSM storage. |
|
39 * |
|
40 * @return A pointer to the created object. |
|
41 */ |
|
42 static CPsmCenRepStorage* NewL( TPsmsrvMode iMode, RFs& aFile ); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 virtual ~CPsmCenRepStorage(); |
|
48 |
|
49 /** |
|
50 * Starts parsing config file. This function blocks until file is parsed |
|
51 */ |
|
52 void InitStorageL( const TUint32 aStorageUid ); |
|
53 |
|
54 /** |
|
55 * Lists passive configuration UIDs |
|
56 */ |
|
57 void ListPassiveConfigs( RPassiveConfigList& aList ); |
|
58 |
|
59 /** |
|
60 * Lists set items of a specific passive configuration |
|
61 */ |
|
62 void ListPassiveConfigSetL( RConfigInfoArray& aPsmConfigArray ); |
|
63 |
|
64 private: |
|
65 |
|
66 /** |
|
67 * C++ constructor. |
|
68 */ |
|
69 CPsmCenRepStorage( TPsmsrvMode iMode, RFs& aFile ); |
|
70 |
|
71 /** |
|
72 * By default Symbian 2nd phase constructor is private. |
|
73 */ |
|
74 void ConstructL(); |
|
75 |
|
76 /** |
|
77 * Initializes root elements when storage file has been parsed |
|
78 */ |
|
79 void InitRootElementsL(); |
|
80 |
|
81 }; |
|
82 |
|
83 #endif // PSMCENREPSTORAGE_H |