|
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 CMMCScBkupStateGetDataOwnerStatuses |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __CMMCSCBKUPSTATEGETDATAOWNERSTATUSES_H__ |
|
20 #define __CMMCSCBKUPSTATEGETDATAOWNERSTATUSES_H__ |
|
21 |
|
22 // User includes |
|
23 #include "CMMCScBkupState.h" |
|
24 |
|
25 |
|
26 |
|
27 /** |
|
28 * |
|
29 * |
|
30 * @since 3.0 |
|
31 */ |
|
32 NONSHARABLE_CLASS(CMMCScBkupStateGetDataOwnerStatuses) : public CMMCScBkupState |
|
33 { |
|
34 public: |
|
35 |
|
36 /** |
|
37 * Static constructor |
|
38 */ |
|
39 static CMMCScBkupStateGetDataOwnerStatuses* NewL( MMMCScBkupDriver& aDriver ); |
|
40 |
|
41 /** |
|
42 * C++ destructor |
|
43 */ |
|
44 ~CMMCScBkupStateGetDataOwnerStatuses( ); |
|
45 |
|
46 private: |
|
47 |
|
48 /** |
|
49 * C++ default constructor |
|
50 */ |
|
51 CMMCScBkupStateGetDataOwnerStatuses( MMMCScBkupDriver& aDriver ); |
|
52 |
|
53 public: // From CMMCScBkupState |
|
54 TMMCScBkupStateId StateId() const; |
|
55 TMMCScBkupStateId NextStateId() const; |
|
56 TStateExecution CategorySpecific() const { return EStatePerCategory; } |
|
57 |
|
58 private: // From CMMCScBkupState |
|
59 void PerformStateInitL(); |
|
60 void PerformAsynchronousStateStepL(); |
|
61 |
|
62 private: // Internal state enumeration |
|
63 |
|
64 /** |
|
65 * |
|
66 */ |
|
67 enum TState |
|
68 { |
|
69 EPrearingQuery = 0, |
|
70 EGettingStatus, |
|
71 EProcessingResults |
|
72 }; |
|
73 |
|
74 private: // Internal methods |
|
75 inline TState State() const { return iState; } |
|
76 inline void SetState(TState aState) { iState = aState; } |
|
77 // |
|
78 void PrepareQueryL(); |
|
79 void ProcessStatusResultsL(); |
|
80 |
|
81 private: // Member data |
|
82 |
|
83 // |
|
84 RSIDStatusArray iStatusArray; |
|
85 // |
|
86 TState iState; |
|
87 }; |
|
88 |
|
89 |
|
90 |
|
91 |
|
92 #endif // __CMMCSCBKUPSTATEGETDATAOWNERSTATUSES_H__ |
|
93 |
|
94 //End of File |