-rw-r--r-- | core/applets/vmemo/vmemo.cpp | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp index 7dd5b4b..622b1df 100644 --- a/core/applets/vmemo/vmemo.cpp +++ b/core/applets/vmemo/vmemo.cpp @@ -14,2 +14,6 @@ +/* OPIE */ +#include <opie2/odebug.h> +using namespace Opie::Core; + extern "C" { @@ -209,3 +213,3 @@ VMemo::VMemo( QWidget *parent, const char *_name ) - qDebug("toggleKey %d", toggleKey); + odebug << "toggleKey " << toggleKey << "" << oendl; if ( QFile::exists ( "/dev/sharp_buz" ) || QFile::exists ( "/dev/sharp_led" )) @@ -247,3 +251,3 @@ int VMemo::position() void VMemo::receive( const QCString &msg, const QByteArray &data ) { - qDebug("receive"); + odebug << "receive" << oendl; QDataStream stream( data, IO_ReadOnly ); @@ -295,3 +299,3 @@ bool VMemo::startRecording() { - qDebug("Start recording engines"); + odebug << "Start recording engines" << oendl; recording = TRUE; @@ -320,3 +324,3 @@ bool VMemo::startRecording() { fileName=fileName.right(fileName.length()-s-2); - qDebug("pathname will be "+fileName); + odebug << "pathname will be "+fileName << oendl; @@ -329,3 +333,3 @@ bool VMemo::startRecording() { fileName+=fName; - qDebug("filename is "+fileName); + odebug << "filename is "+fileName << oendl; // open tmp file here @@ -333,3 +337,3 @@ bool VMemo::startRecording() { pointer=tmpnam(NULL); - qDebug("Opening tmp file %s",pointer); + odebug << "Opening tmp file " << pointer << "" << oendl; @@ -373,3 +377,3 @@ void VMemo::stopRecording() { show(); - qDebug("Stopped recording"); + odebug << "Stopped recording" << oendl; recording = FALSE; @@ -401,3 +405,3 @@ int VMemo::openDSP() { - qDebug("samplerate: %d, channels %d, resolution %d", speed, channels, resolution); + odebug << "samplerate: " << speed << ", channels " << channels << ", resolution " << resolution << "" << oendl; @@ -485,3 +489,3 @@ bool VMemo::record() { msg.sprintf("Recording format %d", format); - qDebug(msg); + odebug << msg << oendl; Config config("Vmemo"); @@ -496,3 +500,3 @@ bool VMemo::record() { msg.sprintf("Recording format other"); - qDebug(msg); + odebug << msg << oendl; @@ -515,3 +519,3 @@ bool VMemo::record() { perror("recording error "); -// qDebug(currentFileName); +// odebug << currentFileName << oendl; QMessageBox::message(tr("Note"),tr("error recording")); @@ -542,3 +546,3 @@ bool VMemo::record() { } - // printf("%d\r",length); + // odebug << "" << length << "\r" << oendl; // fflush(stdout); @@ -561,3 +565,3 @@ bool VMemo::record() { track.close(); - qDebug("Track closed"); + odebug << "Track closed" << oendl; @@ -585,3 +589,3 @@ bool VMemo::record() { cfgO.writeEntry( currentFileName, time ); - // qDebug("writing config numberOfRecordedSeconds "+time); + // odebug << "writing config numberOfRecordedSeconds "+time << oendl; @@ -589,3 +593,3 @@ bool VMemo::record() { - qDebug("done recording "+fileName); + odebug << "done recording "+fileName << oendl; |