forked from qt-creator/qt-creator
Ovi publishing wizard: Header cleanup.
This commit is contained in:
@@ -36,18 +36,21 @@
|
|||||||
#include "s60certificateinfo.h"
|
#include "s60certificateinfo.h"
|
||||||
#include "s60manager.h"
|
#include "s60manager.h"
|
||||||
|
|
||||||
#include <qt4projectmanager/qmakestep.h>
|
#include "qt4buildconfiguration.h"
|
||||||
#include <qt4projectmanager/makestep.h>
|
#include "qmakestep.h"
|
||||||
#include <qt4projectmanager/qt4project.h>
|
#include "makestep.h"
|
||||||
#include <profilereader.h>
|
#include "qt4project.h"
|
||||||
#include <projectexplorer/project.h>
|
#include "qtversionmanager.h"
|
||||||
#include <prowriter.h>
|
|
||||||
#include <qtversionmanager.h>
|
#include "profilereader.h"
|
||||||
|
#include "prowriter.h"
|
||||||
|
|
||||||
|
#include <projectexplorer/buildsteplist.h>
|
||||||
|
#include <projectexplorer/buildstep.h>
|
||||||
|
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
|
|
||||||
#include "projectexplorer/buildsteplist.h"
|
#include <QtCore/QProcess>
|
||||||
#include "projectexplorer/buildstep.h"
|
|
||||||
#include "projectexplorer/abstractprocessstep.h"
|
|
||||||
|
|
||||||
namespace Qt4ProjectManager {
|
namespace Qt4ProjectManager {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
@@ -151,7 +154,7 @@ void S60PublisherOvi::completeCreation()
|
|||||||
m_createSisProc->setWorkingDirectory(m_qt4bc->buildDirectory());
|
m_createSisProc->setWorkingDirectory(m_qt4bc->buildDirectory());
|
||||||
}
|
}
|
||||||
|
|
||||||
QString S60PublisherOvi::globalVendorName()
|
QString S60PublisherOvi::globalVendorName() const
|
||||||
{
|
{
|
||||||
QStringList vendorinfos = m_reader->values("vendorinfo");
|
QStringList vendorinfos = m_reader->values("vendorinfo");
|
||||||
|
|
||||||
@@ -163,7 +166,7 @@ QString S60PublisherOvi::globalVendorName()
|
|||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString S60PublisherOvi::localisedVendorNames()
|
QString S60PublisherOvi::localisedVendorNames() const
|
||||||
{
|
{
|
||||||
QStringList vendorinfos = m_reader->values("vendorinfo");
|
QStringList vendorinfos = m_reader->values("vendorinfo");
|
||||||
QString result;
|
QString result;
|
||||||
@@ -183,7 +186,7 @@ QString S60PublisherOvi::localisedVendorNames()
|
|||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool S60PublisherOvi::isVendorNameValid(const QString &vendorName)
|
bool S60PublisherOvi::isVendorNameValid(const QString &vendorName) const
|
||||||
{
|
{
|
||||||
//Check the given vendor name
|
//Check the given vendor name
|
||||||
foreach (const QString &rejectedVendorName, m_rejectedVendorNames)
|
foreach (const QString &rejectedVendorName, m_rejectedVendorNames)
|
||||||
@@ -192,17 +195,17 @@ bool S60PublisherOvi::isVendorNameValid(const QString &vendorName)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString S60PublisherOvi::qtVersion()
|
QString S60PublisherOvi::qtVersion() const
|
||||||
{
|
{
|
||||||
return m_qt4bc->qtVersion()->displayName();
|
return m_qt4bc->qtVersion()->displayName();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString S60PublisherOvi::uid3()
|
QString S60PublisherOvi::uid3() const
|
||||||
{
|
{
|
||||||
return m_reader->value("TARGET.UID3");
|
return m_reader->value("TARGET.UID3");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool S60PublisherOvi::isUID3Valid(const QString &uid3)
|
bool S60PublisherOvi::isUID3Valid(const QString &uid3) const
|
||||||
{
|
{
|
||||||
bool ok;
|
bool ok;
|
||||||
ulong hex = uid3.trimmed().toULong(&ok, 0);
|
ulong hex = uid3.trimmed().toULong(&ok, 0);
|
||||||
@@ -210,26 +213,26 @@ bool S60PublisherOvi::isUID3Valid(const QString &uid3)
|
|||||||
return ok && (hex >= AssignedRestrictedStart && hex <= AssignedRestrictedEnd);
|
return ok && (hex >= AssignedRestrictedStart && hex <= AssignedRestrictedEnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool S60PublisherOvi::isTestUID3(const QString &uid3)
|
bool S60PublisherOvi::isTestUID3(const QString &uid3) const
|
||||||
{
|
{
|
||||||
bool ok;
|
bool ok;
|
||||||
ulong hex = uid3.trimmed().toULong(&ok, 0);
|
ulong hex = uid3.trimmed().toULong(&ok, 0);
|
||||||
return ok && (hex >= TestStart && hex <=TestEnd);
|
return ok && (hex >= TestStart && hex <=TestEnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool S60PublisherOvi::isKnownSymbianSignedUID3(const QString &uid3)
|
bool S60PublisherOvi::isKnownSymbianSignedUID3(const QString &uid3) const
|
||||||
{
|
{
|
||||||
bool ok;
|
bool ok;
|
||||||
ulong hex = uid3.trimmed().toULong(&ok, 0);
|
ulong hex = uid3.trimmed().toULong(&ok, 0);
|
||||||
return ok && (hex >= SymbianSignedUnprotectedStart && hex <= SymbianSignedUnprotectedEnd);
|
return ok && (hex >= SymbianSignedUnprotectedStart && hex <= SymbianSignedUnprotectedEnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString S60PublisherOvi::capabilities()
|
QString S60PublisherOvi::capabilities() const
|
||||||
{
|
{
|
||||||
return m_reader->values("TARGET.CAPABILITY").join(", ");
|
return m_reader->values("TARGET.CAPABILITY").join(", ");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool S60PublisherOvi::isCapabilityOneOf(const QString &capability, CapabilityLevel level)
|
bool S60PublisherOvi::isCapabilityOneOf(const QString &capability, CapabilityLevel level) const
|
||||||
{
|
{
|
||||||
QStringList capabilitiesInLevel;
|
QStringList capabilitiesInLevel;
|
||||||
if (level == CertifiedSigned)
|
if (level == CertifiedSigned)
|
||||||
|
@@ -34,16 +34,18 @@
|
|||||||
#define S60PUBLISHEROVI_H
|
#define S60PUBLISHEROVI_H
|
||||||
|
|
||||||
#include <QtCore/QObject>
|
#include <QtCore/QObject>
|
||||||
#include <QtCore/QProcess>
|
|
||||||
#include <QtGui/QColor>
|
#include <QtGui/QColor>
|
||||||
|
|
||||||
#include "qt4buildconfiguration.h"
|
QT_BEGIN_NAMESPACE
|
||||||
|
class QProcess;
|
||||||
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
namespace ProjectExplorer {
|
namespace ProjectExplorer {
|
||||||
class Project;
|
class Project;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace Qt4ProjectManager {
|
namespace Qt4ProjectManager {
|
||||||
|
class Qt4BuildConfiguration;
|
||||||
class Qt4Project;
|
class Qt4Project;
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
class Qt4SymbianTarget;
|
class Qt4SymbianTarget;
|
||||||
@@ -104,19 +106,19 @@ public:
|
|||||||
void cleanUp();
|
void cleanUp();
|
||||||
void completeCreation();
|
void completeCreation();
|
||||||
|
|
||||||
QString globalVendorName();
|
QString globalVendorName() const;
|
||||||
QString localisedVendorNames();
|
QString localisedVendorNames() const;
|
||||||
bool isVendorNameValid(const QString &vendorName);
|
bool isVendorNameValid(const QString &vendorName) const;
|
||||||
|
|
||||||
QString qtVersion();
|
QString qtVersion() const;
|
||||||
|
|
||||||
QString uid3();
|
QString uid3() const;
|
||||||
bool isUID3Valid(const QString &uid3);
|
bool isUID3Valid(const QString &uid3) const;
|
||||||
bool isTestUID3(const QString &uid3);
|
bool isTestUID3(const QString &uid3) const;
|
||||||
bool isKnownSymbianSignedUID3(const QString &uid3);
|
bool isKnownSymbianSignedUID3(const QString &uid3) const;
|
||||||
|
|
||||||
QString capabilities();
|
QString capabilities() const;
|
||||||
bool isCapabilityOneOf(const QString &capability, CapabilityLevel level);
|
bool isCapabilityOneOf(const QString &capability, CapabilityLevel level) const;
|
||||||
|
|
||||||
void updateProFile();
|
void updateProFile();
|
||||||
void updateProFile(const QString &var, const QString &values);
|
void updateProFile(const QString &var, const QString &values);
|
||||||
|
@@ -30,14 +30,17 @@
|
|||||||
** Nokia at qt-info@nokia.com.
|
** Nokia at qt-info@nokia.com.
|
||||||
**
|
**
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
#include "s60publishingbuildsettingspageovi.h"
|
#include "s60publishingbuildsettingspageovi.h"
|
||||||
#include "s60publisherovi.h"
|
#include "s60publisherovi.h"
|
||||||
|
#include "ui_s60publishingbuildsettingspageovi.h"
|
||||||
|
#include "qt4buildconfiguration.h"
|
||||||
|
#include "qt4projectmanagerconstants.h"
|
||||||
|
|
||||||
#include <QtGui/QAbstractButton>
|
|
||||||
#include <projectexplorer/project.h>
|
#include <projectexplorer/project.h>
|
||||||
#include <projectexplorer/target.h>
|
#include <projectexplorer/target.h>
|
||||||
#include <qt4projectmanagerconstants.h>
|
|
||||||
#include <qt4projectmanager/qt4buildconfiguration.h>
|
#include <QtGui/QAbstractButton>
|
||||||
|
|
||||||
namespace Qt4ProjectManager {
|
namespace Qt4ProjectManager {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
@@ -34,14 +34,8 @@
|
|||||||
#ifndef S60PUBLISHINGBUILDSETTINGSPAGEOVI_H
|
#ifndef S60PUBLISHINGBUILDSETTINGSPAGEOVI_H
|
||||||
#define S60PUBLISHINGBUILDSETTINGSPAGEOVI_H
|
#define S60PUBLISHINGBUILDSETTINGSPAGEOVI_H
|
||||||
|
|
||||||
#include "ui_s60publishingbuildsettingspageovi.h"
|
|
||||||
#include "qt4buildconfiguration.h"
|
|
||||||
|
|
||||||
#include <projectexplorer/buildconfiguration.h>
|
|
||||||
#include <QtGui/QWizardPage>
|
#include <QtGui/QWizardPage>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class S60PublishingBuildSettingsPageOvi;
|
class S60PublishingBuildSettingsPageOvi;
|
||||||
@@ -50,6 +44,7 @@ QT_END_NAMESPACE
|
|||||||
|
|
||||||
namespace ProjectExplorer {
|
namespace ProjectExplorer {
|
||||||
class Project;
|
class Project;
|
||||||
|
class BuildConfiguration;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace Qt4ProjectManager {
|
namespace Qt4ProjectManager {
|
||||||
|
@@ -32,9 +32,11 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
#include "s60publishingresultspageovi.h"
|
#include "s60publishingresultspageovi.h"
|
||||||
#include "s60publisherovi.h"
|
#include "s60publisherovi.h"
|
||||||
|
#include "ui_s60publishingresultspageovi.h"
|
||||||
|
|
||||||
#include <QDesktopServices>
|
#include <QtGui/QDesktopServices>
|
||||||
#include <QtGui/QAbstractButton>
|
#include <QtGui/QAbstractButton>
|
||||||
|
#include <QtCore/QProcess>
|
||||||
|
|
||||||
namespace Qt4ProjectManager {
|
namespace Qt4ProjectManager {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
@@ -34,8 +34,6 @@
|
|||||||
#ifndef S60PUBLISHINGRESULTSPAGEOVI_H
|
#ifndef S60PUBLISHINGRESULTSPAGEOVI_H
|
||||||
#define S60PUBLISHINGRESULTSPAGEOVI_H
|
#define S60PUBLISHINGRESULTSPAGEOVI_H
|
||||||
|
|
||||||
#include "ui_s60publishingresultspageovi.h"
|
|
||||||
|
|
||||||
#include <QWizardPage>
|
#include <QWizardPage>
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
|
@@ -30,7 +30,9 @@
|
|||||||
** Nokia at qt-info@nokia.com.
|
** Nokia at qt-info@nokia.com.
|
||||||
**
|
**
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
#include "s60publishingsissettingspageovi.h"
|
#include "s60publishingsissettingspageovi.h"
|
||||||
|
#include "ui_s60publishingsissettingspageovi.h"
|
||||||
#include "s60publisherovi.h"
|
#include "s60publisherovi.h"
|
||||||
#include "s60certificateinfo.h"
|
#include "s60certificateinfo.h"
|
||||||
|
|
||||||
|
@@ -34,8 +34,6 @@
|
|||||||
#ifndef S60PUBLISHINGSISSETTINGSPAGEOVI_H
|
#ifndef S60PUBLISHINGSISSETTINGSPAGEOVI_H
|
||||||
#define S60PUBLISHINGSISSETTINGSPAGEOVI_H
|
#define S60PUBLISHINGSISSETTINGSPAGEOVI_H
|
||||||
|
|
||||||
#include "ui_s60publishingsissettingspageovi.h"
|
|
||||||
|
|
||||||
#include <QtGui/QWizardPage>
|
#include <QtGui/QWizardPage>
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
|
@@ -30,14 +30,15 @@
|
|||||||
** Nokia at qt-info@nokia.com.
|
** Nokia at qt-info@nokia.com.
|
||||||
**
|
**
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
#include "s60publishingwizardfactories.h"
|
#include "s60publishingwizardfactories.h"
|
||||||
#include "s60publishingwizardovi.h"
|
#include "s60publishingwizardovi.h"
|
||||||
|
|
||||||
#include <projectexplorer/target.h>
|
#include "qmakestep.h"
|
||||||
#include <qt4projectmanager/qmakestep.h>
|
#include "qt4project.h"
|
||||||
#include <qt4projectmanager/qt4project.h>
|
#include "qt4projectmanagerconstants.h"
|
||||||
#include <qt4projectmanager/qt4projectmanagerconstants.h>
|
|
||||||
|
|
||||||
|
#include <projectexplorer/target.h>
|
||||||
|
|
||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
|
|
||||||
|
@@ -38,8 +38,12 @@
|
|||||||
** $QT_END_LICENSE$
|
** $QT_END_LICENSE$
|
||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "s60publishingwizardovi.h"
|
#include "s60publishingwizardovi.h"
|
||||||
#include "s60publisherovi.h"
|
#include "s60publisherovi.h"
|
||||||
|
#include "s60publishingbuildsettingspageovi.h"
|
||||||
|
#include "s60publishingsissettingspageovi.h"
|
||||||
|
#include "s60publishingresultspageovi.h"
|
||||||
|
|
||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
|
|
||||||
|
@@ -42,11 +42,7 @@
|
|||||||
#ifndef S60PUBLISHINGWIZARDOVI_H
|
#ifndef S60PUBLISHINGWIZARDOVI_H
|
||||||
#define S60PUBLISHINGWIZARDOVI_H
|
#define S60PUBLISHINGWIZARDOVI_H
|
||||||
|
|
||||||
#include "s60publishingbuildsettingspageovi.h"
|
#include <QtGui/QWizard>
|
||||||
#include "s60publishingsissettingspageovi.h"
|
|
||||||
#include "s60publishingresultspageovi.h"
|
|
||||||
|
|
||||||
#include <QWizard>
|
|
||||||
|
|
||||||
namespace ProjectExplorer {
|
namespace ProjectExplorer {
|
||||||
class Project;
|
class Project;
|
||||||
@@ -55,6 +51,9 @@ class Project;
|
|||||||
namespace Qt4ProjectManager {
|
namespace Qt4ProjectManager {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
class S60PublisherOvi;
|
class S60PublisherOvi;
|
||||||
|
class S60PublishingBuildSettingsPageOvi;
|
||||||
|
class S60PublishingSisSettingsPageOvi;
|
||||||
|
class S60PublishingResultsPageOvi;
|
||||||
|
|
||||||
class S60PublishingWizardOvi : public QWizard
|
class S60PublishingWizardOvi : public QWizard
|
||||||
{
|
{
|
||||||
@@ -68,8 +67,8 @@ private:
|
|||||||
S60PublishingBuildSettingsPageOvi *m_buildSettingsPage;
|
S60PublishingBuildSettingsPageOvi *m_buildSettingsPage;
|
||||||
S60PublishingSisSettingsPageOvi *m_sisSettingsPage;
|
S60PublishingSisSettingsPageOvi *m_sisSettingsPage;
|
||||||
S60PublishingResultsPageOvi *m_resultsPage;
|
S60PublishingResultsPageOvi *m_resultsPage;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
} // namespace Qt4ProjectManager
|
} // namespace Qt4ProjectManager
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user