summaryrefslogtreecommitdiff
path: root/core/applets/vmemo/vmemo.cpp
Unidiff
Diffstat (limited to 'core/applets/vmemo/vmemo.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/applets/vmemo/vmemo.cpp22
1 files changed, 13 insertions, 9 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp
index 4c55dc7..22cb276 100644
--- a/core/applets/vmemo/vmemo.cpp
+++ b/core/applets/vmemo/vmemo.cpp
@@ -256,4 +256,6 @@ void VMemo::mousePressEvent( QMouseEvent *me )
256 */ 256 */
257 if (!systemZaurus && me != NULL) 257#if defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX)
258 if (!systemZaurus )
258 return; 259 return;
260#endif
259 261
@@ -267,2 +269,3 @@ void VMemo::mousePressEvent( QMouseEvent *me )
267// } else { 269// } else {
270 if (!systemZaurus )
268 QSound::play(Resource::findSound("vmemob")); 271 QSound::play(Resource::findSound("vmemob"));
@@ -285,3 +288,4 @@ void VMemo::mousePressEvent( QMouseEvent *me )
285 cfg.setGroup( "System" ); 288 cfg.setGroup( "System" );
286 fileName = cfg.readEntry("RecLocation",QPEApplication::documentDir() ); 289 fName = QPEApplication::documentDir() ;
290 fileName = cfg.readEntry("RecLocation", fName);
287 291
@@ -290,8 +294,6 @@ void VMemo::mousePressEvent( QMouseEvent *me )
290 if(s) 294 if(s)
291 fileName=fileName.right(fileName.length()-s-2)+"/"; 295 fileName=fileName.right(fileName.length()-s-2);
292 296 qDebug("filename will be "+fileName);
293// if( !fileName.right(1).find('/') == -1) 297 if( !fileName.right(1).find('/') == -1)
294// fileName+="/audio/"; 298 fileName+="/";
295// else
296// fileName+="audio/";
297 299
@@ -303,2 +305,3 @@ void VMemo::mousePressEvent( QMouseEvent *me )
303 fName = "vm_"+ dt.toString()+ ".wav"; 305 fName = "vm_"+ dt.toString()+ ".wav";
306
304 fileName+=fName; 307 fileName+=fName;
@@ -365,3 +368,2 @@ int VMemo::openDSP()
365 perror("open(\"/dev/dsp\")"); 368 perror("open(\"/dev/dsp\")");
366
367 errorMsg="open(\"/dev/dsp\")\n "+(QString)strerror(errno); 369 errorMsg="open(\"/dev/dsp\")\n "+(QString)strerror(errno);
@@ -516,4 +518,6 @@ void VMemo::record(void)
516 ::close(dsp); 518 ::close(dsp);
519 fileName = fileName.left(fileName.length()-4);
517 if(useAlerts) 520 if(useAlerts)
518 QMessageBox::message("Vmemo"," Done recording\n"+ fileName); 521 QMessageBox::message("Vmemo"," Done recording\n"+ fileName);
522 qDebug("done recording "+fileName);
519 QSound::play(Resource::findSound("vmemoe")); 523 QSound::play(Resource::findSound("vmemoe"));