summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/applets/vmemo/vmemo.cpp14
-rw-r--r--core/applets/vmemo/vmemo.h4
2 files changed, 17 insertions, 1 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp
index cfa07b4..63ee0b8 100644
--- a/core/applets/vmemo/vmemo.cpp
+++ b/core/applets/vmemo/vmemo.cpp
@@ -29,2 +29,3 @@
#include <errno.h>
+#include <qtimer.h>
@@ -204,2 +205,5 @@ VMemo::VMemo( QWidget *parent, const char *_name )
+ t_timer = new QTimer( this );
+ connect( t_timer, SIGNAL( timeout() ), SLOT( timerBreak() ) );
+
struct utsname name; /* check for embedix kernel running on the zaurus*/
@@ -455,2 +459,4 @@ void VMemo::record(void)
+ t_timer->start( 30 * 1000+1000, TRUE);
+
if(systemZaurus) {
@@ -470,3 +476,2 @@ void VMemo::record(void)
- // if(systemZaurus) {
for (int i = 0; i < result; i++) { //since Z is mono do normally
@@ -613 +618,8 @@ int VMemo::setToggleButton(int tog) {
}
+
+void VMemo::timerBreak() {
+ //stop
+ recording=false;
+
+ QMessageBox::message("Vmemo","Vmemo recording has \ntimed out");
+}
diff --git a/core/applets/vmemo/vmemo.h b/core/applets/vmemo/vmemo.h
index b33ab55..51ace35 100644
--- a/core/applets/vmemo/vmemo.h
+++ b/core/applets/vmemo/vmemo.h
@@ -26,2 +26,3 @@
#include <qlabel.h>
+#include <qtimer.h>
@@ -36,2 +37,4 @@ public:
QLabel* msgLabel;
+ QTimer *t_timer;
+
public slots:
@@ -43,2 +46,3 @@ public slots:
void stopRecording();
+ void timerBreak();
private: