forked from qt-creator/qt-creator
BlackBerry Development Environment Setup Wizard
This wizard tries to make the process of setting up a new development environment for BlackBerry devices easy. It does not implement anything that isn't already available through the BlackBerry category under the "options" menu, and also imposes some restrictions for the sake of simplicity. It will: * register CSJ keys * create developer certificate * create SSH keys to a default location * request a debug token * upload a debug token to the device Change-Id: I063ee107fb474135523cf685b7ac5d05096ef741 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -256,18 +256,34 @@ void BlackBerryConfiguration::syncCertificates(QList<BlackBerryCertificate*> cer
|
||||
m_config.activeCertificate = activeCertificate;
|
||||
|
||||
foreach (BlackBerryCertificate *cert, m_config.certificates) {
|
||||
if (!certificates.contains(cert)) {
|
||||
m_config.certificates.removeAll(cert);
|
||||
delete cert;
|
||||
}
|
||||
if (!certificates.contains(cert))
|
||||
removeCertificate(cert);
|
||||
}
|
||||
|
||||
foreach (BlackBerryCertificate *cert, certificates) {
|
||||
if (!m_config.certificates.contains(cert)) {
|
||||
cert->setParent(this);
|
||||
m_config.certificates << cert;
|
||||
}
|
||||
}
|
||||
foreach (BlackBerryCertificate *cert, certificates)
|
||||
addCertificate(cert);
|
||||
}
|
||||
|
||||
void BlackBerryConfiguration::addCertificate(BlackBerryCertificate *certificate)
|
||||
{
|
||||
if (m_config.certificates.contains(certificate))
|
||||
return;
|
||||
|
||||
if (m_config.certificates.isEmpty())
|
||||
m_config.activeCertificate = certificate;
|
||||
|
||||
certificate->setParent(this);
|
||||
m_config.certificates << certificate;
|
||||
}
|
||||
|
||||
void BlackBerryConfiguration::removeCertificate(BlackBerryCertificate *certificate)
|
||||
{
|
||||
if (m_config.activeCertificate == certificate)
|
||||
m_config.activeCertificate = 0;
|
||||
|
||||
m_config.certificates.removeAll(certificate);
|
||||
|
||||
delete certificate;
|
||||
}
|
||||
|
||||
QList<BlackBerryCertificate*> BlackBerryConfiguration::certificates() const
|
||||
@@ -470,6 +486,11 @@ QString BlackBerryConfiguration::defaultKeystorePath() const
|
||||
return dataDirPath() + QLatin1String("/author.p12");
|
||||
}
|
||||
|
||||
QString BlackBerryConfiguration::defaultDebugTokenPath() const
|
||||
{
|
||||
return dataDirPath() + QLatin1String("/debugtoken.bar");
|
||||
}
|
||||
|
||||
// TODO: QnxUtils::parseEnvFile() and qnxEnv() to return Util::Enviroment instead(?)
|
||||
QMultiMap<QString, QString> BlackBerryConfiguration::qnxEnv() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user