author | llornkcor <llornkcor> | 2004-09-27 09:46:44 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-09-27 09:46:44 (UTC) |
commit | 28c514ec19215b6db5e98ba64d5f716c0b5ba391 (patch) (unidiff) | |
tree | c39132999d045d127848d8a5b8513e079d90203f | |
parent | 3381ae96e9f386e96feb4121425912f9ddb3a53f (diff) | |
download | opie-28c514ec19215b6db5e98ba64d5f716c0b5ba391.zip opie-28c514ec19215b6db5e98ba64d5f716c0b5ba391.tar.gz opie-28c514ec19215b6db5e98ba64d5f716c0b5ba391.tar.bz2 |
fix vmemo
-rw-r--r-- | core/applets/vmemo/vmemo.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp index 07ef15c..d5808b7 100644 --- a/core/applets/vmemo/vmemo.cpp +++ b/core/applets/vmemo/vmemo.cpp | |||
@@ -219,8 +219,11 @@ VMemo::VMemo( QWidget *parent, const char *_name ) | |||
219 | systemZaurus = FALSE; | 219 | systemZaurus = FALSE; |
220 | 220 | ||
221 | // myChannel = new QCopChannel( "QPE/VMemo", this ); | ||
221 | myChannel = new QCopChannel( "QPE/VMemo", this ); | 222 | myChannel = new QCopChannel( "QPE/VMemo", this ); |
223 | |||
222 | connect( myChannel, SIGNAL(received(const QCString&,const QByteArray&)), | 224 | connect( myChannel, SIGNAL(received(const QCString&,const QByteArray&)), |
223 | this, SLOT(receive(const QCString&,const QByteArray&)) ); | 225 | this, SLOT(receive(const QCString&,const QByteArray&)) ); |
224 | 226 | ||
227 | |||
225 | if( toggleKey != -1 ) { | 228 | if( toggleKey != -1 ) { |
226 | odebug << "Register key " << toggleKey << "" << oendl; | 229 | odebug << "Register key " << toggleKey << "" << oendl; |
@@ -229,6 +232,6 @@ VMemo::VMemo( QWidget *parent, const char *_name ) | |||
229 | // e << Key_F5; //4148 | 232 | // e << Key_F5; //4148 |
230 | e << toggleKey; | 233 | e << toggleKey; |
231 | e << QString("QPE/VMemo"); | 234 | e << QCString("QPE/VMemo"); |
232 | e << QString("toggleRecord()"); | 235 | e << QCString("toggleRecord()"); |
233 | } | 236 | } |
234 | if(toggleKey == 1) | 237 | if(toggleKey == 1) |
@@ -252,5 +255,4 @@ int VMemo::position() | |||
252 | 255 | ||
253 | void VMemo::receive( const QCString &msg, const QByteArray &data ) { | 256 | void VMemo::receive( const QCString &msg, const QByteArray &data ) { |
254 | odebug << "Vmemo receive" << oendl; | ||
255 | QDataStream stream( data, IO_ReadOnly ); | 257 | QDataStream stream( data, IO_ReadOnly ); |
256 | 258 | ||
@@ -521,5 +523,5 @@ bool VMemo::record() { | |||
521 | if(useADPCM) { | 523 | if(useADPCM) { |
522 | odebug << "usr ADPCM" << oendl; | 524 | odebug << "usr ADPCM" << oendl; |
523 | 525 | ||
524 | while(recording) { | 526 | while(recording) { |
525 | result = ::read(dsp, sbuf, bufsize); // adpcm read | 527 | result = ::read(dsp, sbuf, bufsize); // adpcm read |
@@ -666,4 +668,4 @@ void VMemo::timerBreak() { | |||
666 | 668 | ||
667 | 669 | ||
668 | EXPORT_OPIE_APPLET_v1( VMemo ) | 670 | //EXPORT_OPIE_APPLET_v1( VMemo ) |
669 | 671 | ||