forked from qt-creator/qt-creator
QNX: Refactored connection handling for BlackBerry devices
The blackberry-connect connection is now established at Qt Creator startup, and taken down when Qt Creator shuts down. The user also has the ability to disconnect manually in the Device settings widget. The connection status is shown in the Devices settings widget, as well as in the project selector. And it is impossible run or debug an application without having the device connected. Change-Id: I64f2e48a647e6d850851d2f20d0ec7bbd5980ea5 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com> Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com> Reviewed-by: Mehdi Fekari <mfekari@rim.com>
This commit is contained in:
committed by
Tobias Nätterlund
parent
44200e0fee
commit
5c36c594fe
@@ -50,6 +50,7 @@
|
||||
#include "bardescriptormagicmatcher.h"
|
||||
#include "blackberrykeyspage.h"
|
||||
#include "blackberrycheckdevmodestepfactory.h"
|
||||
#include "blackberrydeviceconnectionmanager.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/mimedatabase.h>
|
||||
@@ -64,6 +65,7 @@ QNXPlugin::QNXPlugin()
|
||||
|
||||
QNXPlugin::~QNXPlugin()
|
||||
{
|
||||
delete BlackBerryDeviceConnectionManager::instance();
|
||||
}
|
||||
|
||||
bool QNXPlugin::initialize(const QStringList &arguments, QString *errorString)
|
||||
@@ -82,6 +84,7 @@ bool QNXPlugin::initialize(const QStringList &arguments, QString *errorString)
|
||||
addAutoReleasedObject(new BlackBerryNDKSettingsPage);
|
||||
addAutoReleasedObject(new BlackBerryKeysPage);
|
||||
addAutoReleasedObject(new BlackBerryCheckDevModeStepFactory);
|
||||
BlackBerryDeviceConnectionManager::instance()->initialize();
|
||||
|
||||
// Handles QNX
|
||||
addAutoReleasedObject(new QnxQtVersionFactory);
|
||||
|
||||
Reference in New Issue
Block a user