summaryrefslogtreecommitdiff
authorjeremy <jeremy>2002-02-15 17:01:32 (UTC)
committer jeremy <jeremy>2002-02-15 17:01:32 (UTC)
commit3a3b4465992439e6a52190fdfc757166aa3de880 (patch) (side-by-side diff)
treee795a6dfe4cf9e517121dd2c1b35111d6e3f89bc
parent379e66393a2986e218baad0e585c1b4a0dd7d045 (diff)
downloadopie-3a3b4465992439e6a52190fdfc757166aa3de880.zip
opie-3a3b4465992439e6a52190fdfc757166aa3de880.tar.gz
opie-3a3b4465992439e6a52190fdfc757166aa3de880.tar.bz2
Trying to make QCop to work
Diffstat (more/less context) (show 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
@@ -142,6 +142,7 @@ VMemo::VMemo( QWidget *parent, const char *name )
recording = FALSE;
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&)) );
@@ -189,13 +190,13 @@ 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)
{
qWarning("REC = start");
QCopEnvelope( "QPE/VMemo", "toggleRecord()");
- activate_signal("toggleRecordNow()");
+ QCopEnvelope( "QPE/VMemo", "sayHi()");
}
}
}
@@ -210,6 +211,11 @@ VMemo::~VMemo()
{
}
+void VMemo::sayHi()
+{
+ qWarning("Hi");
+}
+
void VMemo::receive( const QCString &msg, const QByteArray &data )
{
QDataStream stream( data, IO_ReadOnly );
@@ -227,6 +233,8 @@ 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
@@ -36,6 +36,7 @@ public slots:
void mousePressEvent( QMouseEvent * );
void mouseReleaseEvent( QMouseEvent * );
void receive( const QCString &msg, const QByteArray &data );
+ void sayHi();
private:
void paintEvent( QPaintEvent* );