summaryrefslogtreecommitdiff
Side-by-side diff
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 )
myChannel = new QCopChannel( "QPE/VMemo", this );
+ connect( myChannel, SIGNAL(sayHi()), this, SLOT(sayHi()) );
connect( myChannel, SIGNAL(received(const QCString&, const QByteArray&)),
this, SLOT(receive(const QCString&, const QByteArray&)) );
@@ -190,5 +191,5 @@ VMemo::VMemo( QWidget *parent, const char *name )
qWarning("REC = stop");
QCopEnvelope( "QPE/VMemo", "toggleRecord()");
- activate_signal("toggleRecordNow()");
+ QCopEnvelope( "QPE/VMemo", "sayHi()");
}
else if(*buffer == (char)1)
@@ -196,5 +197,5 @@ VMemo::VMemo( QWidget *parent, const char *name )
qWarning("REC = start");
QCopEnvelope( "QPE/VMemo", "toggleRecord()");
- activate_signal("toggleRecordNow()");
+ QCopEnvelope( "QPE/VMemo", "sayHi()");
}
}
@@ -211,4 +212,9 @@ VMemo::~VMemo()
}
+void VMemo::sayHi()
+{
+ qWarning("Hi");
+}
+
void VMemo::receive( const QCString &msg, const QByteArray &data )
{
@@ -228,4 +234,6 @@ void VMemo::paintEvent( QPaintEvent* )
void VMemo::mousePressEvent( QMouseEvent * )
{
+ QCopEnvelope( "QPE/VMemo", "sayHi()");
+
// just to be safe
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:
void mouseReleaseEvent( QMouseEvent * );
void receive( const QCString &msg, const QByteArray &data );
+ void sayHi();
private: