2010-02-08 15:50:06 +01:00
|
|
|
/**************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator
|
|
|
|
|
**
|
2010-03-05 11:25:49 +01:00
|
|
|
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
2010-02-08 15:50:06 +01:00
|
|
|
**
|
|
|
|
|
** Contact: Nokia Corporation (qt-info@nokia.com)
|
|
|
|
|
**
|
|
|
|
|
** Commercial Usage
|
|
|
|
|
**
|
|
|
|
|
** Licensees holding valid Qt Commercial licenses may use this file in
|
|
|
|
|
** accordance with the Qt Commercial License Agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
|
|
|
|
** a written agreement between you and Nokia.
|
|
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
|
|
|
|
**
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU Lesser
|
|
|
|
|
** General Public License version 2.1 as published by the Free Software
|
|
|
|
|
** Foundation and appearing in the file LICENSE.LGPL included in the
|
|
|
|
|
** packaging of this file. Please review the following information to
|
|
|
|
|
** ensure the GNU Lesser General Public License version 2.1 requirements
|
|
|
|
|
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|
|
|
|
**
|
|
|
|
|
** If you are unsure which license is appropriate for your use, please
|
|
|
|
|
** contact the sales department at http://qt.nokia.com/contact.
|
|
|
|
|
**
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
|
|
#include "target.h"
|
|
|
|
|
|
|
|
|
|
#include "buildconfiguration.h"
|
2010-07-16 14:00:41 +02:00
|
|
|
#include "deployconfiguration.h"
|
2010-02-08 15:50:06 +01:00
|
|
|
#include "project.h"
|
|
|
|
|
#include "runconfiguration.h"
|
|
|
|
|
|
|
|
|
|
#include <utils/qtcassert.h>
|
|
|
|
|
|
|
|
|
|
using namespace ProjectExplorer;
|
|
|
|
|
|
|
|
|
|
namespace {
|
|
|
|
|
const char * const ACTIVE_BC_KEY("ProjectExplorer.Target.ActiveBuildConfiguration");
|
|
|
|
|
const char * const BC_KEY_PREFIX("ProjectExplorer.Target.BuildConfiguration.");
|
|
|
|
|
const char * const BC_COUNT_KEY("ProjectExplorer.Target.BuildConfigurationCount");
|
|
|
|
|
|
2010-07-16 14:00:41 +02:00
|
|
|
const char * const ACTIVE_DC_KEY("ProjectExplorer.Target.ActiveDeployConfiguration");
|
|
|
|
|
const char * const DC_KEY_PREFIX("ProjectExplorer.Target.DeployConfiguration.");
|
|
|
|
|
const char * const DC_COUNT_KEY("ProjectExplorer.Target.DeployConfigurationCount");
|
|
|
|
|
|
2010-02-08 15:50:06 +01:00
|
|
|
const char * const ACTIVE_RC_KEY("ProjectExplorer.Target.ActiveRunConfiguration");
|
|
|
|
|
const char * const RC_KEY_PREFIX("ProjectExplorer.Target.RunConfiguration.");
|
|
|
|
|
const char * const RC_COUNT_KEY("ProjectExplorer.Target.RunConfigurationCount");
|
|
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------------
|
|
|
|
|
// Target
|
|
|
|
|
// -------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
Target::Target(Project *project, const QString &id) :
|
2010-07-16 14:00:41 +02:00
|
|
|
ProjectConfiguration(project, id),
|
2010-02-08 15:50:06 +01:00
|
|
|
m_isEnabled(true),
|
|
|
|
|
m_activeBuildConfiguration(0),
|
2010-07-16 14:00:41 +02:00
|
|
|
m_activeDeployConfiguration(0),
|
2010-02-08 15:50:06 +01:00
|
|
|
m_activeRunConfiguration(0)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Target::~Target()
|
|
|
|
|
{
|
|
|
|
|
qDeleteAll(m_buildConfigurations);
|
|
|
|
|
qDeleteAll(m_runConfigurations);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Target::changeEnvironment()
|
|
|
|
|
{
|
|
|
|
|
ProjectExplorer::BuildConfiguration *bc(qobject_cast<ProjectExplorer::BuildConfiguration *>(sender()));
|
|
|
|
|
if (bc == activeBuildConfiguration())
|
|
|
|
|
emit environmentChanged();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Project *Target::project() const
|
|
|
|
|
{
|
2010-07-16 14:00:41 +02:00
|
|
|
return static_cast<Project *>(parent());
|
2010-02-08 15:50:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Target::addBuildConfiguration(BuildConfiguration *configuration)
|
|
|
|
|
{
|
|
|
|
|
QTC_ASSERT(configuration && !m_buildConfigurations.contains(configuration), return);
|
|
|
|
|
Q_ASSERT(configuration->target() == this);
|
|
|
|
|
|
|
|
|
|
if (!buildConfigurationFactory())
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
// Check that we don't have a configuration with the same displayName
|
|
|
|
|
QString configurationDisplayName = configuration->displayName();
|
|
|
|
|
QStringList displayNames;
|
|
|
|
|
foreach (const BuildConfiguration *bc, m_buildConfigurations)
|
|
|
|
|
displayNames << bc->displayName();
|
|
|
|
|
configurationDisplayName = Project::makeUnique(configurationDisplayName, displayNames);
|
|
|
|
|
configuration->setDisplayName(configurationDisplayName);
|
|
|
|
|
|
|
|
|
|
// add it
|
|
|
|
|
m_buildConfigurations.push_back(configuration);
|
|
|
|
|
|
|
|
|
|
emit addedBuildConfiguration(configuration);
|
|
|
|
|
|
|
|
|
|
connect(configuration, SIGNAL(environmentChanged()),
|
|
|
|
|
SLOT(changeEnvironment()));
|
|
|
|
|
|
|
|
|
|
if (!activeBuildConfiguration())
|
|
|
|
|
setActiveBuildConfiguration(configuration);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Target::removeBuildConfiguration(BuildConfiguration *configuration)
|
|
|
|
|
{
|
|
|
|
|
//todo: this might be error prone
|
|
|
|
|
if (!m_buildConfigurations.contains(configuration))
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
m_buildConfigurations.removeOne(configuration);
|
|
|
|
|
|
|
|
|
|
emit removedBuildConfiguration(configuration);
|
|
|
|
|
|
|
|
|
|
if (activeBuildConfiguration() == configuration) {
|
|
|
|
|
if (m_buildConfigurations.isEmpty())
|
|
|
|
|
setActiveBuildConfiguration(0);
|
|
|
|
|
else
|
|
|
|
|
setActiveBuildConfiguration(m_buildConfigurations.at(0));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
delete configuration;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QList<BuildConfiguration *> Target::buildConfigurations() const
|
|
|
|
|
{
|
|
|
|
|
return m_buildConfigurations;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BuildConfiguration *Target::activeBuildConfiguration() const
|
|
|
|
|
{
|
|
|
|
|
return m_activeBuildConfiguration;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Target::setActiveBuildConfiguration(BuildConfiguration *configuration)
|
|
|
|
|
{
|
|
|
|
|
if ((!configuration && m_buildConfigurations.isEmpty()) ||
|
|
|
|
|
(configuration && m_buildConfigurations.contains(configuration) &&
|
|
|
|
|
configuration != m_activeBuildConfiguration)) {
|
|
|
|
|
m_activeBuildConfiguration = configuration;
|
|
|
|
|
emit activeBuildConfigurationChanged(m_activeBuildConfiguration);
|
|
|
|
|
emit environmentChanged();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2010-07-16 14:00:41 +02:00
|
|
|
void Target::addDeployConfiguration(DeployConfiguration *dc)
|
|
|
|
|
{
|
|
|
|
|
QTC_ASSERT(dc && !m_deployConfigurations.contains(dc), return);
|
|
|
|
|
Q_ASSERT(dc->target() == this);
|
|
|
|
|
|
|
|
|
|
if (!deployConfigurationFactory())
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
// Check that we don't have a configuration with the same displayName
|
|
|
|
|
QString configurationDisplayName = dc->displayName();
|
|
|
|
|
QStringList displayNames;
|
|
|
|
|
foreach (const DeployConfiguration *bc, m_deployConfigurations)
|
|
|
|
|
displayNames << bc->displayName();
|
|
|
|
|
configurationDisplayName = Project::makeUnique(configurationDisplayName, displayNames);
|
|
|
|
|
dc->setDisplayName(configurationDisplayName);
|
|
|
|
|
|
|
|
|
|
// add it
|
|
|
|
|
m_deployConfigurations.push_back(dc);
|
|
|
|
|
|
|
|
|
|
emit addedDeployConfiguration(dc);
|
|
|
|
|
|
|
|
|
|
if (!m_activeDeployConfiguration)
|
|
|
|
|
setActiveDeployConfiguration(dc);
|
|
|
|
|
Q_ASSERT(activeDeployConfiguration());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Target::removeDeployConfiguration(DeployConfiguration *dc)
|
|
|
|
|
{
|
|
|
|
|
//todo: this might be error prone
|
|
|
|
|
if (!m_deployConfigurations.contains(dc))
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
m_deployConfigurations.removeOne(dc);
|
|
|
|
|
|
|
|
|
|
emit removedDeployConfiguration(dc);
|
|
|
|
|
|
|
|
|
|
if (activeDeployConfiguration() == dc) {
|
|
|
|
|
if (m_deployConfigurations.isEmpty())
|
|
|
|
|
setActiveDeployConfiguration(0);
|
|
|
|
|
else
|
|
|
|
|
setActiveDeployConfiguration(m_deployConfigurations.at(0));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
delete dc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QList<DeployConfiguration *> Target::deployConfigurations() const
|
|
|
|
|
{
|
|
|
|
|
return m_deployConfigurations;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DeployConfiguration *Target::activeDeployConfiguration() const
|
|
|
|
|
{
|
|
|
|
|
return m_activeDeployConfiguration;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Target::setActiveDeployConfiguration(DeployConfiguration *dc)
|
|
|
|
|
{
|
|
|
|
|
if ((!dc && m_deployConfigurations.isEmpty()) ||
|
|
|
|
|
(dc && m_deployConfigurations.contains(dc) &&
|
|
|
|
|
dc != m_activeDeployConfiguration)) {
|
|
|
|
|
m_activeDeployConfiguration = dc;
|
|
|
|
|
emit activeDeployConfigurationChanged(m_activeDeployConfiguration);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2010-02-08 15:50:06 +01:00
|
|
|
QList<RunConfiguration *> Target::runConfigurations() const
|
|
|
|
|
{
|
|
|
|
|
return m_runConfigurations;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Target::addRunConfiguration(RunConfiguration* runConfiguration)
|
|
|
|
|
{
|
|
|
|
|
QTC_ASSERT(runConfiguration && !m_runConfigurations.contains(runConfiguration), return);
|
|
|
|
|
Q_ASSERT(runConfiguration->target() == this);
|
|
|
|
|
|
|
|
|
|
m_runConfigurations.push_back(runConfiguration);
|
|
|
|
|
emit addedRunConfiguration(runConfiguration);
|
|
|
|
|
|
|
|
|
|
if (!activeRunConfiguration())
|
|
|
|
|
setActiveRunConfiguration(runConfiguration);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Target::removeRunConfiguration(RunConfiguration* runConfiguration)
|
|
|
|
|
{
|
|
|
|
|
QTC_ASSERT(runConfiguration && m_runConfigurations.contains(runConfiguration), return);
|
|
|
|
|
|
|
|
|
|
m_runConfigurations.removeOne(runConfiguration);
|
|
|
|
|
|
|
|
|
|
if (activeRunConfiguration() == runConfiguration) {
|
|
|
|
|
if (m_runConfigurations.isEmpty())
|
|
|
|
|
setActiveRunConfiguration(0);
|
|
|
|
|
else
|
|
|
|
|
setActiveRunConfiguration(m_runConfigurations.at(0));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
emit removedRunConfiguration(runConfiguration);
|
|
|
|
|
delete runConfiguration;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
RunConfiguration* Target::activeRunConfiguration() const
|
|
|
|
|
{
|
|
|
|
|
return m_activeRunConfiguration;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Target::setActiveRunConfiguration(RunConfiguration* configuration)
|
|
|
|
|
{
|
2010-04-07 13:41:03 +02:00
|
|
|
if ((!configuration && m_runConfigurations.isEmpty()) ||
|
2010-02-08 15:50:06 +01:00
|
|
|
(configuration && m_runConfigurations.contains(configuration) &&
|
|
|
|
|
configuration != m_activeRunConfiguration)) {
|
|
|
|
|
m_activeRunConfiguration = configuration;
|
|
|
|
|
emit activeRunConfigurationChanged(m_activeRunConfiguration);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool Target::isEnabled() const
|
|
|
|
|
{
|
|
|
|
|
return m_isEnabled;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QIcon Target::icon() const
|
|
|
|
|
{
|
|
|
|
|
return m_icon;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Target::setIcon(QIcon icon)
|
|
|
|
|
{
|
|
|
|
|
m_icon = icon;
|
|
|
|
|
emit iconChanged();
|
|
|
|
|
}
|
|
|
|
|
|
2010-02-23 16:52:03 +01:00
|
|
|
QIcon Target::overlayIcon() const
|
|
|
|
|
{
|
|
|
|
|
return m_overlayIcon;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Target::setOverlayIcon(QIcon icon)
|
|
|
|
|
{
|
|
|
|
|
m_overlayIcon = icon;
|
|
|
|
|
emit overlayIconChanged();
|
|
|
|
|
}
|
|
|
|
|
|
2010-02-09 19:05:15 +01:00
|
|
|
QString Target::toolTip() const
|
|
|
|
|
{
|
|
|
|
|
return m_toolTip;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Target::setToolTip(const QString &text)
|
|
|
|
|
{
|
|
|
|
|
m_toolTip = text;
|
|
|
|
|
emit toolTipChanged();
|
|
|
|
|
}
|
|
|
|
|
|
2010-02-08 15:50:06 +01:00
|
|
|
QVariantMap Target::toMap() const
|
|
|
|
|
{
|
|
|
|
|
const QList<BuildConfiguration *> bcs = buildConfigurations();
|
|
|
|
|
|
|
|
|
|
QVariantMap map(ProjectConfiguration::toMap());
|
|
|
|
|
map.insert(QLatin1String(ACTIVE_BC_KEY), bcs.indexOf(m_activeBuildConfiguration));
|
|
|
|
|
map.insert(QLatin1String(BC_COUNT_KEY), bcs.size());
|
|
|
|
|
for (int i = 0; i < bcs.size(); ++i)
|
|
|
|
|
map.insert(QString::fromLatin1(BC_KEY_PREFIX) + QString::number(i), bcs.at(i)->toMap());
|
|
|
|
|
|
2010-07-16 14:00:41 +02:00
|
|
|
const QList<DeployConfiguration *> dcs = deployConfigurations();
|
|
|
|
|
map.insert(QLatin1String(ACTIVE_DC_KEY), dcs.indexOf(m_activeDeployConfiguration));
|
|
|
|
|
map.insert(QLatin1String(DC_COUNT_KEY), dcs.size());
|
|
|
|
|
for (int i = 0; i < dcs.size(); ++i)
|
|
|
|
|
map.insert(QString::fromLatin1(DC_KEY_PREFIX) + QString::number(i), dcs.at(i)->toMap());
|
|
|
|
|
|
2010-02-08 15:50:06 +01:00
|
|
|
const QList<RunConfiguration *> rcs = runConfigurations();
|
|
|
|
|
map.insert(QLatin1String(ACTIVE_RC_KEY), rcs.indexOf(m_activeRunConfiguration));
|
|
|
|
|
map.insert(QLatin1String(RC_COUNT_KEY), rcs.size());
|
|
|
|
|
for (int i = 0; i < rcs.size(); ++i)
|
|
|
|
|
map.insert(QString::fromLatin1(RC_KEY_PREFIX) + QString::number(i), rcs.at(i)->toMap());
|
|
|
|
|
|
|
|
|
|
return map;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Target::setEnabled(bool enabled)
|
|
|
|
|
{
|
|
|
|
|
if (enabled == m_isEnabled)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
m_isEnabled = enabled;
|
|
|
|
|
emit targetEnabled(m_isEnabled);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool Target::fromMap(const QVariantMap &map)
|
|
|
|
|
{
|
|
|
|
|
if (!ProjectConfiguration::fromMap(map))
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
bool ok;
|
|
|
|
|
int bcCount(map.value(QLatin1String(BC_COUNT_KEY), 0).toInt(&ok));
|
|
|
|
|
if (!ok || bcCount < 0)
|
|
|
|
|
bcCount = 0;
|
|
|
|
|
int activeConfiguration(map.value(QLatin1String(ACTIVE_BC_KEY), 0).toInt(&ok));
|
|
|
|
|
if (!ok || activeConfiguration < 0)
|
|
|
|
|
activeConfiguration = 0;
|
|
|
|
|
if (0 > activeConfiguration || bcCount < activeConfiguration)
|
|
|
|
|
activeConfiguration = 0;
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < bcCount; ++i) {
|
|
|
|
|
const QString key(QString::fromLatin1(BC_KEY_PREFIX) + QString::number(i));
|
|
|
|
|
if (!map.contains(key))
|
|
|
|
|
return false;
|
|
|
|
|
BuildConfiguration *bc(buildConfigurationFactory()->restore(this, map.value(key).toMap()));
|
|
|
|
|
if (!bc)
|
|
|
|
|
continue;
|
|
|
|
|
addBuildConfiguration(bc);
|
|
|
|
|
if (i == activeConfiguration)
|
|
|
|
|
setActiveBuildConfiguration(bc);
|
|
|
|
|
}
|
2010-02-19 14:01:49 +01:00
|
|
|
if (buildConfigurations().isEmpty() && buildConfigurationFactory())
|
2010-02-08 15:50:06 +01:00
|
|
|
return false;
|
|
|
|
|
|
2010-07-16 14:00:41 +02:00
|
|
|
int dcCount(map.value(QLatin1String(DC_COUNT_KEY), 0).toInt(&ok));
|
|
|
|
|
if (!ok || dcCount < 0)
|
|
|
|
|
dcCount = 0;
|
|
|
|
|
activeConfiguration = map.value(QLatin1String(ACTIVE_DC_KEY), 0).toInt(&ok);
|
|
|
|
|
if (!ok || activeConfiguration < 0)
|
|
|
|
|
activeConfiguration = 0;
|
|
|
|
|
if (0 > activeConfiguration || dcCount < activeConfiguration)
|
|
|
|
|
activeConfiguration = 0;
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < dcCount; ++i) {
|
|
|
|
|
const QString key(QString::fromLatin1(DC_KEY_PREFIX) + QString::number(i));
|
|
|
|
|
if (!map.contains(key))
|
|
|
|
|
return false;
|
2010-08-02 15:35:51 +02:00
|
|
|
DeployConfiguration *dc = 0;
|
|
|
|
|
if (deployConfigurationFactory())
|
|
|
|
|
dc = deployConfigurationFactory()->restore(this, map.value(key).toMap());
|
2010-07-16 14:00:41 +02:00
|
|
|
if (!dc)
|
|
|
|
|
continue;
|
|
|
|
|
addDeployConfiguration(dc);
|
|
|
|
|
if (i == activeConfiguration)
|
|
|
|
|
setActiveDeployConfiguration(dc);
|
|
|
|
|
}
|
|
|
|
|
if (deployConfigurations().isEmpty() && deployConfigurationFactory())
|
|
|
|
|
return false;
|
|
|
|
|
|
2010-02-08 15:50:06 +01:00
|
|
|
int rcCount(map.value(QLatin1String(RC_COUNT_KEY), 0).toInt(&ok));
|
|
|
|
|
if (!ok || rcCount < 0)
|
|
|
|
|
rcCount = 0;
|
|
|
|
|
activeConfiguration = map.value(QLatin1String(ACTIVE_RC_KEY), 0).toInt(&ok);
|
|
|
|
|
if (!ok || activeConfiguration < 0)
|
|
|
|
|
activeConfiguration = 0;
|
|
|
|
|
if (0 > activeConfiguration || rcCount < activeConfiguration)
|
|
|
|
|
activeConfiguration = 0;
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < rcCount; ++i) {
|
|
|
|
|
const QString key(QString::fromLatin1(RC_KEY_PREFIX) + QString::number(i));
|
|
|
|
|
if (!map.contains(key))
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
QVariantMap valueMap(map.value(key).toMap());
|
|
|
|
|
IRunConfigurationFactory *factory(IRunConfigurationFactory::restoreFactory(this, valueMap));
|
|
|
|
|
if (!factory)
|
|
|
|
|
continue; // Skip RCs we do not know about.)
|
|
|
|
|
|
|
|
|
|
RunConfiguration *rc(factory->restore(this, valueMap));
|
|
|
|
|
if (!rc)
|
|
|
|
|
continue;
|
|
|
|
|
addRunConfiguration(rc);
|
|
|
|
|
if (i == activeConfiguration)
|
|
|
|
|
setActiveRunConfiguration(rc);
|
|
|
|
|
}
|
2010-02-10 14:44:58 +01:00
|
|
|
// Ignore missing RCs: We will just populate them using the default ones.
|
2010-02-08 15:50:06 +01:00
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------------
|
|
|
|
|
// ITargetFactory
|
|
|
|
|
// -------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
ITargetFactory::ITargetFactory(QObject *parent) :
|
|
|
|
|
QObject(parent)
|
2010-07-16 14:00:41 +02:00
|
|
|
{ }
|
2010-02-08 15:50:06 +01:00
|
|
|
|
|
|
|
|
ITargetFactory::~ITargetFactory()
|
2010-07-16 14:00:41 +02:00
|
|
|
{ }
|