|
1 /* |
|
2 * Copyright (c) 2005 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 for CMMCScBkupStateFactory |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __CMMCSCBKUPSTATEFACTORY_H__ |
|
20 #define __CMMCSCBKUPSTATEFACTORY_H__ |
|
21 |
|
22 // User includes |
|
23 #include "MMCScBkupStateIds.h" |
|
24 #include "MMCScBkupOperations.h" |
|
25 |
|
26 // Classes referenced |
|
27 class CMMCScBkupState; |
|
28 class MMMCScBkupDriver; |
|
29 |
|
30 // Type definitions |
|
31 typedef RPointerArray<CMMCScBkupState> RMMCScBkupStateArray; |
|
32 |
|
33 |
|
34 |
|
35 /** |
|
36 * |
|
37 * |
|
38 * @since 3.0 |
|
39 */ |
|
40 class CMMCScBkupStateFactory : public CBase |
|
41 { |
|
42 public: |
|
43 /** |
|
44 * |
|
45 */ |
|
46 static CMMCScBkupStateFactory* FactoryByOperationTypeLC( TMMCScBkupOperationType aOperationType ); |
|
47 |
|
48 protected: |
|
49 |
|
50 /** |
|
51 * |
|
52 */ |
|
53 CMMCScBkupStateFactory(); |
|
54 |
|
55 public: // From CMMCScBkupStateFactory |
|
56 |
|
57 /** |
|
58 * |
|
59 */ |
|
60 virtual CMMCScBkupState* GetStateLC(TMMCScBkupStateId aCurrentState, MMMCScBkupDriver& aDriver) = 0; |
|
61 }; |
|
62 |
|
63 |
|
64 |
|
65 /** |
|
66 * |
|
67 * |
|
68 * @since 3.0 |
|
69 */ |
|
70 NONSHARABLE_CLASS(CMMCScBkupStateFactoryBackup) : public CMMCScBkupStateFactory |
|
71 { |
|
72 public: |
|
73 static CMMCScBkupStateFactoryBackup* NewL(); |
|
74 |
|
75 private: |
|
76 CMMCScBkupStateFactoryBackup(); |
|
77 |
|
78 public: // From CMMCScBkupStateFactory |
|
79 CMMCScBkupState* GetStateLC(TMMCScBkupStateId aRequiredType, MMMCScBkupDriver& aDriver); |
|
80 }; |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 /** |
|
86 * |
|
87 * |
|
88 * @since 3.0 |
|
89 */ |
|
90 NONSHARABLE_CLASS(CMMCScBkupStateFactoryRestore) : public CMMCScBkupStateFactory |
|
91 { |
|
92 public: |
|
93 static CMMCScBkupStateFactoryRestore* NewL(); |
|
94 |
|
95 private: |
|
96 CMMCScBkupStateFactoryRestore(); |
|
97 |
|
98 public: // From CMMCScBkupStateFactory |
|
99 CMMCScBkupState* GetStateLC(TMMCScBkupStateId aRequiredType, MMMCScBkupDriver& aDriver); |
|
100 }; |
|
101 |
|
102 |
|
103 |
|
104 |
|
105 #endif // __CMMCSCBKUPSTATEFACTORY_H__ |
|
106 |
|
107 //End of File |