summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/vmemo/vmemo.cpp12
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 )
systemZaurus = FALSE;
+// myChannel = new QCopChannel( "QPE/VMemo", this );
myChannel = new QCopChannel( "QPE/VMemo", this );
+
connect( myChannel, SIGNAL(received(const QCString&,const QByteArray&)),
this, SLOT(receive(const QCString&,const QByteArray&)) );
+
if( toggleKey != -1 ) {
odebug << "Register key " << toggleKey << "" << oendl;
@@ -229,6 +232,6 @@ VMemo::VMemo( QWidget *parent, const char *_name )
// e << Key_F5; //4148
e << toggleKey;
- e << QString("QPE/VMemo");
- e << QString("toggleRecord()");
+ e << QCString("QPE/VMemo");
+ e << QCString("toggleRecord()");
}
if(toggleKey == 1)
@@ -252,5 +255,4 @@ int VMemo::position()
void VMemo::receive( const QCString &msg, const QByteArray &data ) {
- odebug << "Vmemo receive" << oendl;
QDataStream stream( data, IO_ReadOnly );
@@ -521,5 +523,5 @@ bool VMemo::record() {
if(useADPCM) {
odebug << "usr ADPCM" << oendl;
-
+
while(recording) {
result = ::read(dsp, sbuf, bufsize); // adpcm read
@@ -666,4 +668,4 @@ void VMemo::timerBreak() {
-EXPORT_OPIE_APPLET_v1( VMemo )
+//EXPORT_OPIE_APPLET_v1( VMemo )