summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/vmemo/vmemo.cpp12
-rw-r--r--core/applets/vmemo/vmemo.h1
2 files changed, 11 insertions, 2 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp
index 8875cdf..5ce6fa9 100644
--- a/core/applets/vmemo/vmemo.cpp
+++ b/core/applets/vmemo/vmemo.cpp
@@ -143,4 +143,5 @@ VMemo::VMemo( QWidget *parent, const char *name )
143 143
144 myChannel = new QCopChannel( "QPE/VMemo", this ); 144 myChannel = new QCopChannel( "QPE/VMemo", this );
145 connect( myChannel, SIGNAL(sayHi()), this, SLOT(sayHi()) );
145 connect( myChannel, SIGNAL(received(const QCString&, const QByteArray&)), 146 connect( myChannel, SIGNAL(received(const QCString&, const QByteArray&)),
146 this, SLOT(receive(const QCString&, const QByteArray&)) ); 147 this, SLOT(receive(const QCString&, const QByteArray&)) );
@@ -190,5 +191,5 @@ VMemo::VMemo( QWidget *parent, const char *name )
190 qWarning("REC = stop"); 191 qWarning("REC = stop");
191 QCopEnvelope( "QPE/VMemo", "toggleRecord()"); 192 QCopEnvelope( "QPE/VMemo", "toggleRecord()");
192 activate_signal("toggleRecordNow()"); 193 QCopEnvelope( "QPE/VMemo", "sayHi()");
193 } 194 }
194 else if(*buffer == (char)1) 195 else if(*buffer == (char)1)
@@ -196,5 +197,5 @@ VMemo::VMemo( QWidget *parent, const char *name )
196 qWarning("REC = start"); 197 qWarning("REC = start");
197 QCopEnvelope( "QPE/VMemo", "toggleRecord()"); 198 QCopEnvelope( "QPE/VMemo", "toggleRecord()");
198 activate_signal("toggleRecordNow()"); 199 QCopEnvelope( "QPE/VMemo", "sayHi()");
199 } 200 }
200 } 201 }
@@ -211,4 +212,9 @@ VMemo::~VMemo()
211} 212}
212 213
214void VMemo::sayHi()
215{
216 qWarning("Hi");
217}
218
213void VMemo::receive( const QCString &msg, const QByteArray &data ) 219void VMemo::receive( const QCString &msg, const QByteArray &data )
214{ 220{
@@ -228,4 +234,6 @@ void VMemo::paintEvent( QPaintEvent* )
228void VMemo::mousePressEvent( QMouseEvent * ) 234void VMemo::mousePressEvent( QMouseEvent * )
229{ 235{
236 QCopEnvelope( "QPE/VMemo", "sayHi()");
237
230 // just to be safe 238 // just to be safe
231 if (recording) 239 if (recording)
diff --git a/core/applets/vmemo/vmemo.h b/core/applets/vmemo/vmemo.h
index d96cd94..824309e 100644
--- a/core/applets/vmemo/vmemo.h
+++ b/core/applets/vmemo/vmemo.h
@@ -37,4 +37,5 @@ public slots:
37 void mouseReleaseEvent( QMouseEvent * ); 37 void mouseReleaseEvent( QMouseEvent * );
38 void receive( const QCString &msg, const QByteArray &data ); 38 void receive( const QCString &msg, const QByteArray &data );
39 void sayHi();
39 40
40private: 41private: