|
1 /* |
|
2 * Copyright (c) 2002-2009 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: This file contains the header file of the CStartupTask |
|
15 * class. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef STARTUPTASK_H |
|
21 #define STARTUPTASK_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <SWInstTask.h> |
|
26 #include "StartupItem.h" |
|
27 |
|
28 class RDscStore; |
|
29 |
|
30 namespace SwiUI |
|
31 { |
|
32 |
|
33 /** |
|
34 * Base abstract class for startup list operations. |
|
35 * |
|
36 * @since 3.0 |
|
37 */ |
|
38 class CStartupTask : public CTask |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 virtual ~CStartupTask(); |
|
46 |
|
47 public: // Functions from base classes |
|
48 |
|
49 /** |
|
50 * From CTask, Adds a parameter to the task. |
|
51 * @since 3.0 |
|
52 * @param aParam - Packaged paramter to set. |
|
53 * @param aIndex - Index of the parameter. |
|
54 */ |
|
55 void SetParameterL( const TDesC8& aParam, TInt aIndex ); |
|
56 |
|
57 protected: // New functions |
|
58 |
|
59 /** |
|
60 * Constructor. |
|
61 */ |
|
62 CStartupTask(); |
|
63 |
|
64 /** |
|
65 * Helper function to create RDscStore when needed. |
|
66 */ |
|
67 static void CreateIfNotExistL( RDscStore& aDsc ); |
|
68 |
|
69 protected: // Functions from base classes. |
|
70 |
|
71 /** |
|
72 * From CTask, Externalizes the task. |
|
73 * @since 3.0 |
|
74 * @param aStream - The stream where to externalize. |
|
75 */ |
|
76 void DoExternalizeL( RWriteStream& aStream ) const; |
|
77 |
|
78 /** |
|
79 * From CTask, Internalizes the task. |
|
80 * @since 3.0 |
|
81 * @param aStream - The stream where to internalize. |
|
82 */ |
|
83 void DoInternalizeL( RReadStream & aStream ); |
|
84 |
|
85 protected: // Data |
|
86 |
|
87 RPointerArray<CStartupItem> iItems; |
|
88 }; |
|
89 } |
|
90 |
|
91 #endif // STARTUPTASK_H |
|
92 |
|
93 // End of File |