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 CXEDISKMONITORPRIVATE_H |
|
19 #define CXEDISKMONITORPRIVATE_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <QTimer> |
|
23 #ifdef Q_OS_SYMBIAN |
|
24 #include <f32file.h> |
|
25 #endif // Q_OS_SYMBIAN |
|
26 |
|
27 class CxeSettings; |
|
28 |
|
29 class CxeDiskMonitorPrivate : public QObject |
|
30 { |
|
31 Q_OBJECT |
|
32 |
|
33 private: |
|
34 explicit CxeDiskMonitorPrivate(CxeSettings &settings); |
|
35 ~CxeDiskMonitorPrivate(); |
|
36 |
|
37 signals: |
|
38 void diskSpaceLow(); |
|
39 void diskSpaceChanged(); |
|
40 |
|
41 private slots: |
|
42 void checkSpace(); |
|
43 |
|
44 private: |
|
45 void setLowWarningLevel(qint64 bytes); |
|
46 void start(); |
|
47 void stop(); |
|
48 bool isMonitoring() const; |
|
49 qint64 free(bool cached = true) const; |
|
50 |
|
51 private: |
|
52 CxeSettings &mSettings; |
|
53 QTimer mTimer; |
|
54 #ifdef Q_OS_SYMBIAN |
|
55 RFs& mFs; |
|
56 int mCameraDrive; |
|
57 #endif // Q_OS_SYMBIAN |
|
58 qint64 mTriggerLevelBytes; |
|
59 qint64 mLatestFreeBytes; |
|
60 |
|
61 friend class CxeDiskMonitor; |
|
62 }; |
|
63 |
|
64 |
|
65 #endif // CXEDISKMONITORPRIVATE_H |
|