forked from qt-creator/qt-creator
Removal of Symbian support
Qt Creator's support for Symbian was at its peak in version 2.4.x. Nobody really verified it in Qt Creator 2.5 or 2.6. It is most likely rotten. Let's remove it! Also, the Symbian support code was spread throughout the whole Qt Creator code base. The plugin interfaces evolved in the meantime and target platforms like Android or QNX have 99% of their code in separate plugins. In case anyone wants to revive Symbian support in Qt Creator, please create a plugin for it. Change-Id: I56a758a3e2fd5b8c64d9aeb8f63d8e916c4883be Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
This commit is contained in:
@@ -34,7 +34,6 @@
|
||||
#include <qdebug.h>
|
||||
#include <qstringlist.h>
|
||||
#include <qnetworkproxy.h>
|
||||
#include <symbiandevicemanager.h>
|
||||
|
||||
namespace QmlDebug {
|
||||
|
||||
@@ -60,7 +59,7 @@ public:
|
||||
QmlDebugConnectionPrivate(QmlDebugConnection *c);
|
||||
QmlDebugConnection *q;
|
||||
QPacketProtocol *protocol;
|
||||
QIODevice *device; // Currently either a QTcpSocket or a SymbianUtils::OstChannel
|
||||
QIODevice *device; // Currently a QTcpSocket
|
||||
|
||||
bool gotHello;
|
||||
QHash <QString, float> serverPlugins;
|
||||
@@ -295,18 +294,6 @@ QAbstractSocket::SocketState QmlDebugConnection::state() const
|
||||
if (socket)
|
||||
return socket->state();
|
||||
|
||||
SymbianUtils::OstChannel *ost = qobject_cast<SymbianUtils::OstChannel*>(d->device);
|
||||
if (ost) {
|
||||
//TODO we need some handshaking here
|
||||
/*
|
||||
if (ost->hasReceivedData())
|
||||
return QAbstractSocket::ConnectedState;
|
||||
else if (ost->isOpen())
|
||||
return QAbstractSocket::ConnectingState;
|
||||
*/
|
||||
if (ost->isOpen()) return QAbstractSocket::ConnectedState;
|
||||
}
|
||||
|
||||
return QAbstractSocket::UnconnectedState;
|
||||
}
|
||||
|
||||
@@ -317,12 +304,6 @@ void QmlDebugConnection::flush()
|
||||
socket->flush();
|
||||
return;
|
||||
}
|
||||
|
||||
SymbianUtils::OstChannel *ost = qobject_cast<SymbianUtils::OstChannel*>(d->device);
|
||||
if (ost) {
|
||||
ost->flush();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void QmlDebugConnection::connectToHost(const QString &hostName, quint16 port)
|
||||
@@ -339,22 +320,6 @@ void QmlDebugConnection::connectToHost(const QString &hostName, quint16 port)
|
||||
QIODevice::open(ReadWrite | Unbuffered);
|
||||
}
|
||||
|
||||
void QmlDebugConnection::connectToOst(const QString &port)
|
||||
{
|
||||
SymbianUtils::OstChannel *ost = SymbianUtils::SymbianDeviceManager::instance()->getOstChannel(port, KQmlOstProtocolId);
|
||||
if (ost) {
|
||||
ost->setParent(d);
|
||||
d->device = ost;
|
||||
d->connectDeviceSignals();
|
||||
d->gotHello = false;
|
||||
QIODevice::open(ReadWrite | Unbuffered);
|
||||
emit stateChanged(QAbstractSocket::ConnectedState);
|
||||
emit connected();
|
||||
} else {
|
||||
emit error(QAbstractSocket::HostNotFoundError);
|
||||
}
|
||||
}
|
||||
|
||||
void QmlDebugConnectionPrivate::connectDeviceSignals()
|
||||
{
|
||||
connect(device, SIGNAL(bytesWritten(qint64)), q, SIGNAL(bytesWritten(qint64)));
|
||||
|
||||
Reference in New Issue
Block a user