summaryrefslogtreecommitdiff
path: root/core
authorllornkcor <llornkcor>2002-06-23 17:17:08 (UTC)
committer llornkcor <llornkcor>2002-06-23 17:17:08 (UTC)
commit7c22b9cbf92650c432a84537f4b9c3d810e7dc75 (patch) (unidiff)
tree61525d12126e87cbce8135d2717c98340a7571e3 /core
parent3165f1b279a7a3a863decf06013c6275466092e5 (diff)
downloadopie-7c22b9cbf92650c432a84537f4b9c3d810e7dc75.zip
opie-7c22b9cbf92650c432a84537f4b9c3d810e7dc75.tar.gz
opie-7c22b9cbf92650c432a84537f4b9c3d810e7dc75.tar.bz2
quick fix for ongoing recording
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/vmemo/vmemo.cpp16
-rw-r--r--core/applets/vmemo/vmemo.h4
2 files changed, 18 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 @@
29#include <errno.h> 29#include <errno.h>
30#include <qtimer.h>
30 31
@@ -203,2 +204,5 @@ VMemo::VMemo( QWidget *parent, const char *_name )
203 recording = FALSE; 204 recording = FALSE;
205
206 t_timer = new QTimer( this );
207 connect( t_timer, SIGNAL( timeout() ), SLOT( timerBreak() ) );
204 208
@@ -455,2 +459,4 @@ void VMemo::record(void)
455 459
460 t_timer->start( 30 * 1000+1000, TRUE);
461
456 if(systemZaurus) { 462 if(systemZaurus) {
@@ -460,3 +466,3 @@ void VMemo::record(void)
460 signed short sound[512], monoBuffer[512]; 466 signed short sound[512], monoBuffer[512];
461 467
462 if(format==AFMT_S16_LE) { 468 if(format==AFMT_S16_LE) {
@@ -470,3 +476,2 @@ void VMemo::record(void)
470 476
471 // if(systemZaurus) {
472 for (int i = 0; i < result; i++) { //since Z is mono do normally 477 for (int i = 0; i < result; i++) { //since Z is mono do normally
@@ -613 +618,8 @@ int VMemo::setToggleButton(int tog) {
613} 618}
619
620void VMemo::timerBreak() {
621 //stop
622 recording=false;
623
624 QMessageBox::message("Vmemo","Vmemo recording has \ntimed out");
625}
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 @@
26#include <qlabel.h> 26#include <qlabel.h>
27#include <qtimer.h>
27 28
@@ -36,2 +37,4 @@ public:
36 QLabel* msgLabel; 37 QLabel* msgLabel;
38 QTimer *t_timer;
39
37public slots: 40public slots:
@@ -43,2 +46,3 @@ public slots:
43 void stopRecording(); 46 void stopRecording();
47 void timerBreak();
44private: 48private: