camerauis/cameraxui/cxui/inc/cxuiselftimer.h
changeset 43 0e652f8f1fbd
parent 28 3075d9b614e6
--- a/camerauis/cameraxui/cxui/inc/cxuiselftimer.h	Thu May 13 21:30:19 2010 +0300
+++ b/camerauis/cameraxui/cxui/inc/cxuiselftimer.h	Thu Jul 15 01:55:05 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
@@ -19,6 +19,8 @@
 
 #include <QObject>
 #include <QTimer>
+#include <QSound>
+#include <QVariant>
 
 class CxeSettings;
 class CxuiDocumentLoader;
@@ -38,6 +40,7 @@
     bool isEnabled();
     bool isOngoing();
 
+    int getTimeout() const;
 signals:
     void timerFinished();
     void cancelled();
@@ -45,17 +48,18 @@
 public slots:
     void changeTimeOut(int seconds);
     void startTimer();
-    void reset();
+    void reset(bool update = true);
     void cancel();
+    void enableSound(long int uid, unsigned long int key, QVariant value);
 
 protected slots:
     void timeout();
 
 private:
-    void reset(bool update);
     void updateWidgets();
     void showWidgets();
     void hideWidgets();
+    void playSound();
 
 private:
     Q_DISABLE_COPY(CxuiSelfTimer)
@@ -74,6 +78,8 @@
     // settings, not own
     CxeSettings &mSettings;
 
+    QSound mSound;
+    bool mUseSound;
 };
 
 #endif // CXUISELFTIMER_H