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 #ifndef IRQSYSTEMEVENTHANDLER_H |
|
18 #define IRQSYSTEMEVENTHANDLER_H |
|
19 |
|
20 #include <QObject> |
|
21 #include "irqsystemeventhandlerexport.h" |
|
22 |
|
23 class IRQSystemEventHandlerPrivate; |
|
24 |
|
25 class IRQSYSTEMEVENTHANDLER_DLL_EXPORT IRQSystemEventHandler : public QObject |
|
26 { |
|
27 Q_OBJECT |
|
28 |
|
29 public: |
|
30 |
|
31 IRQSystemEventHandler(); |
|
32 ~IRQSystemEventHandler(); |
|
33 |
|
34 //for disk monitor |
|
35 bool isBelowCriticalLevel(const qint64 aCriticalLevel = 0); |
|
36 qint64 diskCriticalLevel() const; |
|
37 //to cancel all the system events |
|
38 void cancel(); |
|
39 void start(); |
|
40 |
|
41 signals: |
|
42 |
|
43 void alarmStarted(); |
|
44 void alarmStopped(); |
|
45 void diskSpaceLowNotification(qint64 aCriticalLevel); |
|
46 |
|
47 private: |
|
48 |
|
49 IRQSystemEventHandlerPrivate * const d_ptr; |
|
50 |
|
51 Q_DISABLE_COPY(IRQSystemEventHandler) |
|
52 friend class IRQSystemEventHandlerPrivate; |
|
53 }; |
|
54 |
|
55 #endif // IRQSYSTEMEVENTHANDLER_H |