summaryrefslogtreecommitdiff
authorsandman <sandman>2002-12-26 00:57:15 (UTC)
committer sandman <sandman>2002-12-26 00:57:15 (UTC)
commit918e4d4dffddc6d1a31b9b92535cd81a4f3d52e2 (patch) (side-by-side diff)
tree80988c5dd55074af1d397e6b9d9b235d56e4e293
parent0d54f8140e8c39bde48bc09e34e76dcc5c47fa92 (diff)
downloadopie-918e4d4dffddc6d1a31b9b92535cd81a4f3d52e2.zip
opie-918e4d4dffddc6d1a31b9b92535cd81a4f3d52e2.tar.gz
opie-918e4d4dffddc6d1a31b9b92535cd81a4f3d52e2.tar.bz2
signature of keyRegister() QCop call changed because of the device button
rewrite
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/applets/vmemo/vmemo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp
index d6128a6..6867e82 100644
--- a/core/applets/vmemo/vmemo.cpp
+++ b/core/applets/vmemo/vmemo.cpp
@@ -214,49 +214,50 @@ VMemo::VMemo( QWidget *parent, const char *_name )
t_timer = new QTimer( this );
connect( t_timer, SIGNAL( timeout() ), SLOT( timerBreak() ) );
struct utsname name; /* check for embedix kernel running on the zaurus*/
if (uname(&name) != -1) {
QString release=name.release;
Config vmCfg("Vmemo");
vmCfg.setGroup("Defaults");
int toggleKey = setToggleButton(vmCfg.readNumEntry("toggleKey", -1));
useADPCM = vmCfg.readBoolEntry("use_ADPCM", 0);
qDebug("toggleKey %d", toggleKey);
if(release.find("embedix",0,TRUE) !=-1)
systemZaurus=TRUE;
else
systemZaurus=FALSE;
myChannel = new QCopChannel( "QPE/VMemo", this );
connect( myChannel, SIGNAL(received(const QCString&, const QByteArray&)),
this, SLOT(receive(const QCString&, const QByteArray&)) );
if( toggleKey != -1 ) {
- QCopEnvelope e("QPE/Desktop", "keyRegister(int key, QString channel, QString message)");
+ // keyRegister(key, channel, message)
+ QCopEnvelope e("QPE/Launcher", "keyRegister(int,QCString,QCString)");
// e << 4096; // Key_Escape
// e << Key_F5; //4148
e << toggleKey;
e << QString("QPE/VMemo");
e << QString("toggleRecord()");
}
if(toggleKey == 1)
usingIcon=TRUE;
else
usingIcon=FALSE;
if( vmCfg.readNumEntry("hideIcon",0) == 1)
hide();
recording = FALSE;
}
}
VMemo::~VMemo() {
}
void VMemo::receive( const QCString &msg, const QByteArray &data ) {
qDebug("receive");
QDataStream stream( data, IO_ReadOnly );
if (msg == "toggleRecord()") {