From b1b8d1d40624c37555412047b6d925e043d2f388 Mon Sep 17 00:00:00 2001 From: zecke Date: Sat, 15 Feb 2003 14:07:56 +0000 Subject: Implement flush and reload so that syncing works with Opie/X11 again --- (limited to 'x11/libqpe-x11/qpe') diff --git a/x11/libqpe-x11/qpe/qpeapplication.cpp b/x11/libqpe-x11/qpe/qpeapplication.cpp index c4f8f38..ed815f8 100644 --- a/x11/libqpe-x11/qpe/qpeapplication.cpp +++ b/x11/libqpe-x11/qpe/qpeapplication.cpp @@ -502,7 +502,14 @@ void QPEApplication::internalSetStyle( const QString& ) { void QPEApplication::systemMessage( const QCString& chan, const QByteArray& ) { qWarning("QPEApplication::systemMessage( %s )", chan.data() ); } -void QPEApplication::pidMessage( const QCString&, const QByteArray& ) { +void QPEApplication::pidMessage( const QCString& msg, const QByteArray& ) { + if ( msg == "flush()" ) { + emit flush(); + QCopEnvelope e( "QPE/Desktop", "flushDone(QString)" ); + e << d->appName; + }else if ( msg == "reload()" ) { + emit reload(); + } } void QPEApplication::timerEvent( QTimerEvent* e ) { -- cgit v0.9.0.2