~ubuntu-sdk-team/qtcreator-plugin-remotelinux/trunk

« back to all changes in this revision

Viewing changes to src/qnx/blackberrydeviceconnectionmanager.cpp

  • Committer: CI bot
  • Author(s): Benjamin Zeller
  • Date: 2014-06-16 10:28:43 UTC
  • mfrom: (4.2.4 remotelinux)
  • Revision ID: ps-jenkins@lists.canonical.com-20140616102843-8juvmjvzwlzsboyw
Migrating to Qt5.3 and QtC 3.1 

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
    // BlackBerry Device connection needs the Qnx environments to be set
115
115
    // in order to find the Connect.jar package.
116
116
    // Let's delay the device connections at startup till the Qnx settings are loaded.
117
 
    if (BlackBerryConfigurationManager::instance().configurations().isEmpty()) {
 
117
    if (BlackBerryConfigurationManager::instance()->apiLevels().isEmpty()) {
118
118
        m_pendingDeviceConnections << device;
119
 
        connect(&BlackBerryConfigurationManager::instance(), SIGNAL(settingsLoaded()),
 
119
        connect(BlackBerryConfigurationManager::instance(), SIGNAL(settingsLoaded()),
120
120
                this, SLOT(processPendingDeviceConnections()), Qt::UniqueConnection);
121
121
        return;
122
122
    }
187
187
 */
188
188
const QString BlackBerryDeviceConnectionManager::privateKeyPath() const
189
189
{
190
 
    return QFileInfo(Core::ICore::settings()->fileName()).absolutePath() + QLatin1String("/qtcreator/qnx/id_rsa");
 
190
    return Core::ICore::userResourcePath() + QLatin1String("/qnx/id_rsa");
191
191
}
192
192
 
193
193
/*!
308
308
void BlackBerryDeviceConnectionManager::processPendingDeviceConnections()
309
309
{
310
310
    if (m_pendingDeviceConnections.isEmpty()
311
 
            || BlackBerryConfigurationManager::instance().configurations().isEmpty())
 
311
            || BlackBerryConfigurationManager::instance()->apiLevels().isEmpty())
312
312
        return;
313
313
 
314
314
    foreach (ProjectExplorer::IDevice::ConstPtr device, m_pendingDeviceConnections)
315
315
        connectDevice(device);
316
316
 
317
317
    m_pendingDeviceConnections.clear();
318
 
    disconnect(&BlackBerryConfigurationManager::instance(), SIGNAL(settingsLoaded()),
 
318
    disconnect(BlackBerryConfigurationManager::instance(), SIGNAL(settingsLoaded()),
319
319
            this, SLOT(processPendingDeviceConnections()));
320
320
}
321
321