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 CXEDISKMONITOR_H |
|
19 #define CXEDISKMONITOR_H |
|
20 |
|
21 #include <QObject> |
|
22 |
|
23 class CxeSettings; |
|
24 class CxeDiskMonitorPrivate; |
|
25 |
|
26 class CxeDiskMonitor : public QObject |
|
27 { |
|
28 Q_OBJECT |
|
29 |
|
30 public: |
|
31 explicit CxeDiskMonitor(CxeSettings &settings); |
|
32 ~CxeDiskMonitor(); |
|
33 |
|
34 signals: |
|
35 void diskSpaceLow(); |
|
36 void diskSpaceChanged(); |
|
37 |
|
38 public slots: |
|
39 void setLowWarningLevel(qint64 bytes); |
|
40 void start(); |
|
41 void stop(); |
|
42 |
|
43 public: |
|
44 bool isMonitoring() const; |
|
45 qint64 free(bool cached = true) const; |
|
46 |
|
47 private: |
|
48 CxeDiskMonitorPrivate *p; |
|
49 }; |
|
50 |
|
51 #endif // CXEDISKMONITORPRIVATE_H |
|