From d2a7ac3311bda821ee07ff070c24f17958657129 Mon Sep 17 00:00:00 2001 From: zecke Date: Mon, 30 Sep 2002 15:39:19 +0000 Subject: Make QtopiaDesktop1.6 work with Opie again it did rely on the counter part to send a version number starting with 1 --- (limited to 'core/launcher/launcher.cpp') diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp index 1bd1156..6948976 100644 --- a/core/launcher/launcher.cpp +++ b/core/launcher/launcher.cpp @@ -604,7 +604,7 @@ Launcher::Launcher( QWidget* parent, const char* name, WFlags fl ) int stamp = uidgen.generate(); // this is our timestamp to see which devices we know //uidgen.store( stamp ); - m_timeStamp = QString::number( stamp ); + m_timeStamp = QString::number( stamp ); tabs = new CategoryTabWidget( this ); tabs->setMaximumWidth( qApp->desktop()->width() ); @@ -979,11 +979,16 @@ void Launcher::systemMessage( const QCString &msg, const QByteArray &data) } } else { } - } else if ( msg == "sendVersionInfo()" ) { + } + /* + * QtopiaDesktop relies on the major number + * to start with 1. We're at 0.9 + * so wee need to fake at least 1.4 to be able + * to sync with QtopiaDesktop1.6 + */ + else if ( msg == "sendVersionInfo()" ) { QCopEnvelope e( "QPE/Desktop", "versionInfo(QString)" ); - QString v = QPE_VERSION; - QStringList l = QStringList::split( '.', v ); - QString v2 = l[0] + '.' + l[1]; + QString v2 = QString::fromLatin1("1.4"); e << v2; //qDebug("version %s\n", line.latin1()); } else if ( msg == "sendCardInfo()" ) { @@ -1050,7 +1055,7 @@ void Launcher::systemMessage( const QCString &msg, const QByteArray &data) syncDialog->showMaximized(); syncDialog->whatLabel->setText( "" + what + "" ); connect( syncDialog->buttonCancel, SIGNAL( clicked() ), - SLOT( cancelSync() ) ); + SLOT( cancelSync() ) ); } else if ( msg == "stopSync()") { delete syncDialog; syncDialog = 0; } else if ( msg == "getAllDocLinks()" ) { @@ -1093,7 +1098,7 @@ void Launcher::systemMessage( const QCString &msg, const QByteArray &data) QCopEnvelope e( "QPE/Desktop", "docLinks(QString)" ); e << contents; #endif - + //qDebug( "================ \n\n%s\n\n===============", //contents.latin1() ); -- cgit v0.9.0.2