|
1 /* |
|
2 * Copyright (c) 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 "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: Declaration of CDiskSpaceReservationPlugIn class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_DISK_SPACE_RESERVATION_PLUG_IN_H |
|
20 #define C_DISK_SPACE_RESERVATION_PLUG_IN_H |
|
21 |
|
22 #include <systemstartupextension.h> |
|
23 #include <shareddataclient.h> |
|
24 |
|
25 /** |
|
26 * System Startup Extension plug-in for making initial disk space reservation |
|
27 * on system boot time. |
|
28 * |
|
29 * @lib diskspacereservationplugin.lib |
|
30 * @since S60 3.2 |
|
31 */ |
|
32 NONSHARABLE_CLASS( CDiskSpaceReservationPlugIn ) |
|
33 : public CSystemStartupExtension |
|
34 { |
|
35 |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Two-phased constructor. |
|
40 * |
|
41 * @since S60 3.2 |
|
42 * |
|
43 * @param aConstructionParameters Parameters from the creating object. |
|
44 */ |
|
45 static CDiskSpaceReservationPlugIn* NewL( TAny* aConstructionParameters ); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 virtual ~CDiskSpaceReservationPlugIn(); |
|
51 |
|
52 /** |
|
53 * Do the initial disk space reservation. |
|
54 * |
|
55 * @since S60 3.2 |
|
56 * |
|
57 * @param aStatus The request status to complete after the task has been |
|
58 * finished. |
|
59 */ |
|
60 virtual void ExecuteL( TRequestStatus& aStatus, const TDesC& aParams ); |
|
61 |
|
62 /** |
|
63 * Cancel pending request. |
|
64 * |
|
65 * @since S60 3.2 |
|
66 */ |
|
67 virtual void Cancel(); |
|
68 |
|
69 private: |
|
70 |
|
71 /** |
|
72 * First phase constructor. |
|
73 * |
|
74 * @since S60 3.2 |
|
75 * |
|
76 * @param aConstructionParameters Parameters from the creating object. |
|
77 */ |
|
78 CDiskSpaceReservationPlugIn( TAny* aConstructionParameters ); |
|
79 |
|
80 /** |
|
81 * Second phase constructor. |
|
82 * |
|
83 * @since S60 3.2 |
|
84 */ |
|
85 void ConstructL(); |
|
86 |
|
87 private: |
|
88 |
|
89 /** Session with shared data server. */ |
|
90 RSharedDataClient iSharedData; |
|
91 |
|
92 }; |
|
93 |
|
94 #endif // C_DISK_SPACE_RESERVATION_PLUG_IN_H |