summaryrefslogtreecommitdiff
path: root/core/applets/vmemo/vmemo.cpp
Side-by-side diff
Diffstat (limited to 'core/applets/vmemo/vmemo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/vmemo/vmemo.cpp16
1 files changed, 14 insertions, 2 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>
@@ -203,2 +204,5 @@ VMemo::VMemo( QWidget *parent, const char *_name )
recording = FALSE;
+
+ t_timer = new QTimer( this );
+ connect( t_timer, SIGNAL( timeout() ), SLOT( timerBreak() ) );
@@ -455,2 +459,4 @@ void VMemo::record(void)
+ t_timer->start( 30 * 1000+1000, TRUE);
+
if(systemZaurus) {
@@ -460,3 +466,3 @@ void VMemo::record(void)
signed short sound[512], monoBuffer[512];
-
+
if(format==AFMT_S16_LE) {
@@ -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");
+}