equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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 * |
|
15 * Description: |
|
16 * The header file of service utils handler |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef FMSERVICEUTILSHANDLER_H |
|
21 #define FMSERVICEUTILSHANDLER_H |
|
22 |
|
23 #include <e32def.h> |
|
24 #include <e32cmn.h> |
|
25 #include <QString> |
|
26 |
|
27 |
|
28 // INCLUDES |
|
29 #include <e32base.h> |
|
30 #include <f32file.h> |
|
31 |
|
32 |
|
33 // FORWARD DECLARATIONS |
|
34 class CBaBackupSessionWrapper; |
|
35 |
|
36 /*! |
|
37 \class CFmServiceUtilsHandler |
|
38 \brief The class CFmServiceUtilsHandler provide implement of service utils APIs |
|
39 */ |
|
40 NONSHARABLE_CLASS(CFmServiceUtilsHandler) : |
|
41 public CActive |
|
42 { |
|
43 |
|
44 public: |
|
45 static CFmServiceUtilsHandler* NewL(); |
|
46 virtual ~CFmServiceUtilsHandler(); |
|
47 |
|
48 public: // New methods |
|
49 void CloseAppsL(); |
|
50 void RestartAppsL(); |
|
51 |
|
52 private: // From CActive |
|
53 void DoCancel(); |
|
54 void RunL(); |
|
55 TInt RunError( TInt aError ); |
|
56 |
|
57 private: |
|
58 |
|
59 CFmServiceUtilsHandler(); |
|
60 void ConstructL(); |
|
61 void StartWait(); |
|
62 |
|
63 private: // Data |
|
64 /** |
|
65 * Last process error |
|
66 */ |
|
67 TInt iLastError; |
|
68 |
|
69 /** |
|
70 * For closing and restarting open files while formatting |
|
71 */ |
|
72 CBaBackupSessionWrapper* iBSWrapper; |
|
73 |
|
74 /** |
|
75 * Target drive of the process |
|
76 */ |
|
77 TInt iDrive; |
|
78 |
|
79 /** |
|
80 * Wait is used to change asynchronous function to synchronous function |
|
81 */ |
|
82 CActiveSchedulerWait iWait; |
|
83 }; |
|
84 |
|
85 #endif |
|
86 |
|
87 // End of File |