equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
18 #define CXUISELFTIMER_H |
18 #define CXUISELFTIMER_H |
19 |
19 |
20 #include <QObject> |
20 #include <QObject> |
21 #include <QTimer> |
21 #include <QTimer> |
22 #include <QSound> |
22 #include <QSound> |
|
23 #include <QVariant> |
23 |
24 |
24 class CxeSettings; |
25 class CxeSettings; |
25 class CxuiDocumentLoader; |
26 class CxuiDocumentLoader; |
26 class HbLabel; |
27 class HbLabel; |
27 class HbPushButton; |
28 class HbPushButton; |
47 public slots: |
48 public slots: |
48 void changeTimeOut(int seconds); |
49 void changeTimeOut(int seconds); |
49 void startTimer(); |
50 void startTimer(); |
50 void reset(bool update = true); |
51 void reset(bool update = true); |
51 void cancel(); |
52 void cancel(); |
|
53 void enableSound(long int uid, unsigned long int key, QVariant value); |
52 |
54 |
53 protected slots: |
55 protected slots: |
54 void timeout(); |
56 void timeout(); |
55 |
57 |
56 private: |
58 private: |
75 |
77 |
76 // settings, not own |
78 // settings, not own |
77 CxeSettings &mSettings; |
79 CxeSettings &mSettings; |
78 |
80 |
79 QSound mSound; |
81 QSound mSound; |
|
82 bool mUseSound; |
80 }; |
83 }; |
81 |
84 |
82 #endif // CXUISELFTIMER_H |
85 #endif // CXUISELFTIMER_H |