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 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef FMOPERATIONREMOVE_H |
|
19 #define FMOPERATIONREMOVE_H |
|
20 #include <QObject> |
|
21 |
|
22 #include "fmoperationbase.h" |
|
23 |
|
24 class FmOperationRemove : public FmOperationBase |
|
25 { |
|
26 Q_OBJECT |
|
27 |
|
28 public: |
|
29 explicit FmOperationRemove( QObject *parent, const QStringList &pathList ); |
|
30 virtual ~FmOperationRemove(); |
|
31 |
|
32 QStringList pathList(); |
|
33 void start( volatile bool *isStopped ); |
|
34 |
|
35 signals: |
|
36 void driveSpaceChanged(); |
|
37 |
|
38 private: |
|
39 int remove( const QString &fileName ); |
|
40 int recursiveRemoveDir( const QString &path ); |
|
41 void IncreaseProgressOnce(); |
|
42 |
|
43 private: |
|
44 QStringList mPathList; |
|
45 |
|
46 volatile bool *mStop; |
|
47 QString mErrString; |
|
48 |
|
49 quint64 mTotalCount; |
|
50 quint64 mRemovedCount; |
|
51 int mTotalSteps; |
|
52 int mCurrentStep; |
|
53 }; |
|
54 |
|
55 #endif |
|