-rw-r--r-- | core/launcher/server.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/core/launcher/server.cpp b/core/launcher/server.cpp index 0eaebcf..42186d3 100644 --- a/core/launcher/server.cpp +++ b/core/launcher/server.cpp @@ -366,56 +366,61 @@ void Server::systemMsg(const QCString &msg, const QByteArray &data) f.close(); } QRsync::applyDiff( baseFile, deltaFile ); #ifndef QT_NO_COP QCopEnvelope e( "QPE/Desktop", "patchApplied(QString)" ); e << baseFile; #endif } else if ( msg == "rdiffCleanup()" ) { mkdir( "/tmp/rdiff" ); QDir dir; dir.setPath( "/tmp/rdiff" ); QStringList entries = dir.entryList(); for ( QStringList::Iterator it = entries.begin(); it != entries.end(); ++it ) dir.remove( *it ); } else if ( msg == "sendHandshakeInfo()" ) { QString home = getenv( "HOME" ); #ifndef QT_NO_COP QCopEnvelope e( "QPE/Desktop", "handshakeInfo(QString,bool)" ); e << home; int locked = (int) ServerApplication::screenLocked(); e << locked; #endif } else if ( msg == "sendVersionInfo()" ) { /* - * QtopiaDesktop relies on the major number - * to start with 1. - * we need to fake at least 1.4 to be able - * to sync with QtopiaDesktop1.6 + * @&$*! Qtopiadesktop relies on the major number + * to start with 1. (or 2 as the case of version 2.1 will be) + * we need to fake 1.7 to be able + * to sync with Qtopiadesktop 1.7. + * We'll send it Opie's version in the platform string for now, + * until such time when QD gets rewritten correctly. */ QCopEnvelope e( "QPE/Desktop", "versionInfo(QString,QString)" ); - QString opiename = "Opie"; - e << QString(QPE_VERSION) << opiename; + + QString opiename = "Opie "+QString(QPE_VERSION); + QString QDVersion="1.7"; + e << QDVersion << opiename; + } else if ( msg == "sendCardInfo()" ) { #ifndef QT_NO_COP QCopEnvelope e( "QPE/Desktop", "cardInfo(QString)" ); #endif storage->update(); const QList<FileSystem> &fs = storage->fileSystems(); QListIterator<FileSystem> it ( fs ); QString s; QString homeDir = getenv("HOME"); QString homeFs, homeFsPath; for ( ; it.current(); ++it ) { int k4 = (*it)->blockSize()/256; if ( (*it)->isRemovable() ) { s += (*it)->name() + "=" + (*it)->path() + "/Documents " // No tr + QString::number( (*it)->availBlocks() * k4/4 ) + "K " + (*it)->options() + ";"; } else if ( homeDir.contains( (*it)->path() ) && (*it)->path().length() > homeFsPath.length() ) { homeFsPath = (*it)->path(); homeFs = (*it)->name() + "=" + homeDir + "/Documents " // No tr + QString::number( (*it)->availBlocks() * k4/4 ) + "K " + (*it)->options() + ";"; } |