OSDN Git Service

Maemo: Create dedicated plugin.
authorChristian Kandeler <christian.kandeler@nokia.com>
Wed, 25 May 2011 09:23:25 +0000 (11:23 +0200)
committerChristian Kandeler <christian.kandeler@nokia.com>
Thu, 26 May 2011 11:31:05 +0000 (13:31 +0200)
No change in functionality for now. More support for generic remote
Linux support is planned to be added.

The changes in decreasing order of magnitude:
1) Move contents of qt4projectmanager/qt-maemo to new "RemoteLinux" plugin.
2) Make some classes in qt4nodes public for now. More decoupling
in that area will follow.
3) Fix some minor problems uncovered by the move.

Change-Id: I51d0c7977c10019eb6080cd6620bc28ecebad3c4
Reviewed-on: http://codereview.qt.nokia.com/106
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
181 files changed:
src/plugins/plugins.pro
src/plugins/qt4projectmanager/findqt4profiles.h
src/plugins/qt4projectmanager/librarydetailscontroller.h
src/plugins/qt4projectmanager/qmakestep.cpp
src/plugins/qt4projectmanager/qmakestep.h
src/plugins/qt4projectmanager/qt-desktop/qt4runconfiguration.cpp
src/plugins/qt4projectmanager/qt-desktop/qt4runconfiguration.h
src/plugins/qt4projectmanager/qt-maemo/maemomanager.cpp [deleted file]
src/plugins/qt4projectmanager/qt-maemo/maemomanager.h [deleted file]
src/plugins/qt4projectmanager/qt-maemo/qt-maemo.pri [deleted file]
src/plugins/qt4projectmanager/qt-s60/s60deployconfiguration.cpp
src/plugins/qt4projectmanager/qt-s60/s60deployconfiguration.h
src/plugins/qt4projectmanager/qt-s60/s60devicerunconfiguration.cpp
src/plugins/qt4projectmanager/qt-s60/s60devicerunconfiguration.h
src/plugins/qt4projectmanager/qt-s60/s60emulatorrunconfiguration.cpp
src/plugins/qt4projectmanager/qt-s60/s60emulatorrunconfiguration.h
src/plugins/qt4projectmanager/qt4buildconfiguration.cpp
src/plugins/qt4projectmanager/qt4buildconfiguration.h
src/plugins/qt4projectmanager/qt4nodes.cpp
src/plugins/qt4projectmanager/qt4nodes.h
src/plugins/qt4projectmanager/qt4project.cpp
src/plugins/qt4projectmanager/qt4project.h
src/plugins/qt4projectmanager/qt4projectmanager.pro
src/plugins/qt4projectmanager/qt4projectmanager_dependencies.pri
src/plugins/qt4projectmanager/qt4projectmanagerplugin.cpp
src/plugins/qt4projectmanager/qt4target.cpp
src/plugins/qt4projectmanager/qt4target.h
src/plugins/remotelinux/RemoteLinux.pluginspec.in [new file with mode: 0644]
src/plugins/remotelinux/abstractlinuxdevicedeploystep.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/abstractlinuxdevicedeploystep.cpp with 98% similarity]
src/plugins/remotelinux/abstractlinuxdevicedeploystep.h [moved from src/plugins/qt4projectmanager/qt-maemo/abstractlinuxdevicedeploystep.h with 98% similarity]
src/plugins/remotelinux/abstractmaemodeploystep.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/abstractmaemodeploystep.cpp with 99% similarity]
src/plugins/remotelinux/abstractmaemodeploystep.h [moved from src/plugins/qt4projectmanager/qt-maemo/abstractmaemodeploystep.h with 95% similarity]
src/plugins/remotelinux/images/qemu-run.png [moved from src/plugins/qt4projectmanager/qt-maemo/images/qemu-run.png with 100% similarity]
src/plugins/remotelinux/images/qemu-stop.png [moved from src/plugins/qt4projectmanager/qt-maemo/images/qemu-stop.png with 100% similarity]
src/plugins/remotelinux/images/qemu.xcf [moved from src/plugins/qt4projectmanager/qt-maemo/images/qemu.xcf with 100% similarity]
src/plugins/remotelinux/maemoanalyzersupport.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemoanalyzersupport.cpp with 97% similarity]
src/plugins/remotelinux/maemoanalyzersupport.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemoanalyzersupport.h with 96% similarity]
src/plugins/remotelinux/maemoconfigtestdialog.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemoconfigtestdialog.cpp with 99% similarity]
src/plugins/remotelinux/maemoconfigtestdialog.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemoconfigtestdialog.h with 97% similarity]
src/plugins/remotelinux/maemoconfigtestdialog.ui [moved from src/plugins/qt4projectmanager/qt-maemo/maemoconfigtestdialog.ui with 100% similarity]
src/plugins/remotelinux/maemoconstants.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemoconstants.h with 97% similarity]
src/plugins/remotelinux/maemodebugsupport.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemodebugsupport.cpp with 99% similarity]
src/plugins/remotelinux/maemodebugsupport.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemodebugsupport.h with 98% similarity]
src/plugins/remotelinux/maemodeployable.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeployable.h with 96% similarity]
src/plugins/remotelinux/maemodeployablelistmodel.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeployablelistmodel.cpp with 99% similarity]
src/plugins/remotelinux/maemodeployablelistmodel.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeployablelistmodel.h with 89% similarity]
src/plugins/remotelinux/maemodeployables.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeployables.cpp with 94% similarity]
src/plugins/remotelinux/maemodeployables.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeployables.h with 90% similarity]
src/plugins/remotelinux/maemodeploybymountstep.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeploybymountstep.cpp with 99% similarity]
src/plugins/remotelinux/maemodeploybymountstep.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeploybymountstep.h with 98% similarity]
src/plugins/remotelinux/maemodeployconfigurationwidget.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeployconfigurationwidget.cpp with 98% similarity]
src/plugins/remotelinux/maemodeployconfigurationwidget.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeployconfigurationwidget.h with 97% similarity]
src/plugins/remotelinux/maemodeployconfigurationwidget.ui [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeployconfigurationwidget.ui with 100% similarity]
src/plugins/remotelinux/maemodeploymentmounter.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeploymentmounter.cpp with 98% similarity]
src/plugins/remotelinux/maemodeploymentmounter.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeploymentmounter.h with 92% similarity]
src/plugins/remotelinux/maemodeploystep.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.h with 98% similarity]
src/plugins/remotelinux/maemodeploystepfactory.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeploystepfactory.cpp with 98% similarity]
src/plugins/remotelinux/maemodeploystepfactory.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeploystepfactory.h with 95% similarity]
src/plugins/remotelinux/maemodeploystepwidget.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeploystepwidget.cpp with 94% similarity]
src/plugins/remotelinux/maemodeploystepwidget.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeploystepwidget.h with 97% similarity]
src/plugins/remotelinux/maemodeploystepwidget.ui [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeploystepwidget.ui with 100% similarity]
src/plugins/remotelinux/maemodeviceconfigurations.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigurations.cpp with 99% similarity]
src/plugins/remotelinux/maemodeviceconfigurations.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigurations.h with 99% similarity]
src/plugins/remotelinux/maemodeviceconfigurationssettingswidget.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigurationssettingswidget.cpp with 99% similarity]
src/plugins/remotelinux/maemodeviceconfigurationssettingswidget.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigurationssettingswidget.h with 98% similarity]
src/plugins/remotelinux/maemodeviceconfigurationssettingswidget.ui [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigurationssettingswidget.ui with 100% similarity]
src/plugins/remotelinux/maemodeviceconfigwizard.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigwizard.cpp with 99% similarity]
src/plugins/remotelinux/maemodeviceconfigwizard.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigwizard.h with 96% similarity]
src/plugins/remotelinux/maemodeviceconfigwizardkeycreationpage.ui [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigwizardkeycreationpage.ui with 100% similarity]
src/plugins/remotelinux/maemodeviceconfigwizardkeydeploymentpage.ui [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigwizardkeydeploymentpage.ui with 100% similarity]
src/plugins/remotelinux/maemodeviceconfigwizardlogindatapage.ui [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigwizardlogindatapage.ui with 100% similarity]
src/plugins/remotelinux/maemodeviceconfigwizardpreviouskeysetupcheckpage.ui [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigwizardpreviouskeysetupcheckpage.ui with 100% similarity]
src/plugins/remotelinux/maemodeviceconfigwizardreusekeyscheckpage.ui [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigwizardreusekeyscheckpage.ui with 100% similarity]
src/plugins/remotelinux/maemodeviceconfigwizardstartpage.ui [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigwizardstartpage.ui with 100% similarity]
src/plugins/remotelinux/maemodeviceenvreader.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeviceenvreader.cpp with 99% similarity]
src/plugins/remotelinux/maemodeviceenvreader.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemodeviceenvreader.h with 98% similarity]
src/plugins/remotelinux/maemodirectdeviceuploadstep.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemodirectdeviceuploadstep.cpp with 99% similarity]
src/plugins/remotelinux/maemodirectdeviceuploadstep.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemodirectdeviceuploadstep.h with 97% similarity]
src/plugins/remotelinux/maemoglobal.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemoglobal.cpp with 97% similarity]
src/plugins/remotelinux/maemoglobal.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemoglobal.h with 97% similarity]
src/plugins/remotelinux/maemoinstalltosysrootstep.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemoinstalltosysrootstep.cpp with 99% similarity]
src/plugins/remotelinux/maemoinstalltosysrootstep.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemoinstalltosysrootstep.h with 98% similarity]
src/plugins/remotelinux/maemokeydeployer.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemokeydeployer.cpp with 98% similarity]
src/plugins/remotelinux/maemokeydeployer.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemokeydeployer.h with 97% similarity]
src/plugins/remotelinux/maemomountspecification.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemomountspecification.cpp with 96% similarity]
src/plugins/remotelinux/maemomountspecification.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemomountspecification.h with 96% similarity]
src/plugins/remotelinux/maemopackagecreationfactory.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationfactory.cpp with 93% similarity]
src/plugins/remotelinux/maemopackagecreationfactory.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationfactory.h with 95% similarity]
src/plugins/remotelinux/maemopackagecreationstep.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationstep.cpp with 99% similarity]
src/plugins/remotelinux/maemopackagecreationstep.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationstep.h with 91% similarity]
src/plugins/remotelinux/maemopackagecreationwidget.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationwidget.cpp with 99% similarity]
src/plugins/remotelinux/maemopackagecreationwidget.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationwidget.h with 97% similarity]
src/plugins/remotelinux/maemopackagecreationwidget.ui [moved from src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationwidget.ui with 100% similarity]
src/plugins/remotelinux/maemopackageinstaller.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemopackageinstaller.cpp with 99% similarity]
src/plugins/remotelinux/maemopackageinstaller.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemopackageinstaller.h with 98% similarity]
src/plugins/remotelinux/maemopackageuploader.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemopackageuploader.cpp with 98% similarity]
src/plugins/remotelinux/maemopackageuploader.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemopackageuploader.h with 97% similarity]
src/plugins/remotelinux/maemopertargetdeviceconfigurationlistmodel.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemopertargetdeviceconfigurationlistmodel.cpp with 98% similarity]
src/plugins/remotelinux/maemopertargetdeviceconfigurationlistmodel.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemopertargetdeviceconfigurationlistmodel.h with 97% similarity]
src/plugins/remotelinux/maemoprofilesupdatedialog.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemoprofilesupdatedialog.cpp with 98% similarity]
src/plugins/remotelinux/maemoprofilesupdatedialog.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemoprofilesupdatedialog.h with 97% similarity]
src/plugins/remotelinux/maemoprofilesupdatedialog.ui [moved from src/plugins/qt4projectmanager/qt-maemo/maemoprofilesupdatedialog.ui with 100% similarity]
src/plugins/remotelinux/maemopublishedprojectmodel.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemopublishedprojectmodel.cpp with 98% similarity]
src/plugins/remotelinux/maemopublishedprojectmodel.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemopublishedprojectmodel.h with 97% similarity]
src/plugins/remotelinux/maemopublisherfremantlefree.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemopublisherfremantlefree.cpp with 99% similarity]
src/plugins/remotelinux/maemopublisherfremantlefree.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemopublisherfremantlefree.h with 94% similarity]
src/plugins/remotelinux/maemopublishingbuildsettingspagefremantlefree.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemopublishingbuildsettingspagefremantlefree.cpp with 97% similarity]
src/plugins/remotelinux/maemopublishingbuildsettingspagefremantlefree.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemopublishingbuildsettingspagefremantlefree.h with 92% similarity]
src/plugins/remotelinux/maemopublishingbuildsettingspagefremantlefree.ui [moved from src/plugins/qt4projectmanager/qt-maemo/maemopublishingbuildsettingspagefremantlefree.ui with 100% similarity]
src/plugins/remotelinux/maemopublishingfileselectiondialog.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemopublishingfileselectiondialog.cpp with 97% similarity]
src/plugins/remotelinux/maemopublishingfileselectiondialog.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemopublishingfileselectiondialog.h with 96% similarity]
src/plugins/remotelinux/maemopublishingfileselectiondialog.ui [moved from src/plugins/qt4projectmanager/qt-maemo/maemopublishingfileselectiondialog.ui with 100% similarity]
src/plugins/remotelinux/maemopublishingresultpagefremantlefree.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemopublishingresultpagefremantlefree.cpp with 98% similarity]
src/plugins/remotelinux/maemopublishingresultpagefremantlefree.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemopublishingresultpagefremantlefree.h with 97% similarity]
src/plugins/remotelinux/maemopublishingresultpagefremantlefree.ui [moved from src/plugins/qt4projectmanager/qt-maemo/maemopublishingresultpagefremantlefree.ui with 100% similarity]
src/plugins/remotelinux/maemopublishinguploadsettingspagefremantlefree.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemopublishinguploadsettingspagefremantlefree.cpp with 98% similarity]
src/plugins/remotelinux/maemopublishinguploadsettingspagefremantlefree.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemopublishinguploadsettingspagefremantlefree.h with 97% similarity]
src/plugins/remotelinux/maemopublishinguploadsettingspagefremantlefree.ui [moved from src/plugins/qt4projectmanager/qt-maemo/maemopublishinguploadsettingspagefremantlefree.ui with 100% similarity]
src/plugins/remotelinux/maemopublishingwizardfactories.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemopublishingwizardfactories.cpp with 97% similarity]
src/plugins/remotelinux/maemopublishingwizardfactories.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemopublishingwizardfactories.h with 96% similarity]
src/plugins/remotelinux/maemopublishingwizardfremantlefree.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemopublishingwizardfremantlefree.cpp with 97% similarity]
src/plugins/remotelinux/maemopublishingwizardfremantlefree.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemopublishingwizardfremantlefree.h with 97% similarity]
src/plugins/remotelinux/maemoqemumanager.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemoqemumanager.cpp with 99% similarity]
src/plugins/remotelinux/maemoqemumanager.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemoqemumanager.h with 97% similarity]
src/plugins/remotelinux/maemoqemuruntime.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemoqemuruntime.h with 97% similarity]
src/plugins/remotelinux/maemoqemuruntimeparser.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemoqemuruntimeparser.cpp with 99% similarity]
src/plugins/remotelinux/maemoqemuruntimeparser.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemoqemuruntimeparser.h with 96% similarity]
src/plugins/remotelinux/maemoqemusettings.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemoqemusettings.cpp with 97% similarity]
src/plugins/remotelinux/maemoqemusettings.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemoqemusettings.h with 96% similarity]
src/plugins/remotelinux/maemoqemusettingswidget.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemoqemusettingswidget.cpp with 97% similarity]
src/plugins/remotelinux/maemoqemusettingswidget.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemoqemusettingswidget.h with 96% similarity]
src/plugins/remotelinux/maemoqemusettingswidget.ui [moved from src/plugins/qt4projectmanager/qt-maemo/maemoqemusettingswidget.ui with 100% similarity]
src/plugins/remotelinux/maemoqtversion.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemoqtversion.cpp with 95% similarity]
src/plugins/remotelinux/maemoqtversion.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemoqtversion.h with 96% similarity]
src/plugins/remotelinux/maemoqtversionfactory.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemoqtversionfactory.cpp with 95% similarity]
src/plugins/remotelinux/maemoqtversionfactory.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemoqtversionfactory.h with 98% similarity]
src/plugins/remotelinux/maemoremotecopyfacility.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemoremotecopyfacility.cpp with 98% similarity]
src/plugins/remotelinux/maemoremotecopyfacility.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemoremotecopyfacility.h with 97% similarity]
src/plugins/remotelinux/maemoremotemounter.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemoremotemounter.cpp with 99% similarity]
src/plugins/remotelinux/maemoremotemounter.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemoremotemounter.h with 95% similarity]
src/plugins/remotelinux/maemoremotemountsmodel.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemoremotemountsmodel.cpp with 98% similarity]
src/plugins/remotelinux/maemoremotemountsmodel.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemoremotemountsmodel.h with 98% similarity]
src/plugins/remotelinux/maemoremoteprocessesdialog.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemoremoteprocessesdialog.cpp with 98% similarity]
src/plugins/remotelinux/maemoremoteprocessesdialog.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemoremoteprocessesdialog.h with 97% similarity]
src/plugins/remotelinux/maemoremoteprocessesdialog.ui [moved from src/plugins/qt4projectmanager/qt-maemo/maemoremoteprocessesdialog.ui with 100% similarity]
src/plugins/remotelinux/maemoremoteprocesslist.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemoremoteprocesslist.cpp with 99% similarity]
src/plugins/remotelinux/maemoremoteprocesslist.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemoremoteprocesslist.h with 98% similarity]
src/plugins/remotelinux/maemorunconfiguration.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemorunconfiguration.cpp with 95% similarity]
src/plugins/remotelinux/maemorunconfiguration.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemorunconfiguration.h with 90% similarity]
src/plugins/remotelinux/maemorunconfigurationwidget.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemorunconfigurationwidget.cpp with 98% similarity]
src/plugins/remotelinux/maemorunconfigurationwidget.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemorunconfigurationwidget.h with 98% similarity]
src/plugins/remotelinux/maemoruncontrol.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.cpp with 98% similarity]
src/plugins/remotelinux/maemoruncontrol.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.h with 97% similarity]
src/plugins/remotelinux/maemorunfactories.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemorunfactories.cpp with 98% similarity]
src/plugins/remotelinux/maemorunfactories.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemorunfactories.h with 97% similarity]
src/plugins/remotelinux/maemosettingspages.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemosettingspages.cpp with 87% similarity]
src/plugins/remotelinux/maemosettingspages.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemosettingspages.h with 89% similarity]
src/plugins/remotelinux/maemosshconfigdialog.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemosshconfigdialog.cpp with 95% similarity]
src/plugins/remotelinux/maemosshconfigdialog.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemosshconfigdialog.h with 98% similarity]
src/plugins/remotelinux/maemosshconfigdialog.ui [moved from src/plugins/qt4projectmanager/qt-maemo/maemosshconfigdialog.ui with 100% similarity]
src/plugins/remotelinux/maemosshrunner.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemosshrunner.cpp with 99% similarity]
src/plugins/remotelinux/maemosshrunner.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemosshrunner.h with 98% similarity]
src/plugins/remotelinux/maemotoolchain.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemotoolchain.cpp with 98% similarity]
src/plugins/remotelinux/maemotoolchain.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemotoolchain.h with 98% similarity]
src/plugins/remotelinux/maemouploadandinstalldeploystep.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemouploadandinstalldeploystep.cpp with 99% similarity]
src/plugins/remotelinux/maemouploadandinstalldeploystep.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemouploadandinstalldeploystep.h with 98% similarity]
src/plugins/remotelinux/maemousedportsgatherer.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/maemousedportsgatherer.cpp with 98% similarity]
src/plugins/remotelinux/maemousedportsgatherer.h [moved from src/plugins/qt4projectmanager/qt-maemo/maemousedportsgatherer.h with 97% similarity]
src/plugins/remotelinux/qt-maemo.qrc [moved from src/plugins/qt4projectmanager/qt-maemo/qt-maemo.qrc with 100% similarity]
src/plugins/remotelinux/qt4maemodeployconfiguration.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/qt4maemodeployconfiguration.cpp with 98% similarity]
src/plugins/remotelinux/qt4maemodeployconfiguration.h [moved from src/plugins/qt4projectmanager/qt-maemo/qt4maemodeployconfiguration.h with 98% similarity]
src/plugins/remotelinux/qt4maemotarget.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/qt4maemotarget.cpp with 99% similarity]
src/plugins/remotelinux/qt4maemotarget.h [moved from src/plugins/qt4projectmanager/qt-maemo/qt4maemotarget.h with 89% similarity]
src/plugins/remotelinux/qt4maemotargetfactory.cpp [moved from src/plugins/qt4projectmanager/qt-maemo/qt4maemotargetfactory.cpp with 83% similarity]
src/plugins/remotelinux/qt4maemotargetfactory.h [moved from src/plugins/qt4projectmanager/qt-maemo/qt4maemotargetfactory.h with 89% similarity]
src/plugins/remotelinux/remotelinux.pri [new file with mode: 0644]
src/plugins/remotelinux/remotelinux.pro [new file with mode: 0644]
src/plugins/remotelinux/remotelinux_dependencies.pri [new file with mode: 0644]
src/plugins/remotelinux/remotelinux_export.h [new file with mode: 0644]
src/plugins/remotelinux/remotelinuxplugin.cpp [new file with mode: 0644]
src/plugins/remotelinux/remotelinuxplugin.h [new file with mode: 0644]

index 02f6b3e..4db5102 100644 (file)
@@ -42,7 +42,8 @@ SUBDIRS   = plugin_coreplugin \
             plugin_qmljstools \
             plugin_macros \
             debugger/dumper.pro \
-            plugin_qmlprofiler
+            plugin_qmlprofiler \
+            plugin_remotelinux
 
 !win32 {
      SUBDIRS += plugin_valgrind
@@ -149,7 +150,13 @@ plugin_qt4projectmanager.depends += plugin_qtsupport
 plugin_qt4projectmanager.depends += plugin_cpptools
 plugin_qt4projectmanager.depends += plugin_debugger
 plugin_qt4projectmanager.depends += plugin_qmljseditor
-plugin_qt4projectmanager.depends += plugin_analyzerbase
+
+plugin_remotelinux.subdir = remotelinux
+plugin_remotelinux.depends = plugin_analyzerbase
+plugin_remotelinux.depends += plugin_coreplugin
+plugin_remotelinux.depends += plugin_debugger
+plugin_remotelinux.depends += plugin_projectexplorer
+plugin_remotelinux.depends += plugin_qt4projectmanager
 
 plugin_locator.subdir = locator
 plugin_locator.depends = plugin_coreplugin
index 6a2ba3e..9231d35 100644 (file)
@@ -36,9 +36,8 @@
 #include <projectexplorer/nodesvisitor.h>
 
 namespace Qt4ProjectManager {
-namespace Internal {
-
 class Qt4ProFileNode;
+namespace Internal {
 
 class FindQt4ProFiles: protected ProjectExplorer::NodesVisitor {
 
index 4151dfd..a52c04b 100644 (file)
 #include "addlibrarywizard.h"
 
 namespace Qt4ProjectManager {
+class Qt4ProFileNode;
 namespace Internal {
 
 namespace Ui {
     class LibraryDetailsWidget;
 }
 
-class Qt4ProFileNode;
-
 class LibraryDetailsController : public QObject
 {
     Q_OBJECT
index de216f6..2187f59 100644 (file)
@@ -31,6 +31,7 @@
 **************************************************************************/
 
 #include "qmakestep.h"
+#include "ui_qmakestep.h"
 
 #include <projectexplorer/projectexplorerconstants.h>
 #include "qmakeparser.h"
@@ -465,16 +466,17 @@ bool QMakeStep::fromMap(const QVariantMap &map)
 ////
 
 QMakeStepConfigWidget::QMakeStepConfigWidget(QMakeStep *step)
-    : BuildStepConfigWidget(), m_step(step), m_ignoreChange(false)
+    : BuildStepConfigWidget(), m_ui(new Ui::QMakeStep), m_step(step),
+      m_ignoreChange(false)
 {
-    m_ui.setupUi(this);
-    connect(m_ui.qmakeAdditonalArgumentsLineEdit, SIGNAL(textEdited(const QString&)),
+    m_ui->setupUi(this);
+    connect(m_ui->qmakeAdditonalArgumentsLineEdit, SIGNAL(textEdited(const QString&)),
             this, SLOT(qmakeArgumentsLineEdited()));
-    connect(m_ui.buildConfigurationComboBox, SIGNAL(currentIndexChanged(int)),
+    connect(m_ui->buildConfigurationComboBox, SIGNAL(currentIndexChanged(int)),
             this, SLOT(buildConfigurationSelected()));
-    connect(m_ui.qmlDebuggingLibraryCheckBox, SIGNAL(toggled(bool)),
+    connect(m_ui->qmlDebuggingLibraryCheckBox, SIGNAL(toggled(bool)),
             this, SLOT(linkQmlDebuggingLibraryChecked(bool)));
-    connect(m_ui.qmlDebuggingWarningText, SIGNAL(linkActivated(QString)),
+    connect(m_ui->qmlDebuggingWarningText, SIGNAL(linkActivated(QString)),
             this, SLOT(buildQmlDebuggingHelper()));
     connect(step, SIGNAL(userArgumentsChanged()),
             this, SLOT(userArgumentsChanged()));
@@ -490,10 +492,15 @@ QMakeStepConfigWidget::QMakeStepConfigWidget(QMakeStep *step)
             this, SLOT(qtVersionsDumpUpdated(QString)));
 }
 
+QMakeStepConfigWidget::~QMakeStepConfigWidget()
+{
+    delete m_ui;
+}
+
 void QMakeStepConfigWidget::init()
 {
-    m_ui.qmakeAdditonalArgumentsLineEdit->setText(m_step->userArguments());
-    m_ui.qmlDebuggingLibraryCheckBox->setChecked(m_step->linkQmlDebuggingLibrary());
+    m_ui->qmakeAdditonalArgumentsLineEdit->setText(m_step->userArguments());
+    m_ui->qmlDebuggingLibraryCheckBox->setChecked(m_step->linkQmlDebuggingLibrary());
 
     qmakeBuildConfigChanged();
 
@@ -531,7 +538,7 @@ void QMakeStepConfigWidget::qmakeBuildConfigChanged()
     Qt4BuildConfiguration *bc = m_step->qt4BuildConfiguration();
     bool debug = bc->qmakeBuildConfiguration() & QtSupport::BaseQtVersion::DebugBuild;
     m_ignoreChange = true;
-    m_ui.buildConfigurationComboBox->setCurrentIndex(debug? 0 : 1);
+    m_ui->buildConfigurationComboBox->setCurrentIndex(debug? 0 : 1);
     m_ignoreChange = false;
     updateSummaryLabel();
     updateEffectiveQMakeCall();
@@ -541,7 +548,7 @@ void QMakeStepConfigWidget::userArgumentsChanged()
 {
     if (m_ignoreChange)
         return;
-    m_ui.qmakeAdditonalArgumentsLineEdit->setText(m_step->userArguments());
+    m_ui->qmakeAdditonalArgumentsLineEdit->setText(m_step->userArguments());
     updateSummaryLabel();
     updateEffectiveQMakeCall();
 }
@@ -550,7 +557,7 @@ void QMakeStepConfigWidget::linkQmlDebuggingLibraryChanged()
 {
     if (m_ignoreChange)
         return;
-    m_ui.qmlDebuggingLibraryCheckBox->setChecked(m_step->linkQmlDebuggingLibrary());
+    m_ui->qmlDebuggingLibraryCheckBox->setChecked(m_step->linkQmlDebuggingLibrary());
 
     updateSummaryLabel();
     updateEffectiveQMakeCall();
@@ -560,7 +567,7 @@ void QMakeStepConfigWidget::linkQmlDebuggingLibraryChanged()
 void QMakeStepConfigWidget::qmakeArgumentsLineEdited()
 {
     m_ignoreChange = true;
-    m_step->setUserArguments(m_ui.qmakeAdditonalArgumentsLineEdit->text());
+    m_step->setUserArguments(m_ui->qmakeAdditonalArgumentsLineEdit->text());
     m_ignoreChange = false;
 
     updateSummaryLabel();
@@ -573,7 +580,7 @@ void QMakeStepConfigWidget::buildConfigurationSelected()
         return;
     Qt4BuildConfiguration *bc = m_step->qt4BuildConfiguration();
     QtSupport::BaseQtVersion::QmakeBuildConfigs buildConfiguration = bc->qmakeBuildConfiguration();
-    if (m_ui.buildConfigurationComboBox->currentIndex() == 0) { // debug
+    if (m_ui->buildConfigurationComboBox->currentIndex() == 0) { // debug
         buildConfiguration = buildConfiguration | QtSupport::BaseQtVersion::DebugBuild;
     } else {
         buildConfiguration = buildConfiguration & ~QtSupport::BaseQtVersion::DebugBuild;
@@ -638,13 +645,13 @@ void QMakeStepConfigWidget::updateSummaryLabel()
 
 void QMakeStepConfigWidget::updateQmlDebuggingOption()
 {
-    m_ui.qmlDebuggingLibraryCheckBox->setEnabled(m_step->isQmlDebuggingLibrarySupported());
+    m_ui->qmlDebuggingLibraryCheckBox->setEnabled(m_step->isQmlDebuggingLibrarySupported());
 
     QtSupport::BaseQtVersion *qtVersion = m_step->qt4BuildConfiguration()->qtVersion();
     if (!qtVersion || !qtVersion->needsQmlDebuggingLibrary())
-        m_ui.debuggingLibraryLabel->setText(tr("Enable QML debugging:"));
+        m_ui->debuggingLibraryLabel->setText(tr("Enable QML debugging:"));
     else
-        m_ui.debuggingLibraryLabel->setText(tr("Link QML debugging library:"));
+        m_ui->debuggingLibraryLabel->setText(tr("Link QML debugging library:"));
 
     QString warningText;
 
@@ -653,8 +660,8 @@ void QMakeStepConfigWidget::updateQmlDebuggingOption()
     else if (m_step->linkQmlDebuggingLibrary())
         warningText = tr("Might make your application vulnerable. Only use in a safe environment!");
 
-    m_ui.qmlDebuggingWarningText->setText(warningText);
-    m_ui.qmlDebuggingWarningIcon->setVisible(!warningText.isEmpty());
+    m_ui->qmlDebuggingWarningText->setText(warningText);
+    m_ui->qmlDebuggingWarningIcon->setVisible(!warningText.isEmpty());
 }
 
 void QMakeStepConfigWidget::updateEffectiveQMakeCall()
@@ -664,7 +671,7 @@ void QMakeStepConfigWidget::updateEffectiveQMakeCall()
     QString program = tr("<No qtversion>");
     if (qtVersion)
         program = QFileInfo(qtVersion->qmakeCommand()).fileName();
-    m_ui.qmakeArgumentsEdit->setPlainText(program + QLatin1Char(' ') + m_step->allArguments());
+    m_ui->qmakeArgumentsEdit->setPlainText(program + QLatin1Char(' ') + m_step->allArguments());
 }
 
 ////
index a9d0a13..4f217e6 100644 (file)
 #ifndef QMAKESTEP_H
 #define QMAKESTEP_H
 
-#include "ui_qmakestep.h"
+#include <QtCore/qglobal.h>
+
+QT_BEGIN_NAMESPACE
+namespace Ui { class QMakeStep; }
+QT_END_NAMESPACE
 
 #include <projectexplorer/abstractprocessstep.h>
 
@@ -137,6 +141,7 @@ class QMakeStepConfigWidget : public ProjectExplorer::BuildStepConfigWidget
     Q_OBJECT
 public:
     QMakeStepConfigWidget(QMakeStep *step);
+    ~QMakeStepConfigWidget();
     void init();
     QString summaryText() const;
     QString displayName() const;
@@ -160,7 +165,7 @@ private:
     void updateSummaryLabel();
     void updateQmlDebuggingOption();
     void updateEffectiveQMakeCall();
-    Ui::QMakeStep m_ui;
+    Ui::QMakeStep *m_ui;
     QMakeStep *m_step;
     QString m_summaryText;
     bool m_ignoreChange;
index 6508f9e..4d52a55 100644 (file)
@@ -153,7 +153,7 @@ void Qt4RunConfiguration::handleParseState(bool success)
         emit isEnabledChanged(!enabled);
 }
 
-void Qt4RunConfiguration::proFileUpdated(Qt4ProjectManager::Internal::Qt4ProFileNode *pro, bool success)
+void Qt4RunConfiguration::proFileUpdated(Qt4ProjectManager::Qt4ProFileNode *pro, bool success)
 {
     if (m_proFilePath != pro->path())
         return;
@@ -161,7 +161,7 @@ void Qt4RunConfiguration::proFileUpdated(Qt4ProjectManager::Internal::Qt4ProFile
     emit effectiveTargetInformationChanged();
 }
 
-void Qt4RunConfiguration::proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode *pro)
+void Qt4RunConfiguration::proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode *pro)
 {
     if (pro->path() != m_proFilePath)
         return;
@@ -174,11 +174,11 @@ void Qt4RunConfiguration::ctor()
 
     connect(qt4Target(), SIGNAL(environmentChanged()),
             this, SIGNAL(baseEnvironmentChanged()));
-    connect(qt4Target()->qt4Project(), SIGNAL(proFileUpdated(Qt4ProjectManager::Internal::Qt4ProFileNode*,bool)),
-            this, SLOT(proFileUpdated(Qt4ProjectManager::Internal::Qt4ProFileNode*,bool)));
+    connect(qt4Target()->qt4Project(), SIGNAL(proFileUpdated(Qt4ProjectManager::Qt4ProFileNode*,bool)),
+            this, SLOT(proFileUpdated(Qt4ProjectManager::Qt4ProFileNode*,bool)));
 
-    connect(qt4Target()->qt4Project(), SIGNAL(proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode*)),
-            this, SLOT(proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode*)));
+    connect(qt4Target()->qt4Project(), SIGNAL(proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode*)),
+            this, SLOT(proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode*)));
 }
 
 //////
index 7187075..f68c0d6 100644 (file)
@@ -62,11 +62,11 @@ namespace Qt4ProjectManager {
 
 class Qt4Project;
 class Qt4BaseTarget;
+class Qt4ProFileNode;
 
 namespace Internal {
 class Qt4DesktopTarget;
 class Qt4PriFileNode;
-class Qt4ProFileNode;
 class Qt4RunConfigurationFactory;
 
 class Qt4RunConfiguration : public ProjectExplorer::LocalApplicationRunConfiguration
@@ -117,8 +117,8 @@ signals:
     void effectiveTargetInformationChanged();
 
 private slots:
-    void proFileUpdated(Qt4ProjectManager::Internal::Qt4ProFileNode *pro, bool success);
-    void proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode *pro);
+    void proFileUpdated(Qt4ProjectManager::Qt4ProFileNode *pro, bool success);
+    void proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode *pro);
 
 protected:
     Qt4RunConfiguration(Qt4BaseTarget *parent, Qt4RunConfiguration *source);
diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemomanager.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemomanager.cpp
deleted file mode 100644 (file)
index 2a96cfe..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-/**************************************************************************
-**
-** This file is part of Qt Creator
-**
-** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
-**
-** Contact: Nokia Corporation (info@qt.nokia.com)
-**
-**
-** GNU Lesser General Public License Usage
-**
-** 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.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** Other Usage
-**
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-** If you have questions regarding the use of this file, please contact
-** Nokia at info@qt.nokia.com.
-**
-**************************************************************************/
-
-#include "maemomanager.h"
-
-#include "maemoconstants.h"
-#include "maemodeployable.h"
-#include "maemodeploystepfactory.h"
-#include "maemodeviceconfigurations.h"
-#include "maemoglobal.h"
-#include "maemopackagecreationfactory.h"
-#include "maemopublishingwizardfactories.h"
-#include "maemoqemumanager.h"
-#include "maemorunfactories.h"
-#include "maemosettingspages.h"
-#include "maemotoolchain.h"
-#include "qt4maemodeployconfiguration.h"
-#include "maemoqtversionfactory.h"
-#include "qt4maemotargetfactory.h"
-#include "qt4projectmanager/qt4projectmanagerconstants.h"
-
-#include <extensionsystem/pluginmanager.h>
-
-#include <QtCore/QDir>
-#include <QtCore/QFile>
-#include <QtCore/QTextStream>
-
-using namespace ExtensionSystem;
-using namespace ProjectExplorer;
-
-namespace Qt4ProjectManager {
-    namespace Internal {
-
-MaemoManager *MaemoManager::m_instance = 0;
-
-MaemoManager::MaemoManager()
-    : QObject(0)
-    , m_runControlFactory(new MaemoRunControlFactory(this))
-    , m_runConfigurationFactory(new MaemoRunConfigurationFactory(this))
-    , m_deployConfigurationFactory(new Qt4MaemoDeployConfigurationFactory(this))
-    , m_packageCreationFactory(new MaemoPackageCreationFactory(this))
-    , m_deployStepFactory(new MaemoDeployStepFactory(this))
-    , m_deviceConfigurationsSettingsPage(new MaemoDeviceConfigurationsSettingsPage(this))
-    , m_qemuSettingsPage(new MaemoQemuSettingsPage(this))
-    , m_publishingFactoryFremantleFree(new MaemoPublishingWizardFactoryFremantleFree(this))
-    , m_maemoTargetFactory(new Qt4MaemoTargetFactory(this))
-    , m_toolChainFactory(new MaemoToolChainFactory)
-    , m_maemoQtVersionFactory(new MaemoQtVersionFactory(this))
-{
-    Q_ASSERT(!m_instance);
-
-    m_instance = this;
-    MaemoQemuManager::instance(this);
-    MaemoDeviceConfigurations::instance(this);
-
-    PluginManager *pluginManager = PluginManager::instance();
-    pluginManager->addObject(m_toolChainFactory);
-    pluginManager->addObject(m_runControlFactory);
-    pluginManager->addObject(m_runConfigurationFactory);
-    pluginManager->addObject(m_deployConfigurationFactory);
-    pluginManager->addObject(m_packageCreationFactory);
-    pluginManager->addObject(m_deployStepFactory);
-    pluginManager->addObject(m_deviceConfigurationsSettingsPage);
-    pluginManager->addObject(m_qemuSettingsPage);
-    pluginManager->addObject(m_publishingFactoryFremantleFree);
-    pluginManager->addObject(m_maemoTargetFactory);
-    pluginManager->addObject(m_maemoQtVersionFactory);
-
-    qRegisterMetaType<MaemoDeployable>("MaemoDeployable");
-}
-
-MaemoManager::~MaemoManager()
-{
-    PluginManager *pluginManager = PluginManager::instance();
-    pluginManager->removeObject(m_maemoQtVersionFactory);
-    pluginManager->removeObject(m_maemoTargetFactory);
-    pluginManager->removeObject(m_publishingFactoryFremantleFree);
-    pluginManager->removeObject(m_qemuSettingsPage);
-    pluginManager->removeObject(m_deviceConfigurationsSettingsPage);
-    pluginManager->removeObject(m_deployStepFactory);
-    pluginManager->removeObject(m_packageCreationFactory);
-    pluginManager->removeObject(m_deployConfigurationFactory);
-    pluginManager->removeObject(m_runConfigurationFactory);
-    pluginManager->removeObject(m_runControlFactory);
-    pluginManager->removeObject(m_toolChainFactory);
-    delete m_toolChainFactory;
-
-    m_instance = 0;
-}
-
-MaemoManager &MaemoManager::instance()
-{
-    Q_ASSERT(m_instance);
-    return *m_instance;
-}
-
-} // namespace Internal
-} // namespace Qt4ProjectManager
diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemomanager.h b/src/plugins/qt4projectmanager/qt-maemo/maemomanager.h
deleted file mode 100644 (file)
index 0c14f04..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-/**************************************************************************
-**
-** This file is part of Qt Creator
-**
-** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
-**
-** Contact: Nokia Corporation (info@qt.nokia.com)
-**
-**
-** GNU Lesser General Public License Usage
-**
-** 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.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** Other Usage
-**
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-** If you have questions regarding the use of this file, please contact
-** Nokia at info@qt.nokia.com.
-**
-**************************************************************************/
-
-#ifndef MAEMOMANAGER_H
-#define MAEMOMANAGER_H
-
-#include <QtCore/QObject>
-
-namespace Qt4ProjectManager {
-namespace Internal {
-
-class MaemoDeployStepFactory;
-class MaemoPackageCreationFactory;
-class MaemoPublishingWizardFactoryFremantleFree;
-class MaemoRunControlFactory;
-class MaemoRunConfigurationFactory;
-class MaemoDeviceConfigurationsSettingsPage;
-class MaemoQemuManager;
-class MaemoQemuSettingsPage;
-class Qt4MaemoDeployConfigurationFactory;
-class Qt4MaemoTargetFactory;
-class MaemoToolChainFactory;
-class MaemoQtVersionFactory;
-
-class MaemoManager : public QObject
-{
-    Q_OBJECT
-
-public:
-    MaemoManager();
-    ~MaemoManager();
-    static MaemoManager &instance();
-
-    MaemoDeviceConfigurationsSettingsPage *deviceConfigurationsSettingsPage() const { return m_deviceConfigurationsSettingsPage; }
-    MaemoQemuSettingsPage *qemuSettingsPage() const { return m_qemuSettingsPage; }
-
-private:
-    static MaemoManager *m_instance;
-
-    MaemoRunControlFactory *m_runControlFactory;
-    MaemoRunConfigurationFactory *m_runConfigurationFactory;
-    Qt4MaemoDeployConfigurationFactory *m_deployConfigurationFactory;
-    MaemoPackageCreationFactory *m_packageCreationFactory;
-    MaemoDeployStepFactory *m_deployStepFactory;
-    MaemoDeviceConfigurationsSettingsPage *m_deviceConfigurationsSettingsPage;
-    MaemoQemuSettingsPage *m_qemuSettingsPage;
-    MaemoQemuManager *m_qemuRuntimeManager;
-    MaemoPublishingWizardFactoryFremantleFree *m_publishingFactoryFremantleFree;
-    Qt4MaemoTargetFactory *m_maemoTargetFactory;
-    MaemoToolChainFactory *m_toolChainFactory;
-    MaemoQtVersionFactory *m_maemoQtVersionFactory;
-};
-
-    } // namespace Internal
-} // namespace Qt4ProjectManager
-
-#endif // MAEMOMANAGER_H
diff --git a/src/plugins/qt4projectmanager/qt-maemo/qt-maemo.pri b/src/plugins/qt4projectmanager/qt-maemo/qt-maemo.pri
deleted file mode 100644 (file)
index 66a552b..0000000
+++ /dev/null
@@ -1,151 +0,0 @@
-HEADERS += \
-    $$PWD/maemoconfigtestdialog.h \
-    $$PWD/maemoconstants.h \
-    $$PWD/maemodeviceconfigurations.h \
-    $$PWD/maemomanager.h \
-    $$PWD/maemorunconfiguration.h \
-    $$PWD/maemorunconfigurationwidget.h \
-    $$PWD/maemoruncontrol.h \
-    $$PWD/maemorunfactories.h \
-    $$PWD/maemosettingspages.h \
-    $$PWD/maemodeviceconfigurationssettingswidget.h \
-    $$PWD/maemosshconfigdialog.h \
-    $$PWD/maemotoolchain.h \
-    $$PWD/maemopackagecreationstep.h \
-    $$PWD/maemopackagecreationfactory.h \
-    $$PWD/maemopackagecreationwidget.h \
-    $$PWD/maemodeployablelistmodel.h \
-    $$PWD/maemoqemumanager.h \
-    $$PWD/maemodeployables.h \
-    $$PWD/maemodeployable.h \
-    $$PWD/maemodeploystepwidget.h \
-    $$PWD/maemodeploystepfactory.h \
-    $$PWD/maemoglobal.h \
-    $$PWD/maemosshrunner.h \
-    $$PWD/maemodebugsupport.h \
-    $$PWD/maemoanalyzersupport.h \
-    $$PWD/maemoremotemountsmodel.h \
-    $$PWD/maemodeviceenvreader.h \
-    $$PWD/maemomountspecification.h \
-    $$PWD/maemoremotemounter.h \
-    $$PWD/maemoprofilesupdatedialog.h \
-    $$PWD/maemousedportsgatherer.h \
-    $$PWD/maemoremoteprocesslist.h \
-    $$PWD/maemoremoteprocessesdialog.h \
-    $$PWD/maemopublishingwizardfactories.h \
-    $$PWD/maemopublishingbuildsettingspagefremantlefree.h \
-    $$PWD/maemopublishingfileselectiondialog.h \
-    $$PWD/maemopublishedprojectmodel.h \
-    $$PWD/maemopublishinguploadsettingspagefremantlefree.h \
-    $$PWD/maemopublishingwizardfremantlefree.h \
-    $$PWD/maemopublishingresultpagefremantlefree.h \
-    $$PWD/maemopublisherfremantlefree.h \
-    $$PWD/maemoqemuruntime.h \
-    $$PWD/maemoqemuruntimeparser.h \
-    $$PWD/maemoqemusettingswidget.h \
-    $$PWD/maemoqemusettings.h \
-    $$PWD/qt4maemotargetfactory.h \
-    $$PWD/qt4maemotarget.h \
-    $$PWD/qt4maemodeployconfiguration.h \
-    $$PWD/maemodeviceconfigwizard.h \
-    $$PWD/maemokeydeployer.h \
-    $$PWD/maemopertargetdeviceconfigurationlistmodel.h \
-    $$PWD/maemodeployconfigurationwidget.h \
-    $$PWD/maemoinstalltosysrootstep.h \
-    $$PWD/maemodeploymentmounter.h \
-    $$PWD/maemopackageuploader.h \
-    $$PWD/maemopackageinstaller.h \
-    $$PWD/maemoremotecopyfacility.h \
-    $$PWD/abstractmaemodeploystep.h \
-    $$PWD/maemodeploybymountstep.h \
-    $$PWD/maemouploadandinstalldeploystep.h \
-    $$PWD/maemodirectdeviceuploadstep.h \
-    $$PWD/abstractlinuxdevicedeploystep.h \
-    $$PWD/maemoqtversionfactory.h \
-    $$PWD/maemoqtversion.h
-
-SOURCES += \
-    $$PWD/maemoconfigtestdialog.cpp \
-    $$PWD/maemodeviceconfigurations.cpp \
-    $$PWD/maemomanager.cpp \
-    $$PWD/maemorunconfiguration.cpp \
-    $$PWD/maemorunconfigurationwidget.cpp \
-    $$PWD/maemoruncontrol.cpp \
-    $$PWD/maemorunfactories.cpp \
-    $$PWD/maemosettingspages.cpp \
-    $$PWD/maemodeviceconfigurationssettingswidget.cpp \
-    $$PWD/maemosshconfigdialog.cpp \
-    $$PWD/maemotoolchain.cpp \
-    $$PWD/maemopackagecreationstep.cpp \
-    $$PWD/maemopackagecreationfactory.cpp \
-    $$PWD/maemopackagecreationwidget.cpp \
-    $$PWD/maemodeployablelistmodel.cpp \
-    $$PWD/maemoqemumanager.cpp \
-    $$PWD/maemodeployables.cpp \
-    $$PWD/maemodeploystepwidget.cpp \
-    $$PWD/maemodeploystepfactory.cpp \
-    $$PWD/maemoglobal.cpp \
-    $$PWD/maemosshrunner.cpp \
-    $$PWD/maemodebugsupport.cpp \
-    $$PWD/maemoanalyzersupport.cpp \
-    $$PWD/maemoremotemountsmodel.cpp \
-    $$PWD/maemodeviceenvreader.cpp \
-    $$PWD/maemomountspecification.cpp \
-    $$PWD/maemoremotemounter.cpp \
-    $$PWD/maemoprofilesupdatedialog.cpp \
-    $$PWD/maemousedportsgatherer.cpp \
-    $$PWD/maemoremoteprocesslist.cpp \
-    $$PWD/maemoremoteprocessesdialog.cpp \
-    $$PWD/maemopublishingwizardfactories.cpp \
-    $$PWD/maemopublishingbuildsettingspagefremantlefree.cpp \
-    $$PWD/maemopublishingfileselectiondialog.cpp \
-    $$PWD/maemopublishedprojectmodel.cpp \
-    $$PWD/maemopublishinguploadsettingspagefremantlefree.cpp \
-    $$PWD/maemopublishingwizardfremantlefree.cpp \
-    $$PWD/maemopublishingresultpagefremantlefree.cpp \
-    $$PWD/maemopublisherfremantlefree.cpp \
-    $$PWD/maemoqemuruntimeparser.cpp \
-    $$PWD/maemoqemusettingswidget.cpp \
-    $$PWD/maemoqemusettings.cpp \
-    $$PWD/qt4maemotargetfactory.cpp \
-    $$PWD/qt4maemotarget.cpp \
-    $$PWD/qt4maemodeployconfiguration.cpp \
-    $$PWD/maemodeviceconfigwizard.cpp \
-    $$PWD/maemokeydeployer.cpp \
-    $$PWD/maemopertargetdeviceconfigurationlistmodel.cpp \
-    $$PWD/maemodeployconfigurationwidget.cpp \
-    $$PWD/maemoinstalltosysrootstep.cpp \
-    $$PWD/maemodeploymentmounter.cpp \
-    $$PWD/maemopackageuploader.cpp \
-    $$PWD/maemopackageinstaller.cpp \
-    $$PWD/maemoremotecopyfacility.cpp \
-    $$PWD/abstractmaemodeploystep.cpp \
-    $$PWD/maemodeploybymountstep.cpp \
-    $$PWD/maemouploadandinstalldeploystep.cpp \
-    $$PWD/maemodirectdeviceuploadstep.cpp \
-    $$PWD/abstractlinuxdevicedeploystep.cpp \
-    $$PWD/maemoqtversionfactory.cpp \
-    $$PWD/maemoqtversion.cpp
-
-FORMS += \
-    $$PWD/maemoconfigtestdialog.ui \
-    $$PWD/maemodeviceconfigurationssettingswidget.ui \
-    $$PWD/maemosshconfigdialog.ui \
-    $$PWD/maemopackagecreationwidget.ui \
-    $$PWD/maemodeploystepwidget.ui \
-    $$PWD/maemoprofilesupdatedialog.ui \
-    $$PWD/maemoremoteprocessesdialog.ui \
-    $$PWD/maemopublishingbuildsettingspagefremantlefree.ui \
-    $$PWD/maemopublishingfileselectiondialog.ui \
-    $$PWD/maemopublishinguploadsettingspagefremantlefree.ui \
-    $$PWD/maemopublishingresultpagefremantlefree.ui \
-    $$PWD/maemoqemusettingswidget.ui \
-    $$PWD/maemodeviceconfigwizardstartpage.ui \
-    $$PWD/maemodeviceconfigwizardpreviouskeysetupcheckpage.ui \
-    $$PWD/maemodeviceconfigwizardreusekeyscheckpage.ui \
-    $$PWD/maemodeviceconfigwizardkeycreationpage.ui \
-    $$PWD/maemodeviceconfigwizardkeydeploymentpage.ui \
-    $$PWD/maemodeployconfigurationwidget.ui \
-    $$PWD/maemodeviceconfigwizardlogindatapage.ui
-
-RESOURCES += $$PWD/qt-maemo.qrc
index f984e15..d082c80 100644 (file)
@@ -117,9 +117,9 @@ void S60DeployConfiguration::ctor()
     setDefaultDisplayName(defaultDisplayName());
     // TODO disable S60 Deploy Configuration while parsing
     // requires keeping track of the parsing state of the project
-//    connect(qt4Target()->qt4Project(), SIGNAL(proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode*)),
+//    connect(qt4Target()->qt4Project(), SIGNAL(proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode*)),
 //            this, SLOT(targetInformationInvalidated()));
-    connect(qt4Target()->qt4Project(), SIGNAL(proFileUpdated(Qt4ProjectManager::Internal::Qt4ProFileNode*,bool)),
+    connect(qt4Target()->qt4Project(), SIGNAL(proFileUpdated(Qt4ProjectManager::Qt4ProFileNode*,bool)),
             this, SIGNAL(targetInformationChanged()));
     connect(qt4Target(), SIGNAL(activeBuildConfigurationChanged(ProjectExplorer::BuildConfiguration*)),
             this, SLOT(updateActiveBuildConfiguration(ProjectExplorer::BuildConfiguration*)));
index 130fb39..b092d6a 100644 (file)
@@ -46,10 +46,10 @@ class BaseQtVersion;
 }
 
 namespace Qt4ProjectManager {
+class Qt4ProFileNode;
 
 namespace Internal {
 class Qt4SymbianTarget;
-class Qt4ProFileNode;
 class S60DeployConfigurationFactory;
 class S60DeviceRunConfiguration;
 
index e1c342d..1c62ea7 100644 (file)
@@ -118,10 +118,10 @@ void S60DeviceRunConfiguration::ctor()
         setDefaultDisplayName(tr("Run on Symbian device"));
 
     Qt4Project *pro = qt4Target()->qt4Project();
-    connect(pro, SIGNAL(proFileUpdated(Qt4ProjectManager::Internal::Qt4ProFileNode*,bool)),
-            this, SLOT(proFileUpdate(Qt4ProjectManager::Internal::Qt4ProFileNode*,bool)));
-    connect(pro, SIGNAL(proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode *)),
-            this, SLOT(proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode *)));
+    connect(pro, SIGNAL(proFileUpdated(Qt4ProjectManager::Qt4ProFileNode*,bool)),
+            this, SLOT(proFileUpdate(Qt4ProjectManager::Qt4ProFileNode*,bool)));
+    connect(pro, SIGNAL(proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode *)),
+            this, SLOT(proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode *)));
 }
 
 void S60DeviceRunConfiguration::handleParserState(bool success)
@@ -132,14 +132,14 @@ void S60DeviceRunConfiguration::handleParserState(bool success)
         emit isEnabledChanged(!enabled);
 }
 
-void S60DeviceRunConfiguration::proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode *pro)
+void S60DeviceRunConfiguration::proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode *pro)
 {
     if (m_proFilePath != pro->path())
         return;
     handleParserState(false);
 }
 
-void S60DeviceRunConfiguration::proFileUpdate(Qt4ProjectManager::Internal::Qt4ProFileNode *pro, bool success)
+void S60DeviceRunConfiguration::proFileUpdate(Qt4ProjectManager::Qt4ProFileNode *pro, bool success)
 {
     if (m_proFilePath != pro->path())
         return;
index 9484e15..0b72c5a 100644 (file)
@@ -47,11 +47,11 @@ QT_END_NAMESPACE
 
 namespace Qt4ProjectManager {
 class Qt4BaseTarget;
+class Qt4ProFileNode;
 
 namespace Internal {
 class SymbianQtVersion;
 class Qt4SymbianTarget;
-class Qt4ProFileNode;
 class S60DeviceRunConfigurationFactory;
 class CodaRunControl;
 
@@ -97,8 +97,8 @@ protected:
     QString defaultDisplayName() const;
     virtual bool fromMap(const QVariantMap &map);
 private slots:
-    void proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode *pro);
-    void proFileUpdate(Qt4ProjectManager::Internal::Qt4ProFileNode *pro, bool success);
+    void proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode *pro);
+    void proFileUpdate(Qt4ProjectManager::Qt4ProFileNode *pro, bool success);
 
 private:
     void ctor();
index f856e6f..888b5f5 100644 (file)
@@ -100,10 +100,10 @@ void S60EmulatorRunConfiguration::ctor()
         //: S60 emulator run configuration default display name (no pro-file name)
         setDefaultDisplayName(tr("Run on Symbian Emulator"));
     Qt4Project *pro = qt4Target()->qt4Project();
-    connect(pro, SIGNAL(proFileUpdated(Qt4ProjectManager::Internal::Qt4ProFileNode*,bool)),
-            this, SLOT(proFileUpdate(Qt4ProjectManager::Internal::Qt4ProFileNode*,bool)));
-    connect(pro, SIGNAL(proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode *)),
-            this, SLOT(proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode *)));
+    connect(pro, SIGNAL(proFileUpdated(Qt4ProjectManager::Qt4ProFileNode*,bool)),
+            this, SLOT(proFileUpdate(Qt4ProjectManager::Qt4ProFileNode*,bool)));
+    connect(pro, SIGNAL(proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode *)),
+            this, SLOT(proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode *)));
 }
 
 
@@ -120,14 +120,14 @@ void S60EmulatorRunConfiguration::handleParserState(bool success)
     }
 }
 
-void S60EmulatorRunConfiguration::proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode *pro)
+void S60EmulatorRunConfiguration::proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode *pro)
 {
     if (m_proFilePath != pro->path())
         return;
     handleParserState(false);
 }
 
-void S60EmulatorRunConfiguration::proFileUpdate(Qt4ProjectManager::Internal::Qt4ProFileNode *pro, bool success)
+void S60EmulatorRunConfiguration::proFileUpdate(Qt4ProjectManager::Qt4ProFileNode *pro, bool success)
 {
     if (m_proFilePath != pro->path())
         return;
index 72cd160..616462d 100644 (file)
@@ -51,10 +51,10 @@ class DetailsWidget;
 namespace Qt4ProjectManager {
 class Qt4Project;
 class Qt4BaseTarget;
+class Qt4ProFileNode;
 
 namespace Internal {
 class Qt4SymbianTarget;
-class Qt4ProFileNode;
 class S60EmulatorRunConfigurationFactory;
 
 class S60EmulatorRunConfiguration : public ProjectExplorer::RunConfiguration
@@ -84,8 +84,8 @@ signals:
     void targetInformationChanged();
 
 private slots:
-    void proFileUpdate(Qt4ProjectManager::Internal::Qt4ProFileNode *pro, bool success);
-    void proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode *pro);
+    void proFileUpdate(Qt4ProjectManager::Qt4ProFileNode *pro, bool success);
+    void proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode *pro);
 
 protected:
     S60EmulatorRunConfiguration(Qt4ProjectManager::Qt4BaseTarget *parent, S60EmulatorRunConfiguration *source);
index 8ecdbca..a287c15 100644 (file)
@@ -249,7 +249,7 @@ QString Qt4BuildConfiguration::buildDirectory() const
 /// If only a sub tree should be build this function returns which sub node
 /// should be build
 /// \see Qt4BuildConfiguration::setSubNodeBuild
-Qt4ProjectManager::Internal::Qt4ProFileNode *Qt4BuildConfiguration::subNodeBuild() const
+Qt4ProjectManager::Qt4ProFileNode *Qt4BuildConfiguration::subNodeBuild() const
 {
     return m_subNodeBuild;
 }
@@ -260,7 +260,7 @@ Qt4ProjectManager::Internal::Qt4ProFileNode *Qt4BuildConfiguration::subNodeBuild
 /// calling BuildManager::buildProject( BuildConfiguration * )
 /// and reset immediately afterwards
 /// That is m_subNodesBuild is set only temporarly
-void Qt4BuildConfiguration::setSubNodeBuild(Qt4ProjectManager::Internal::Qt4ProFileNode *node)
+void Qt4BuildConfiguration::setSubNodeBuild(Qt4ProjectManager::Qt4ProFileNode *node)
 {
     m_subNodeBuild = node;
 }
index f092771..9e57e61 100644 (file)
@@ -48,10 +48,7 @@ class QMakeStep;
 class MakeStep;
 class Qt4BaseTarget;
 class Qt4BuildConfigurationFactory;
-
-namespace Internal {
 class Qt4ProFileNode;
-}
 
 class QT4PROJECTMANAGER_EXPORT Qt4BuildConfiguration : public ProjectExplorer::BuildConfiguration
 {
@@ -71,8 +68,8 @@ public:
     QString shadowBuildDirectory() const;
     void setShadowBuildAndDirectory(bool shadowBuild, const QString &buildDirectory);
 
-    void setSubNodeBuild(Qt4ProjectManager::Internal::Qt4ProFileNode *node);
-    Qt4ProjectManager::Internal::Qt4ProFileNode *subNodeBuild() const;
+    void setSubNodeBuild(Qt4ProjectManager::Qt4ProFileNode *node);
+    Qt4ProjectManager::Qt4ProFileNode *subNodeBuild() const;
 
     // returns the qtVersion
     QtSupport::BaseQtVersion *qtVersion() const;
@@ -166,7 +163,7 @@ private:
     QString m_lastEmmitedBuildDirectory;
     int m_qtVersionId;
     QtSupport::BaseQtVersion::QmakeBuildConfigs m_qmakeBuildConfiguration;
-    Qt4ProjectManager::Internal::Qt4ProFileNode *m_subNodeBuild;
+    Qt4ProjectManager::Qt4ProFileNode *m_subNodeBuild;
 };
 
 class QT4PROJECTMANAGER_EXPORT Qt4BuildConfigurationFactory : public ProjectExplorer::IBuildConfigurationFactory
index 076d59e..6ce6a3e 100644 (file)
@@ -464,7 +464,7 @@ struct InternalNode
                 filesToRemove << *existingNodeIter;
                 ++existingNodeIter;
             } else if ((*existingNodeIter)->path() > *newPathIter) {
-                filesToAdd << new FileNode(*newPathIter, type, false);
+                filesToAdd << new ProjectExplorer::FileNode(*newPathIter, type, false);
                 ++newPathIter;
             } else { // *existingNodeIter->path() == *newPathIter
                 ++existingNodeIter;
@@ -476,7 +476,7 @@ struct InternalNode
             ++existingNodeIter;
         }
         while (newPathIter != files.constEnd()) {
-            filesToAdd << new FileNode(*newPathIter, type, false);
+            filesToAdd << new ProjectExplorer::FileNode(*newPathIter, type, false);
             ++newPathIter;
         }
 
@@ -538,7 +538,7 @@ void Qt4PriFileNode::update(ProFile *includeFileExact, QtSupport::ProFileReader
 {
     // add project file node
     if (m_fileNodes.isEmpty())
-        addFileNodes(QList<FileNode*>() << new FileNode(m_projectFilePath, ProjectFileType, false), this);
+        addFileNodes(QList<FileNode*>() << new ProjectExplorer::FileNode(m_projectFilePath, ProjectExplorer::ProjectFileType, false), this);
 
     const QString &projectDir = m_qt4ProFileNode->m_projectDir;
 
@@ -825,7 +825,7 @@ QList<ProjectNode::ProjectAction> Qt4PriFileNode::supportedActions(Node *node) c
         break;
     }
 
-    FileNode *fileNode = qobject_cast<FileNode *>(node);
+    ProjectExplorer::FileNode *fileNode = qobject_cast<FileNode *>(node);
     if (fileNode && fileNode->fileType() != ProjectExplorer::ProjectFileType)
         actions << Rename;
 
@@ -1251,6 +1251,51 @@ QSet<QString> Qt4PriFileNode::filterFiles(ProjectExplorer::FileType fileType, co
     return result;
 }
 
+static Qt4ProjectType proFileTemplateTypeToProjectType(ProFileEvaluator::TemplateType type)
+{
+    switch (type) {
+    case ProFileEvaluator::TT_Unknown:
+    case ProFileEvaluator::TT_Application:
+        return ApplicationTemplate;
+    case ProFileEvaluator::TT_Library:
+        return LibraryTemplate;
+    case ProFileEvaluator::TT_Script:
+        return ScriptTemplate;
+    case ProFileEvaluator::TT_Aux:
+        return AuxTemplate;
+    case ProFileEvaluator::TT_Subdirs:
+        return SubDirsTemplate;
+    default:
+        return InvalidProject;
+    }
+}
+
+namespace {
+    // find all ui files in project
+    class FindUiFileNodesVisitor : public ProjectExplorer::NodesVisitor {
+    public:
+        void visitProjectNode(ProjectNode *projectNode)
+        {
+            visitFolderNode(projectNode);
+        }
+        void visitFolderNode(FolderNode *folderNode)
+        {
+            foreach (FileNode *fileNode, folderNode->fileNodes()) {
+                if (fileNode->fileType() == ProjectExplorer::FormType)
+                    uiFileNodes << fileNode;
+            }
+        }
+        QList<FileNode*> uiFileNodes;
+    };
+}
+
+Qt4NodesWatcher::Qt4NodesWatcher(QObject *parent)
+        : NodesWatcher(parent)
+{
+}
+
+} // namespace Internal
+
 
 const Qt4ProFileNode *Qt4ProFileNode::findProFileFor(const QString &fileName) const
 {
@@ -1355,7 +1400,7 @@ Qt4ProFileNode::~Qt4ProFileNode()
 {
     CPlusPlus::CppModelManagerInterface *modelManager
             = CPlusPlus::CppModelManagerInterface::instance();
-    QMap<QString, Qt4UiCodeModelSupport *>::const_iterator it, end;
+    QMap<QString, Internal::Qt4UiCodeModelSupport *>::const_iterator it, end;
     end = m_uiCodeModelSupport.constEnd();
     for (it = m_uiCodeModelSupport.constBegin(); it != end; ++it) {
         modelManager->removeEditorSupport(it.value());
@@ -1408,8 +1453,8 @@ QStringList Qt4ProFileNode::variableValue(const Qt4Variable var) const
 
 void Qt4ProFileNode::emitProFileUpdated()
 {
-    foreach (NodesWatcher *watcher, watchers())
-        if (Qt4NodesWatcher *qt4Watcher = qobject_cast<Qt4NodesWatcher*>(watcher))
+    foreach (ProjectExplorer::NodesWatcher *watcher, watchers())
+        if (Internal::Qt4NodesWatcher *qt4Watcher = qobject_cast<Internal::Qt4NodesWatcher*>(watcher))
             emit qt4Watcher->proFileUpdated(this, m_validParse);
 
     foreach (ProjectNode *subNode, subProjectNodes()) {
@@ -1421,8 +1466,8 @@ void Qt4ProFileNode::emitProFileUpdated()
 
 void Qt4ProFileNode::emitProFileInvalidated()
 {
-    foreach (NodesWatcher *watcher, watchers())
-        if (Qt4NodesWatcher *qt4Watcher = qobject_cast<Qt4NodesWatcher*>(watcher))
+    foreach (ProjectExplorer::NodesWatcher *watcher, watchers())
+        if (Internal::Qt4NodesWatcher *qt4Watcher = qobject_cast<Internal::Qt4NodesWatcher*>(watcher))
             emit qt4Watcher->proFileInvalidated(this);
 
     foreach (ProjectNode *subNode, subProjectNodes()) {
@@ -1459,8 +1504,8 @@ void Qt4ProFileNode::update()
 {
     if (m_validParse) {
         m_validParse = false;
-        foreach (NodesWatcher *watcher, watchers())
-            if (Qt4NodesWatcher *qt4Watcher = qobject_cast<Qt4NodesWatcher*>(watcher))
+        foreach (ProjectExplorer::NodesWatcher *watcher, watchers())
+            if (Internal::Qt4NodesWatcher *qt4Watcher = qobject_cast<Internal::Qt4NodesWatcher*>(watcher))
                 emit qt4Watcher->proFileInvalidated(this);
     }
 
@@ -1507,25 +1552,6 @@ void Qt4ProFileNode::applyAsyncEvaluate()
     m_project->decrementPendingEvaluateFutures();
 }
 
-static Qt4ProjectType proFileTemplateTypeToProjectType(ProFileEvaluator::TemplateType type)
-{
-    switch (type) {
-    case ProFileEvaluator::TT_Unknown:
-    case ProFileEvaluator::TT_Application:
-        return ApplicationTemplate;
-    case ProFileEvaluator::TT_Library:
-        return LibraryTemplate;
-    case ProFileEvaluator::TT_Script:
-        return ScriptTemplate;
-    case ProFileEvaluator::TT_Aux:
-        return AuxTemplate;
-    case ProFileEvaluator::TT_Subdirs:
-        return SubDirsTemplate;
-    default:
-        return InvalidProject;
-    }
-}
-
 void Qt4ProFileNode::applyEvaluate(EvalResult evalResult, bool async)
 {
     if (!m_readerExact)
@@ -1538,8 +1564,8 @@ void Qt4ProFileNode::applyEvaluate(EvalResult evalResult, bool async)
             m_project->proFileParseError(tr("Error while parsing file %1. Giving up.").arg(m_projectFilePath));
             invalidate();
         }
-        foreach (NodesWatcher *watcher, watchers())
-            if (Qt4NodesWatcher *qt4Watcher = qobject_cast<Qt4NodesWatcher*>(watcher))
+        foreach (ProjectExplorer::NodesWatcher *watcher, watchers())
+            if (Internal::Qt4NodesWatcher *qt4Watcher = qobject_cast<Internal::Qt4NodesWatcher*>(watcher))
                 emit qt4Watcher->proFileUpdated(this, false);
         return;
     }
@@ -1547,7 +1573,7 @@ void Qt4ProFileNode::applyEvaluate(EvalResult evalResult, bool async)
     if (debug)
         qDebug() << "Qt4ProFileNode - updating files for file " << m_projectFilePath;
 
-    Qt4ProjectType projectType = proFileTemplateTypeToProjectType(
+    Qt4ProjectType projectType = Internal::proFileTemplateTypeToProjectType(
                 (evalResult == EvalOk ? m_readerExact : m_readerCumulative)->templateType());
     if (projectType != m_projectType) {
         Qt4ProjectType oldType = m_projectType;
@@ -1565,8 +1591,8 @@ void Qt4ProFileNode::applyEvaluate(EvalResult evalResult, bool async)
 
         // really emit here? or at the end? Nobody is connected to this signal at the moment
         // so we kind of can ignore that question for now
-        foreach (NodesWatcher *watcher, watchers())
-            if (Qt4NodesWatcher *qt4Watcher = qobject_cast<Qt4NodesWatcher*>(watcher))
+        foreach (ProjectExplorer::NodesWatcher *watcher, watchers())
+            if (Internal::Qt4NodesWatcher *qt4Watcher = qobject_cast<Internal::Qt4NodesWatcher*>(watcher))
                 emit qt4Watcher->projectTypeChanged(this, oldType, projectType);
     }
 
@@ -1777,8 +1803,8 @@ void Qt4ProFileNode::applyEvaluate(EvalResult evalResult, bool async)
             Qt4VariablesHash oldValues = m_varValues;
             m_varValues = newVarValues;
 
-            foreach (NodesWatcher *watcher, watchers())
-                if (Qt4NodesWatcher *qt4Watcher = qobject_cast<Qt4NodesWatcher*>(watcher))
+            foreach (ProjectExplorer::NodesWatcher *watcher, watchers())
+                if (Internal::Qt4NodesWatcher *qt4Watcher = qobject_cast<Internal::Qt4NodesWatcher*>(watcher))
                     emit qt4Watcher->variablesChanged(this, oldValues, m_varValues);
         }
 
@@ -1789,8 +1815,8 @@ void Qt4ProFileNode::applyEvaluate(EvalResult evalResult, bool async)
 
     m_validParse = true;
 
-    foreach (NodesWatcher *watcher, watchers())
-        if (Qt4NodesWatcher *qt4Watcher = qobject_cast<Qt4NodesWatcher*>(watcher))
+    foreach (ProjectExplorer::NodesWatcher *watcher, watchers())
+        if (Internal::Qt4NodesWatcher *qt4Watcher = qobject_cast<Internal::Qt4NodesWatcher*>(watcher))
             emit qt4Watcher->proFileUpdated(this, true);
 
     m_project->destroyProFileReader(m_readerExact);
@@ -1800,25 +1826,6 @@ void Qt4ProFileNode::applyEvaluate(EvalResult evalResult, bool async)
     m_readerCumulative = 0;
 }
 
-namespace {
-    // find all ui files in project
-    class FindUiFileNodesVisitor : public ProjectExplorer::NodesVisitor {
-    public:
-        void visitProjectNode(ProjectNode *projectNode)
-        {
-            visitFolderNode(projectNode);
-        }
-        void visitFolderNode(FolderNode *folderNode)
-        {
-            foreach (FileNode *fileNode, folderNode->fileNodes()) {
-                if (fileNode->fileType() == ProjectExplorer::FormType)
-                    uiFileNodes << fileNode;
-            }
-        }
-        QList<FileNode*> uiFileNodes;
-    };
-}
-
 // This function is triggered after a build, and updates the state ui files
 // It does so by storing a modification time for each ui file we know about.
 
@@ -1832,9 +1839,9 @@ QStringList Qt4ProFileNode::updateUiFiles()
         return QStringList();
 
     // Find all ui files
-    FindUiFileNodesVisitor uiFilesVisitor;
+    Internal::FindUiFileNodesVisitor uiFilesVisitor;
     this->accept(&uiFilesVisitor);
-    const QList<FileNode*> uiFiles = uiFilesVisitor.uiFileNodes;
+    const QList<ProjectExplorer::FileNode*> uiFiles = uiFilesVisitor.uiFileNodes;
 
     // Find the UiDir, there can only ever be one
     QString uiDir = buildDir();
@@ -1843,8 +1850,8 @@ QStringList Qt4ProFileNode::updateUiFiles()
         uiDir = tmp.first();
 
     // Collect all existing generated files
-    QList<FileNode*> existingFileNodes;
-    foreach (FileNode *file, fileNodes()) {
+    QList<ProjectExplorer::FileNode*> existingFileNodes;
+    foreach (ProjectExplorer::FileNode *file, fileNodes()) {
         if (file->isGenerated())
             existingFileNodes << file;
     }
@@ -1852,7 +1859,7 @@ QStringList Qt4ProFileNode::updateUiFiles()
     // Convert uiFile to uiHeaderFilePath, find all headers that correspond
     // and try to find them in uiDir
     QStringList newFilePaths;
-    foreach (FileNode *uiFile, uiFiles) {
+    foreach (ProjectExplorer::FileNode *uiFile, uiFiles) {
         const QString uiHeaderFilePath
                 = QString("%1/ui_%2.h").arg(uiDir, QFileInfo(uiFile->path()).completeBaseName());
         if (QFileInfo(uiHeaderFilePath).exists())
@@ -1860,15 +1867,15 @@ QStringList Qt4ProFileNode::updateUiFiles()
     }
 
     // Create a diff between those lists
-    QList<FileNode*> toRemove;
-    QList<FileNode*> toAdd;
+    QList<ProjectExplorer::FileNode*> toRemove;
+    QList<ProjectExplorer::FileNode*> toAdd;
     // The list of files for which we call updateSourceFile
     QStringList toUpdate;
 
     qSort(newFilePaths);
     qSort(existingFileNodes.begin(), existingFileNodes.end(), ProjectNode::sortNodesByPath);
 
-    QList<FileNode*>::const_iterator existingNodeIter = existingFileNodes.constBegin();
+    QList<ProjectExplorer::FileNode*>::const_iterator existingNodeIter = existingFileNodes.constBegin();
     QList<QString>::const_iterator newPathIter = newFilePaths.constBegin();
     while (existingNodeIter != existingFileNodes.constEnd()
            && newPathIter != newFilePaths.constEnd()) {
@@ -1876,7 +1883,7 @@ QStringList Qt4ProFileNode::updateUiFiles()
             toRemove << *existingNodeIter;
             ++existingNodeIter;
         } else if ((*existingNodeIter)->path() > *newPathIter) {
-            toAdd << new FileNode(*newPathIter, ProjectExplorer::HeaderType, true);
+            toAdd << new ProjectExplorer::FileNode(*newPathIter, ProjectExplorer::HeaderType, true);
             ++newPathIter;
         } else { // *existingNodeIter->path() == *newPathIter
             QString fileName = (*existingNodeIter)->path();
@@ -1895,13 +1902,13 @@ QStringList Qt4ProFileNode::updateUiFiles()
         ++existingNodeIter;
     }
     while (newPathIter != newFilePaths.constEnd()) {
-        toAdd << new FileNode(*newPathIter, ProjectExplorer::HeaderType, true);
+        toAdd << new ProjectExplorer::FileNode(*newPathIter, ProjectExplorer::HeaderType, true);
         ++newPathIter;
     }
 
     // Update project tree
     if (!toRemove.isEmpty()) {
-        foreach (FileNode *file, toRemove)
+        foreach (ProjectExplorer::FileNode *file, toRemove)
             m_uitimestamps.remove(file->path());
         removeFileNodes(toRemove, this);
     }
@@ -1910,7 +1917,7 @@ QStringList Qt4ProFileNode::updateUiFiles()
         CPlusPlus::CppModelManagerInterface::instance();
 
     if (!toAdd.isEmpty()) {
-        foreach (FileNode *file, toAdd) {
+        foreach (ProjectExplorer::FileNode *file, toAdd) {
             m_uitimestamps.insert(file->path(), QFileInfo(file->path()).lastModified());
             toUpdate << file->path();
 
@@ -2216,15 +2223,15 @@ void Qt4ProFileNode::invalidate()
     m_projectType = InvalidProject;
 
 
-    foreach (NodesWatcher *watcher, watchers())
-        if (Qt4NodesWatcher *qt4Watcher = qobject_cast<Qt4NodesWatcher*>(watcher))
+    foreach (ProjectExplorer::NodesWatcher *watcher, watchers())
+        if (Internal::Qt4NodesWatcher *qt4Watcher = qobject_cast<Internal::Qt4NodesWatcher*>(watcher))
             emit qt4Watcher->projectTypeChanged(this, oldType, InvalidProject);
 }
 
 void Qt4ProFileNode::updateCodeModelSupportFromBuild(const QStringList &files)
 {
     foreach (const QString &file, files) {
-        QMap<QString, Qt4UiCodeModelSupport *>::const_iterator it, end;
+        QMap<QString, Internal::Qt4UiCodeModelSupport *>::const_iterator it, end;
         end = m_uiCodeModelSupport.constEnd();
         for (it = m_uiCodeModelSupport.constBegin(); it != end; ++it) {
             if (it.value()->fileName() == file)
@@ -2236,7 +2243,7 @@ void Qt4ProFileNode::updateCodeModelSupportFromBuild(const QStringList &files)
 void Qt4ProFileNode::updateCodeModelSupportFromEditor(const QString &uiFileName,
                                                       const QString &contents)
 {
-    const QMap<QString, Qt4UiCodeModelSupport *>::const_iterator it =
+    const QMap<QString, Internal::Qt4UiCodeModelSupport *>::const_iterator it =
             m_uiCodeModelSupport.constFind(uiFileName);
     if (it != m_uiCodeModelSupport.constEnd())
         it.value()->updateFromEditor(contents);
@@ -2269,39 +2276,39 @@ void Qt4ProFileNode::createUiCodeModelSupport()
             = CPlusPlus::CppModelManagerInterface::instance();
 
     // First move all to
-    QMap<QString, Qt4UiCodeModelSupport *> oldCodeModelSupport;
+    QMap<QString, Internal::Qt4UiCodeModelSupport *> oldCodeModelSupport;
     oldCodeModelSupport = m_uiCodeModelSupport;
     m_uiCodeModelSupport.clear();
 
     // Only those two project types can have ui files for us
     if (m_projectType == ApplicationTemplate || m_projectType == LibraryTemplate) {
         // Find all ui files
-        FindUiFileNodesVisitor uiFilesVisitor;
+        Internal::FindUiFileNodesVisitor uiFilesVisitor;
         this->accept(&uiFilesVisitor);
-        const QList<FileNode*> uiFiles = uiFilesVisitor.uiFileNodes;
+        const QList<ProjectExplorer::FileNode*> uiFiles = uiFilesVisitor.uiFileNodes;
 
         // Find the UiDir, there can only ever be one
         const  QString uiDir = uiDirectory();
-        foreach (const FileNode *uiFile, uiFiles) {
+        foreach (const ProjectExplorer::FileNode *uiFile, uiFiles) {
             const QString uiHeaderFilePath = uiHeaderFile(uiDir, uiFile->path());
 //            qDebug()<<"code model support for "<<uiFile->path()<<" "<<uiHeaderFilePath;
-            QMap<QString, Qt4UiCodeModelSupport *>::iterator it = oldCodeModelSupport.find(uiFile->path());
+            QMap<QString, Internal::Qt4UiCodeModelSupport *>::iterator it = oldCodeModelSupport.find(uiFile->path());
             if (it != oldCodeModelSupport.end()) {
 //                qDebug()<<"updated old codemodelsupport";
-                Qt4UiCodeModelSupport *cms = it.value();
+                Internal::Qt4UiCodeModelSupport *cms = it.value();
                 cms->setFileName(uiHeaderFilePath);
                 m_uiCodeModelSupport.insert(it.key(), cms);
                 oldCodeModelSupport.erase(it);
             } else {
 //                qDebug()<<"adding new codemodelsupport";
-                Qt4UiCodeModelSupport *cms = new Qt4UiCodeModelSupport(modelManager, m_project, uiFile->path(), uiHeaderFilePath);
+                Internal::Qt4UiCodeModelSupport *cms = new Internal::Qt4UiCodeModelSupport(modelManager, m_project, uiFile->path(), uiHeaderFilePath);
                 m_uiCodeModelSupport.insert(uiFile->path(), cms);
                 modelManager->addEditorSupport(cms);
             }
         }
     }
     // Remove old
-    QMap<QString, Qt4UiCodeModelSupport *>::const_iterator it, end;
+    QMap<QString, Internal::Qt4UiCodeModelSupport *>::const_iterator it, end;
     end = oldCodeModelSupport.constEnd();
     for (it = oldCodeModelSupport.constBegin(); it!=end; ++it) {
         modelManager->removeEditorSupport(it.value());
@@ -2309,10 +2316,4 @@ void Qt4ProFileNode::createUiCodeModelSupport()
     }
 }
 
-Qt4NodesWatcher::Qt4NodesWatcher(QObject *parent)
-        : NodesWatcher(parent)
-{
-}
-
-} // namespace Internal
 } // namespace Qt4ProjectManager
index d49452a..492b38e 100644 (file)
@@ -62,29 +62,9 @@ class ProFileReader;
 
 namespace Qt4ProjectManager {
 
-// Import base classes into namespace
-using ProjectExplorer::Node;
-using ProjectExplorer::FileNode;
-using ProjectExplorer::FolderNode;
-using ProjectExplorer::ProjectNode;
-using ProjectExplorer::NodesWatcher;
-
-// Import enums into namespace
-using ProjectExplorer::NodeType;
-using ProjectExplorer::FileNodeType;
-using ProjectExplorer::FolderNodeType;
-using ProjectExplorer::ProjectNodeType;
-
-using ProjectExplorer::UnknownFileType;
-using ProjectExplorer::ProjectFileType;
-
+class Qt4ProFileNode;
 class Qt4Project;
 
-namespace Internal {
-
-using ProjectExplorer::FileType;
-class Qt4UiCodeModelSupport;
-
 //  Type of projects
 enum Qt4ProjectType {
     InvalidProject = 0,
@@ -110,32 +90,29 @@ enum Qt4Variable {
     SymbianCapabilities
 };
 
-class Qt4PriFileNode;
-class Qt4ProFileNode;
+namespace Internal {
 
-class Qt4PriFile : public Core::IFile
-{
-    Q_OBJECT
-public:
-    Qt4PriFile(Qt4PriFileNode *qt4PriFile);
-    virtual bool save(QString *errorString, const QString &fileName, bool autoSave);
-    virtual QString fileName() const;
-    virtual void rename(const QString &newName);
+// Import base classes into namespace
+using ProjectExplorer::Node;
+using ProjectExplorer::FileNode;
+using ProjectExplorer::FolderNode;
+using ProjectExplorer::ProjectNode;
+using ProjectExplorer::NodesWatcher;
 
-    virtual QString defaultPath() const;
-    virtual QString suggestedFileName() const;
-    virtual QString mimeType() const;
+// Import enums into namespace
+using ProjectExplorer::NodeType;
+using ProjectExplorer::FileNodeType;
+using ProjectExplorer::FolderNodeType;
+using ProjectExplorer::ProjectNodeType;
 
-    virtual bool isModified() const;
-    virtual bool isReadOnly() const;
-    virtual bool isSaveAsAllowed() const;
+using ProjectExplorer::UnknownFileType;
+using ProjectExplorer::ProjectFileType;
 
-    ReloadBehavior reloadBehavior(ChangeTrigger state, ChangeType type) const;
-    bool reload(QString *errorString, ReloadFlag flag, ChangeType type);
+using ProjectExplorer::FileType;
 
-private:
-    Qt4PriFileNode *m_priFile;
-};
+class Qt4UiCodeModelSupport;
+class ProFileReader;
+class Qt4PriFile;
 
 // Implements ProjectNode for qt4 pro files
 class Qt4PriFileNode : public ProjectExplorer::ProjectNode
@@ -210,7 +187,7 @@ private:
     QString m_projectDir;
 
     QMap<QString, Qt4UiCodeModelSupport *> m_uiCodeModelSupport;
-    Qt4PriFile *m_qt4PriFile;
+    Internal::Qt4PriFile *m_qt4PriFile;
 
     // Memory is cheap...
     // TODO (really that cheap?)
@@ -219,13 +196,64 @@ private:
     QSet<QString> m_watchedFolders;
 
     // managed by Qt4ProFileNode
-    friend class Qt4ProFileNode;
+    friend class Qt4ProjectManager::Qt4ProFileNode;
     friend class Qt4PriFile; // for scheduling updates on modified
     // internal temporary subtree representation
     friend struct InternalNode;
 };
 
-struct TargetInformation
+class Qt4PriFile : public Core::IFile
+{
+    Q_OBJECT
+public:
+    Qt4PriFile(Qt4PriFileNode *qt4PriFile);
+    virtual bool save(QString *errorString, const QString &fileName, bool autoSave);
+    virtual QString fileName() const;
+    virtual void rename(const QString &newName);
+
+    virtual QString defaultPath() const;
+    virtual QString suggestedFileName() const;
+    virtual QString mimeType() const;
+
+    virtual bool isModified() const;
+    virtual bool isReadOnly() const;
+    virtual bool isSaveAsAllowed() const;
+
+    ReloadBehavior reloadBehavior(ChangeTrigger state, ChangeType type) const;
+    bool reload(QString *errorString, ReloadFlag flag, ChangeType type);
+
+private:
+    Qt4PriFileNode *m_priFile;
+};
+
+class Qt4NodesWatcher : public ProjectExplorer::NodesWatcher
+{
+    Q_OBJECT
+    Q_DISABLE_COPY(Qt4NodesWatcher)
+public:
+    Qt4NodesWatcher(QObject *parent = 0);
+
+signals:
+    void projectTypeChanged(Qt4ProjectManager::Qt4ProFileNode *projectNode,
+                            const Qt4ProjectManager::Qt4ProjectType oldType,
+                            const Qt4ProjectManager::Qt4ProjectType newType);
+
+    void variablesChanged(Qt4ProFileNode *projectNode,
+                          const QHash<Qt4Variable, QStringList> &oldValues,
+                          const QHash<Qt4Variable, QStringList> &newValues);
+
+    void proFileUpdated(Qt4ProjectManager::Qt4ProFileNode *projectNode, bool success);
+    void proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode *projectNode);
+
+private:
+    // let them emit signals
+    friend class Qt4ProjectManager::Qt4ProFileNode;
+    friend class Qt4PriFileNode;
+};
+
+} // namespace Internal
+
+struct QT4PROJECTMANAGER_EXPORT TargetInformation
 {
     bool valid;
     QString workingDir;
@@ -260,26 +288,26 @@ struct TargetInformation
 
 };
 
-struct InstallsItem {
+struct QT4PROJECTMANAGER_EXPORT InstallsItem {
     InstallsItem(QString p, QStringList f) : path(p), files(f) {}
     QString path;
     QStringList files;
 };
 
-struct InstallsList {
+struct QT4PROJECTMANAGER_EXPORT InstallsList {
     void clear() { targetPath.clear(); items.clear(); }
     QString targetPath;
     QList<InstallsItem> items;
 };
 
-struct ProjectVersion {
+struct QT4PROJECTMANAGER_EXPORT ProjectVersion {
     int major;
     int minor;
     int patch;
 };
 
 // Implements ProjectNode for qt4 pro files
-class Qt4ProFileNode : public Qt4PriFileNode
+class QT4PROJECTMANAGER_EXPORT Qt4ProFileNode : public Internal::Qt4PriFileNode
 {
     Q_OBJECT
     Q_DISABLE_COPY(Qt4ProFileNode)
@@ -375,32 +403,6 @@ private:
     QtSupport::ProFileReader *m_readerCumulative;
 };
 
-class Qt4NodesWatcher : public ProjectExplorer::NodesWatcher
-{
-    Q_OBJECT
-    Q_DISABLE_COPY(Qt4NodesWatcher)
-public:
-    Qt4NodesWatcher(QObject *parent = 0);
-
-signals:
-    void projectTypeChanged(Qt4ProjectManager::Internal::Qt4ProFileNode *projectNode,
-                            const Qt4ProjectManager::Internal::Qt4ProjectType oldType,
-                            const Qt4ProjectManager::Internal::Qt4ProjectType newType);
-
-    void variablesChanged(Qt4ProFileNode *projectNode,
-                          const QHash<Qt4Variable, QStringList> &oldValues,
-                          const QHash<Qt4Variable, QStringList> &newValues);
-
-    void proFileUpdated(Qt4ProjectManager::Internal::Qt4ProFileNode *projectNode, bool success);
-    void proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode *projectNode);
-
-private:
-    // let them emit signals
-    friend class Qt4ProFileNode;
-    friend class Qt4PriFileNode;
-};
-
-} // namespace Internal
 } // namespace Qt4ProjectManager
 
 #endif // QT4NODES_H
index 99500ee..f4f68ba 100644 (file)
@@ -338,11 +338,11 @@ bool Qt4Project::fromMap(const QVariantMap &map)
     foreach (Target *t, targets())
         onAddedTarget(t);
 
-    connect(m_nodesWatcher, SIGNAL(proFileUpdated(Qt4ProjectManager::Internal::Qt4ProFileNode*,bool)),
-            this, SIGNAL(proFileUpdated(Qt4ProjectManager::Internal::Qt4ProFileNode *,bool)));
+    connect(m_nodesWatcher, SIGNAL(proFileUpdated(Qt4ProjectManager::Qt4ProFileNode*,bool)),
+            this, SIGNAL(proFileUpdated(Qt4ProjectManager::Qt4ProFileNode *,bool)));
 
-    connect(m_nodesWatcher, SIGNAL(proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode*)),
-            this, SIGNAL(proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode*)));
+    connect(m_nodesWatcher, SIGNAL(proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode*)),
+            this, SIGNAL(proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode*)));
 
     // Now we emit update once :)
     m_rootProjectNode->emitProFileUpdated();
@@ -616,7 +616,7 @@ void Qt4Project::scheduleAsyncUpdate(Qt4ProFileNode *node)
         // Add the node
         m_asyncUpdateState = AsyncPartialUpdatePending;
 
-        QList<Internal::Qt4ProFileNode *>::iterator it;
+        QList<Qt4ProFileNode *>::iterator it;
         bool add = true;
         if (debug)
             qDebug()<<"scheduleAsyncUpdate();"<<m_partialEvaluate.size()<<"nodes";
@@ -954,8 +954,8 @@ void Qt4Project::collectAllfProFiles(QList<Qt4ProFileNode *> &list, Qt4ProFileNo
 
 void Qt4Project::collectApplicationProFiles(QList<Qt4ProFileNode *> &list, Qt4ProFileNode *node)
 {
-    if (node->projectType() == Internal::ApplicationTemplate
-        || node->projectType() == Internal::ScriptTemplate) {
+    if (node->projectType() == ApplicationTemplate
+        || node->projectType() == ScriptTemplate) {
         list.append(node);
     }
     foreach (ProjectNode *n, node->subProjectNodes()) {
index b68489e..c9a5f02 100644 (file)
@@ -56,11 +56,11 @@ class ProFileReader;
 }
 
 namespace Qt4ProjectManager {
+class Qt4ProFileNode;
 
 namespace Internal {
     class DeployHelperRunStep;
     class FileItem;
-    class Qt4ProFileNode;
     class Qt4PriFileNode;
     class GCCPreprocessor;
     struct Qt4ProjectFiles;
@@ -153,7 +153,7 @@ public:
     QList<Core::IFile *> dependencies();     //NBS remove
     QList<ProjectExplorer::Project *>dependsOn();
 
-    Internal::Qt4ProFileNode *rootProjectNode() const;
+    Qt4ProFileNode *rootProjectNode() const;
     bool validParse(const QString &proFilePath) const;
 
     virtual QStringList files(FilesMode fileMode) const;
@@ -161,20 +161,20 @@ public:
 
     QList<ProjectExplorer::BuildConfigWidget*> subConfigWidgets();
 
-    QList<Internal::Qt4ProFileNode *> allProFiles() const;
-    QList<Internal::Qt4ProFileNode *> applicationProFiles() const;
+    QList<Qt4ProFileNode *> allProFiles() const;
+    QList<Qt4ProFileNode *> applicationProFiles() const;
     bool hasApplicationProFile(const QString &path) const;
     QStringList applicationProFilePathes(const QString &prepend = QString()) const;
 
     void notifyChanged(const QString &name);
 
     /// \internal
-    QtSupport::ProFileReader *createProFileReader(Internal::Qt4ProFileNode *qt4ProFileNode, Qt4BuildConfiguration *bc = 0);
+    QtSupport::ProFileReader *createProFileReader(Qt4ProFileNode *qt4ProFileNode, Qt4BuildConfiguration *bc = 0);
     /// \internal
     void destroyProFileReader(QtSupport::ProFileReader *reader);
 
     /// \internal
-    void scheduleAsyncUpdate(Qt4ProjectManager::Internal::Qt4ProFileNode *node);
+    void scheduleAsyncUpdate(Qt4ProjectManager::Qt4ProFileNode *node);
     /// \internal
     void incrementPendingEvaluateFutures();
     /// \internal
@@ -188,8 +188,8 @@ public:
     void updateFileList();
 
 signals:
-    void proFileUpdated(Qt4ProjectManager::Internal::Qt4ProFileNode *node, bool);
-    void proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode *node);
+    void proFileUpdated(Qt4ProjectManager::Qt4ProFileNode *node, bool);
+    void proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode *node);
     void buildDirectoryInitialized();
     void fromMapFinished();
 
@@ -216,9 +216,9 @@ private:
     void updateQmlJSCodeModel();
 
 
-    static void collectAllfProFiles(QList<Internal::Qt4ProFileNode *> &list, Internal::Qt4ProFileNode *node);
-    static void collectApplicationProFiles(QList<Internal::Qt4ProFileNode *> &list, Internal::Qt4ProFileNode *node);
-    static void findProFile(const QString& fileName, Internal::Qt4ProFileNode *root, QList<Internal::Qt4ProFileNode *> &list);
+    static void collectAllfProFiles(QList<Qt4ProFileNode *> &list, Qt4ProFileNode *node);
+    static void collectApplicationProFiles(QList<Qt4ProFileNode *> &list, Qt4ProFileNode *node);
+    static void findProFile(const QString& fileName, Qt4ProFileNode *root, QList<Qt4ProFileNode *> &list);
     static bool hasSubNode(Internal::Qt4PriFileNode *root, const QString &path);
 
     static bool equalFileList(const QStringList &a, const QStringList &b);
@@ -228,7 +228,7 @@ private:
     static QString qmakeVarName(ProjectExplorer::FileType type);
 
     Qt4Manager *m_manager;
-    Internal::Qt4ProFileNode *m_rootProjectNode;
+    Qt4ProFileNode *m_rootProjectNode;
     Internal::Qt4NodesWatcher *m_nodesWatcher;
 
     Qt4ProjectFile *m_fileInfo;
@@ -250,7 +250,7 @@ private:
     enum AsyncUpdateState { NoState, Base, AsyncFullUpdatePending, AsyncPartialUpdatePending, AsyncUpdateInProgress, ShuttingDown };
     AsyncUpdateState m_asyncUpdateState;
     bool m_cancelEvaluate;
-    QList<Internal::Qt4ProFileNode *> m_partialEvaluate;
+    QList<Qt4ProFileNode *> m_partialEvaluate;
 
     QFuture<void> m_codeModelFuture;
 
index d024c25..7ddf905 100644 (file)
@@ -148,7 +148,6 @@ RESOURCES += qt4projectmanager.qrc \
     wizards/wizards.qrc
 
 include(qt-s60/qt-s60.pri)
-include(qt-maemo/qt-maemo.pri)
 include(qt-desktop/qt-desktop.pri)
 include(customwidgetwizard/customwidgetwizard.pri)
 
index c8d67d0..377b45f 100644 (file)
@@ -2,6 +2,5 @@ include(../../plugins/projectexplorer/projectexplorer.pri)
 include(../../plugins/qtsupport/qtsupport.pri)
 include(../../plugins/cpptools/cpptools.pri)
 include(../../plugins/debugger/debugger.pri)
-include(../../plugins/analyzerbase/analyzerbase.pri)
 include(../../libs/symbianutils/symbianutils.pri)
 include(../../libs/qmljs/qmljs.pri)
index ecf90f4..83ea47b 100644 (file)
@@ -53,7 +53,6 @@
 #include "gettingstartedwelcomepage.h"
 #include "profilecompletionassist.h"
 
-#include "qt-maemo/maemomanager.h"
 #include "qt-s60/s60manager.h"
 #include "qt-desktop/qt4desktoptargetfactory.h"
 #include "qt-desktop/qt4simulatortargetfactory.h"
@@ -160,7 +159,6 @@ bool Qt4ProjectManagerPlugin::initialize(const QStringList &arguments, QString *
     addAutoReleasedObject(new LinguistExternalEditor);
 
     addAutoReleasedObject(new S60Manager);
-    addAutoReleasedObject(new MaemoManager);
 
     addAutoReleasedObject(new Qt4DesktopTargetFactory);
     addAutoReleasedObject(new Qt4SimulatorTargetFactory);
index 413f4be..630d962 100644 (file)
 #include <utils/pathchooser.h>
 #include <utils/detailswidget.h>
 
+#include <QtCore/QCoreApplication>
 #include <QtGui/QPushButton>
 #include <QtGui/QMessageBox>
 #include <QtGui/QCheckBox>
 #include <QtGui/QComboBox>
+#include <QtGui/QHBoxLayout>
+#include <QtGui/QLabel>
 #include <QtGui/QMainWindow>
+#include <QtGui/QVBoxLayout>
 
 #include <algorithm>
 
index 5ff753d..545593b 100644 (file)
@@ -58,10 +58,7 @@ QT_END_NAMESPACE
 namespace Qt4ProjectManager {
 class Qt4Project;
 class Qt4BaseTargetFactory;
-
-namespace Internal {
 class Qt4ProFileNode;
-}
 
 class QT4PROJECTMANAGER_EXPORT Qt4BaseTarget : public ProjectExplorer::Target
 {
diff --git a/src/plugins/remotelinux/RemoteLinux.pluginspec.in b/src/plugins/remotelinux/RemoteLinux.pluginspec.in
new file mode 100644 (file)
index 0000000..d08e4e3
--- /dev/null
@@ -0,0 +1,23 @@
+<plugin name=\"RemoteLinux\" version=\"$$QTCREATOR_VERSION\" compatVersion=\"$$QTCREATOR_VERSION\">
+    <vendor>Nokia Corporation</vendor>
+    <copyright>(C) 2011 Nokia Corporation</copyright>
+    <license>
+Commercial Usage
+
+Licensees holding valid Qt Commercial licenses may use this plugin 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 plugin may be used under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.  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.
+    </license>
+    <description>Support for deployment to and execution on a remote Linux host.</description>
+    <category>Device Support</category>
+    <url>http://qt.nokia.com</url>
+    <dependencyList>
+    <dependency name=\"AnalyzerBase\" version=\"$$QTCREATOR_VERSION\"/>
+        <dependency name=\"Core\" version=\"$$QTCREATOR_VERSION\"/>
+        <dependency name=\"Debugger\" version=\"$$QTCREATOR_VERSION\"/>
+        <dependency name=\"ProjectExplorer\" version=\"$$QTCREATOR_VERSION\"/>
+        <dependency name=\"Qt4ProjectManager\" version=\"$$QTCREATOR_VERSION\"/>
+    </dependencyList>
+</plugin>
@@ -38,7 +38,7 @@
 
 using namespace ProjectExplorer;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 
@@ -107,4 +107,4 @@ bool LinuxDeviceDeployStepHelper::fromMap(const QVariantMap &map)
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -40,7 +40,7 @@
 
 namespace ProjectExplorer { class DeployConfiguration; }
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 class Qt4MaemoDeployConfiguration;
 
@@ -97,6 +97,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // ABSTRACTLINUXDEVICEDEPLOYSTEP_H
@@ -45,7 +45,6 @@
 #include <projectexplorer/projectexplorerconstants.h>
 
 #include <qt4projectmanager/qt4buildconfiguration.h>
-#include <qt4projectmanager/qt4projectmanagerconstants.h>
 
 #include <utils/ssh/sshconnectionmanager.h>
 
@@ -58,8 +57,9 @@
 using namespace Core;
 using namespace Utils;
 using namespace ProjectExplorer;
+using namespace Qt4ProjectManager;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 namespace {
 
@@ -407,6 +407,6 @@ void MaemoDeployEventHandler::checkForCanceled()
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #include "abstractmaemodeploystep.moc"
@@ -49,10 +49,10 @@ QT_BEGIN_NAMESPACE
 class QEventLoop;
 QT_END_NAMESPACE
 
+namespace Qt4ProjectManager { class Qt4BuildConfiguration; }
 namespace Utils { class SshConnection; }
 
-namespace Qt4ProjectManager {
-class Qt4BuildConfiguration;
+namespace RemoteLinux {
 namespace Internal {
 class AbstractMaemoPackageCreationStep;
 class MaemoDeviceConfig;
@@ -91,7 +91,7 @@ protected:
     virtual const AbstractMaemoPackageCreationStep *packagingStep() const=0;
 
     QString deployMountPoint() const;
-    const Qt4BuildConfiguration *qt4BuildConfiguration() const;
+    const Qt4ProjectManager::Qt4BuildConfiguration *qt4BuildConfiguration() const;
     QSharedPointer<Utils::SshConnection> connection() const { return m_connection; }
 
 private slots:
@@ -127,6 +127,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // ABSTRACTMAEMODEPLOYSTEP_H
@@ -44,7 +44,7 @@ using namespace Utils;
 using namespace Analyzer;
 using namespace ProjectExplorer;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 RunControl *MaemoAnalyzerSupport::createAnalyzerRunControl(MaemoRunConfiguration *runConfig)
@@ -73,4 +73,4 @@ RunControl *MaemoAnalyzerSupport::createAnalyzerRunControl(MaemoRunConfiguration
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -35,7 +35,7 @@
 
 #include "maemorunconfiguration.h"
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 namespace MaemoAnalyzerSupport {
@@ -45,6 +45,6 @@ ProjectExplorer::RunControl *createAnalyzerRunControl(MaemoRunConfiguration *run
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOANALYZERSUPPORT_H
@@ -43,7 +43,7 @@
 
 using namespace Utils;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoConfigTestDialog::MaemoConfigTestDialog(const MaemoDeviceConfig::ConstPtr &config,
@@ -301,4 +301,4 @@ QString MaemoConfigTestDialog::parseTestOutput()
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -44,7 +44,7 @@ namespace Utils {
     class SshRemoteProcessRunner;
 } // namespace Utils
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoDeviceConfig;
@@ -91,6 +91,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOCONFIGTESTDIALOG_H
@@ -34,7 +34,7 @@
 
 #include <QtCore/QLatin1String>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 #define PREFIX "Qt4ProjectManager.MaemoRunConfiguration"
@@ -69,6 +69,6 @@ const char * const MAEMO_SETTINGS_TR_CATEGORY = QT_TRANSLATE_NOOP("Qt4ProjectMan
 const char * const MAEMO_SETTINGS_CATEGORY_ICON = ":/projectexplorer/images/MaemoDevice.png";
 }
 
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif  // MAEMOCONSTANTS_H
@@ -53,7 +53,7 @@ using namespace Utils;
 using namespace Debugger;
 using namespace ProjectExplorer;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 RunControl *MaemoDebugSupport::createDebugRunControl(MaemoRunConfiguration *runConfig)
@@ -319,4 +319,4 @@ bool MaemoDebugSupport::setPort(int &port)
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -45,7 +45,7 @@ class DebuggerEngine;
 }
 namespace ProjectExplorer { class RunControl; }
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoDeviceConfig;
@@ -100,6 +100,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMODEBUGSUPPORT_H
@@ -36,7 +36,7 @@
 #include <QtCore/QHash>
 #include <QtCore/QString>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoDeployable
@@ -62,7 +62,7 @@ inline uint qHash(const MaemoDeployable &d)
     return qHash(qMakePair(d.localFilePath, d.remoteDir));
 }
 
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 } // namespace Internal
 
 #endif // MAEMODEPLOYABLE_H
@@ -39,6 +39,7 @@
 #include <projectexplorer/projectexplorer.h>
 #include <projectexplorer/session.h>
 #include <qt4projectmanager/qt4buildconfiguration.h>
+#include <qt4projectmanager/qt4nodes.h>
 #include <qt4projectmanager/qt4target.h>
 #include <qtsupport/baseqtversion.h>
 
@@ -51,7 +52,9 @@
 #include <QtGui/QImageReader>
 #include <QtGui/QMainWindow>
 
-namespace Qt4ProjectManager {
+using namespace Qt4ProjectManager;
+
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoDeployableListModel::MaemoDeployableListModel(const Qt4ProFileNode *proFileNode,
@@ -360,5 +363,5 @@ QString MaemoDeployableListModel::remoteIconDir() const
             .arg(MaemoGlobal::applicationIconSize(MaemoGlobal::version(qv->qmakeCommand())));
 }
 
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 } // namespace Internal
@@ -47,7 +47,7 @@ namespace QtSupport {
 class BaseQtVersion;
 }
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoDeployableListModel : public QAbstractTableModel
@@ -58,7 +58,7 @@ public:
         UpdateProFile, DontUpdateProFile, AskToUpdateProFile
     };
 
-    MaemoDeployableListModel(const Qt4ProFileNode *proFileNode,
+    MaemoDeployableListModel(const Qt4ProjectManager::Qt4ProFileNode *proFileNode,
         ProFileUpdateSetting updateSetting, QObject *parent);
     ~MaemoDeployableListModel();
 
@@ -73,8 +73,8 @@ public:
     QString projectName() const { return m_projectName; }
     QString projectDir() const;
     QString proFilePath() const { return m_proFilePath; }
-    Qt4ProjectType projectType() const { return m_projectType; }
-    bool isApplicationProject() const { return m_projectType == ApplicationTemplate; }
+    Qt4ProjectManager::Qt4ProjectType projectType() const { return m_projectType; }
+    bool isApplicationProject() const { return m_projectType == Qt4ProjectManager::ApplicationTemplate; }
     QString applicationName() const { return m_targetInfo.target; }
     bool hasTargetPath() const { return m_hasTargetPath; }
     bool canAddDesktopFile() const { return isApplicationProject() && !hasDesktopFile(); }
@@ -107,12 +107,12 @@ private:
     QString remoteIconDir() const;
     QStringList localLibraryFilePaths() const;
 
-    const Qt4ProjectType m_projectType;
+    const Qt4ProjectManager::Qt4ProjectType m_projectType;
     const QString m_proFilePath;
     const QString m_projectName;
-    const TargetInformation m_targetInfo;
-    const InstallsList m_installsList;
-    const ProjectVersion m_projectVersion;
+    const Qt4ProjectManager::TargetInformation m_targetInfo;
+    const Qt4ProjectManager::InstallsList m_installsList;
+    const Qt4ProjectManager::ProjectVersion m_projectVersion;
     const QStringList m_config;
     QList<MaemoDeployable> m_deployables;
     mutable bool m_modified;
@@ -120,7 +120,7 @@ private:
     bool m_hasTargetPath;
 };
 
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 } // namespace Internal
 
 #endif // MAEMOPACKAGECONTENTS_H
 
 #include <proparser/profileevaluator.h>
 #include <projectexplorer/buildstep.h>
-#include <qt4projectmanager/qt4projectmanagerconstants.h>
 #include <qt4projectmanager/qt4buildconfiguration.h>
 #include <qt4projectmanager/qt4project.h>
 #include <qt4projectmanager/qt4target.h>
 
 #include <QtCore/QTimer>
 
-namespace Qt4ProjectManager {
+using namespace Qt4ProjectManager;
+
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoDeployables::MaemoDeployables(const Qt4BaseTarget *target)
@@ -59,7 +60,7 @@ MaemoDeployables::~MaemoDeployables() {}
 void MaemoDeployables::init()
 {
     Qt4Project * const pro = m_target->qt4Project();
-    connect(pro, SIGNAL(proFileUpdated(Qt4ProjectManager::Internal::Qt4ProFileNode*,bool)),
+    connect(pro, SIGNAL(proFileUpdated(Qt4ProjectManager::Qt4ProFileNode*,bool)),
             m_updateTimer, SLOT(start()));
 
     // TODO do we want to disable the view
@@ -77,7 +78,7 @@ void MaemoDeployables::createModels()
         return;
     m_updateTimer->stop();
     disconnect(m_target->qt4Project(),
-        SIGNAL(proFileUpdated(Qt4ProjectManager::Internal::Qt4ProFileNode*,bool)),
+        SIGNAL(proFileUpdated(Qt4ProjectManager::Qt4ProFileNode*,bool)),
         m_updateTimer, SLOT(start()));
     beginResetModel();
     qDeleteAll(m_listModels);
@@ -109,7 +110,7 @@ void MaemoDeployables::createModels()
 
     endResetModel();
     connect(m_target->qt4Project(),
-            SIGNAL(proFileUpdated(Qt4ProjectManager::Internal::Qt4ProFileNode*,bool)),
+            SIGNAL(proFileUpdated(Qt4ProjectManager::Qt4ProFileNode*,bool)),
             m_updateTimer, SLOT(start()));
 }
 
@@ -216,5 +217,5 @@ QVariant MaemoDeployables::data(const QModelIndex &index, int role) const
     return QVariant();
 }
 
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 } // namespace Internal
@@ -44,15 +44,17 @@ QT_FORWARD_DECLARE_CLASS(QTimer)
 namespace Qt4ProjectManager {
 class Qt4BuildConfiguration;
 class Qt4BaseTarget;
+class Qt4ProFileNode;
+} // namespace Qt4ProjectManager
 
+namespace RemoteLinux {
 namespace Internal {
-class Qt4ProFileNode;
 
 class MaemoDeployables : public QAbstractListModel
 {
     Q_OBJECT
 public:
-    MaemoDeployables(const Qt4BaseTarget *target);
+    MaemoDeployables(const Qt4ProjectManager::Qt4BaseTarget *target);
     ~MaemoDeployables();
     void setUnmodified();
     bool isModified() const;
@@ -70,15 +72,15 @@ private:
 
     Q_SLOT void createModels();
     Q_SLOT void init();
-    void createModels(const Qt4ProFileNode *proFileNode);
+    void createModels(const Qt4ProjectManager::Qt4ProFileNode *proFileNode);
 
     QList<MaemoDeployableListModel *> m_listModels;
     UpdateSettingsMap m_updateSettings;
-    const Qt4BaseTarget * const m_target;
+    const Qt4ProjectManager::Qt4BaseTarget * const m_target;
     QTimer *const m_updateTimer;
 };
 
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 } // namespace Internal
 
 #endif // MAEMODEPLOYABLES_H
@@ -48,8 +48,9 @@
 #define ASSERT_STATE(state) ASSERT_STATE_GENERIC(ExtendedState, state, m_extendedState)
 
 using namespace ProjectExplorer;
+using namespace Qt4ProjectManager;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 AbstractMaemoDeployByMountStep::AbstractMaemoDeployByMountStep(BuildStepList *parent,
@@ -389,4 +390,4 @@ const QString MaemoMountAndCopyDeployStep::DisplayName
     = tr("Deploy files via UTFS mount");
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -38,7 +38,7 @@
 #include "maemodeployable.h"
 #include "maemomountspecification.h"
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 class AbstractMaemoPackageInstaller;
 class MaemoDeploymentMounter;
@@ -139,6 +139,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMODEPLOYBYMOUNTSTEP_H
@@ -45,7 +45,7 @@
 
 using namespace ProjectExplorer;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoDeployConfigurationWidget::MaemoDeployConfigurationWidget(QWidget *parent)
@@ -168,4 +168,4 @@ void MaemoDeployConfigurationWidget::addIcon()
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -41,7 +41,7 @@ namespace Ui {
 }
 QT_END_NAMESPACE
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 class Qt4MaemoDeployConfiguration;
 
@@ -67,6 +67,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMODEPLOYCONFIGURATIONWIDGET_H
 
 #define ASSERT_STATE(state) ASSERT_STATE_GENERIC(State, state, m_state)
 
+using namespace Qt4ProjectManager;
 using namespace Utils;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoDeploymentMounter::MaemoDeploymentMounter(QObject *parent)
@@ -203,4 +204,4 @@ void MaemoDeploymentMounter::setState(State newState)
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -41,9 +41,9 @@
 #include <QtCore/QSharedPointer>
 
 namespace Utils { class SshConnection; }
+namespace Qt4ProjectManager { class Qt4BuildConfiguration; }
 
-namespace Qt4ProjectManager {
-class Qt4BuildConfiguration;
+namespace RemoteLinux {
 namespace Internal {
 class MaemoDeviceConfig;
 class MaemoRemoteMounter;
@@ -59,7 +59,7 @@ public:
     void setupMounts(const QSharedPointer<Utils::SshConnection> &connection,
         const QSharedPointer<const MaemoDeviceConfig> &devConf,
         const QList<MaemoMountSpecification> &mountSpecs,
-        const Qt4BuildConfiguration *bc);
+        const Qt4ProjectManager::Qt4BuildConfiguration *bc);
     void tearDownMounts();
 
 signals:
@@ -94,10 +94,10 @@ private:
     MaemoUsedPortsGatherer * const m_portsGatherer;
     MaemoPortList m_freePorts;
     QList<MaemoMountSpecification> m_mountSpecs;
-    const Qt4BuildConfiguration *m_buildConfig;
+    const Qt4ProjectManager::Qt4BuildConfiguration *m_buildConfig;
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMODEPLOYMENTMOUNTER_H
@@ -53,7 +53,7 @@ namespace Utils {
 class SshConnection;
 }
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 class Qt4BuildConfiguration;
 namespace Internal {
 class AbstractMaemoPackageCreationStep;
@@ -177,6 +177,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMODEPLOYSTEP_H
 #include <projectexplorer/buildsteplist.h>
 #include <projectexplorer/projectexplorerconstants.h>
 #include <projectexplorer/target.h>
-#include <qt4projectmanager/qt4projectmanagerconstants.h>
 
 #include <QtCore/QCoreApplication>
 
 using namespace ProjectExplorer;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 namespace {
 const QString OldMaemoDeployStepId(QLatin1String("Qt4ProjectManager.MaemoDeployStep"));
@@ -209,4 +208,4 @@ BuildStep *MaemoDeployStepFactory::clone(BuildStepList *parent, BuildStep *produ
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #include <projectexplorer/buildstep.h>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoDeployStepFactory : public ProjectExplorer::IBuildStepFactory
 {
 public:
-    MaemoDeployStepFactory(QObject *parent);
+    MaemoDeployStepFactory(QObject *parent = 0);
 
     virtual QStringList availableCreationIds(ProjectExplorer::BuildStepList *parent) const;
     virtual QString displayNameForId(const QString &id) const;
@@ -64,6 +64,6 @@ public:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMODEPLOYSTEPFACTORY_H
@@ -37,7 +37,6 @@
 #include "maemodeviceconfigurations.h"
 #include "maemosettingspages.h"
 #include "maemoglobal.h"
-#include "maemomanager.h"
 #include "maemopertargetdeviceconfigurationlistmodel.h"
 #include "maemorunconfiguration.h"
 #include "qt4maemodeployconfiguration.h"
@@ -50,7 +49,7 @@
 
 using namespace ProjectExplorer;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoDeployStepBaseWidget::MaemoDeployStepBaseWidget(AbstractLinuxDeviceDeployStep *step) :
@@ -127,9 +126,8 @@ void MaemoDeployStepBaseWidget::setCurrentDeviceConfig(int index)
 
 void MaemoDeployStepBaseWidget::showDeviceConfigurations()
 {
-    MaemoDeviceConfigurationsSettingsPage *page
-        = MaemoManager::instance().deviceConfigurationsSettingsPage();
-    Core::ICore::instance()->showOptionsDialog(page->category(), page->id());
+    Core::ICore::instance()->showOptionsDialog(MaemoDeviceConfigurationsSettingsPage::Category,
+        MaemoDeviceConfigurationsSettingsPage::Id);
 }
 
 
@@ -141,4 +139,4 @@ MaemoDeployStepWidget::MaemoDeployStepWidget(AbstractMaemoDeployStep *step)
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -41,7 +41,7 @@ namespace Ui {
 }
 QT_END_NAMESPACE
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 class AbstractLinuxDeviceDeployStep;
 class AbstractMaemoDeployStep;
@@ -85,6 +85,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMODEPLOYSTEPWIDGET_H
@@ -45,7 +45,7 @@
 
 typedef Utils::SshConnectionParameters::AuthenticationType AuthType;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 namespace {
@@ -687,4 +687,4 @@ QVariant MaemoDeviceConfigurations::data(const QModelIndex &index, int role) con
 MaemoDeviceConfigurations *MaemoDeviceConfigurations::m_instance = 0;
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -45,7 +45,7 @@ QT_BEGIN_NAMESPACE
 class QSettings;
 QT_END_NAMESPACE
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoPortList
@@ -189,6 +189,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMODEVICECONFIGURATIONS_H
@@ -58,7 +58,7 @@
 using namespace Core;
 using namespace Utils;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 namespace {
 const QLatin1String LastDeviceConfigIndexKey("LastDisplayedMaemoDeviceConfig");
@@ -451,4 +451,4 @@ void MaemoDeviceConfigurationsSettingsWidget::updatePortsWarningLabel()
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -47,7 +47,7 @@ namespace Utils {
 class SshRemoteProcessRunner;
 }
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class NameValidator;
@@ -113,6 +113,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMODEVICECONFIGURATIONSSETTINGSWIDGET_H
@@ -53,7 +53,7 @@
 
 using namespace Utils;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 namespace {
 
@@ -722,6 +722,6 @@ int MaemoDeviceConfigWizard::nextId() const
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #include "maemodeviceconfigwizard.moc"
@@ -35,7 +35,7 @@
 #include <QtCore/QScopedPointer>
 #include <QtGui/QWizard>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 class MaemoDeviceConfig;
 class MaemoDeviceConfigurations;
@@ -56,6 +56,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMODEVICECONFIGWIZARD_H
@@ -37,7 +37,7 @@
 
 #include <utils/ssh/sshremoteprocessrunner.h>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
     namespace Internal {
 
 MaemoDeviceEnvReader::MaemoDeviceEnvReader(QObject *parent, MaemoRunConfiguration *config)
@@ -41,7 +41,7 @@ namespace Utils {
     class SshRemoteProcessRunner;
 }
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoDeviceConfig;
@@ -48,7 +48,7 @@
 using namespace ProjectExplorer;
 using namespace Utils;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoDirectDeviceUploadStep::MaemoDirectDeviceUploadStep(BuildStepList *parent)
@@ -246,4 +246,4 @@ const QString MaemoDirectDeviceUploadStep::DisplayName
     = tr("Upload files via SFTP");
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -45,7 +45,7 @@ class SshRemoteProcess;
 class SftpChannel;
 }
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 class MaemoDeployable;
 
@@ -89,6 +89,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMODIRECTDEVICEUPLOADSTEP_H
 #include <QtCore/QString>
 #include <QtGui/QDesktopServices>
 
-namespace Qt4ProjectManager {
+using namespace Qt4ProjectManager;
+using namespace Qt4ProjectManager::Constants;
+
+namespace RemoteLinux {
 namespace Internal {
 namespace {
 static const QLatin1String binQmake("/bin/qmake" EXEC_SUFFIX);
@@ -64,17 +67,17 @@ bool MaemoGlobal::isMaemoTargetId(const QString &id)
 
 bool MaemoGlobal::isFremantleTargetId(const QString &id)
 {
-    return id == QLatin1String(Constants::MAEMO5_DEVICE_TARGET_ID);
+    return id == QLatin1String(MAEMO5_DEVICE_TARGET_ID);
 }
 
 bool MaemoGlobal::isHarmattanTargetId(const QString &id)
 {
-    return id == QLatin1String(Constants::HARMATTAN_DEVICE_TARGET_ID);
+    return id == QLatin1String(HARMATTAN_DEVICE_TARGET_ID);
 }
 
 bool MaemoGlobal::isMeegoTargetId(const QString &id)
 {
-    return id == QLatin1String(Constants::MEEGO_DEVICE_TARGET_ID);
+    return id == QLatin1String(MEEGO_DEVICE_TARGET_ID);
 }
 
 bool MaemoGlobal::isValidMaemo5QtVersion(const QString &qmakePath)
@@ -451,4 +454,4 @@ MaemoGlobal::PackagingSystem MaemoGlobal::packagingSystem(MaemoDeviceConfig::OsV
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
similarity index 97%
rename from src/plugins/qt4projectmanager/qt-maemo/maemoglobal.h
rename to src/plugins/remotelinux/maemoglobal.h
index b22c8d8..4f9d9d9 100644 (file)
@@ -55,11 +55,10 @@ class QProcess;
 class QString;
 QT_END_NAMESPACE
 
+namespace QtSupport { class BaseQtVersion; }
 namespace Utils { class SshConnection; }
-namespace QtSupport {
-class BaseQtVersion;
-}
-namespace Qt4ProjectManager {
+
+namespace RemoteLinux {
 namespace Internal {
 
 class WatchableFile : public Core::IFile
@@ -90,7 +89,7 @@ private:
 
 class MaemoGlobal
 {
-    Q_DECLARE_TR_FUNCTIONS(Qt4ProjectManager::Internal::MaemoGlobal)
+    Q_DECLARE_TR_FUNCTIONS(RemoteLinux::Internal::MaemoGlobal)
 public:
     enum PackagingSystem { Dpkg, Rpm, Tar };
 
@@ -187,6 +186,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOGLOBAL_H
@@ -47,8 +47,9 @@
 #include <QtCore/QWeakPointer>
 
 using namespace ProjectExplorer;
+using namespace Qt4ProjectManager;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class AbstractMaemoInstallPackageToSysrootWidget : public BuildStepConfigWidget
@@ -399,6 +400,6 @@ const QString MaemoMakeInstallToSysrootStep::DisplayName
     = tr("Copy files to sysroot");
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #include "maemoinstalltosysrootstep.moc"
@@ -40,7 +40,7 @@
 
 QT_FORWARD_DECLARE_CLASS(QProcess)
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class AbstractMaemoInstallPackageToSysrootStep : public ProjectExplorer::BuildStep
@@ -131,6 +131,6 @@ public:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOINSTALLTOSYSROOTSTEP_H
@@ -38,7 +38,7 @@
 
 using namespace Utils;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoKeyDeployer::MaemoKeyDeployer(QObject *parent)
@@ -115,4 +115,4 @@ void MaemoKeyDeployer::cleanup()
 
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -40,7 +40,7 @@ struct SshConnectionParameters;
 class SshRemoteProcessRunner;
 }
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoKeyDeployer : public QObject
@@ -69,6 +69,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOKEYDEPLOYER_H
@@ -32,7 +32,7 @@
 
 #include "maemomountspecification.h"
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 const QLatin1String MaemoMountSpecification::InvalidMountPoint("/");
@@ -44,5 +44,5 @@ MaemoMountSpecification::MaemoMountSpecification(const QString &localDir,
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
@@ -35,7 +35,7 @@
 
 #include <QtCore/QLatin1String>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 struct MaemoMountSpecification {
@@ -49,6 +49,6 @@ struct MaemoMountSpecification {
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOMOUNTSPECIFICATION_H
 #include <projectexplorer/deployconfiguration.h>
 #include <projectexplorer/projectexplorerconstants.h>
 #include <projectexplorer/target.h>
-#include <qt4projectmanagerconstants.h>
 
 #include <QtCore/QCoreApplication>
 
 using ProjectExplorer::BuildStepList;
 using ProjectExplorer::BuildStep;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 namespace {
 const QString OldCreatePackageId("Qt4ProjectManager.MaemoPackageCreationStep");
@@ -81,13 +80,13 @@ QStringList MaemoPackageCreationFactory::availableCreationIds(ProjectExplorer::B
 QString MaemoPackageCreationFactory::displayNameForId(const QString &id) const
 {
     if (id == MaemoDebianPackageCreationStep::CreatePackageId) {
-        return QCoreApplication::translate("Qt4ProjectManager::Internal::MaemoPackageCreationFactory",
+        return QCoreApplication::translate("RemoteLinux::Internal::MaemoPackageCreationFactory",
             "Create Debian Package");
     } else if (id == MaemoRpmPackageCreationStep::CreatePackageId) {
-        return QCoreApplication::translate("Qt4ProjectManager::Internal::MaemoPackageCreationFactory",
+        return QCoreApplication::translate("RemoteLinux::Internal::MaemoPackageCreationFactory",
             "Create RPM Package");
     } else if (id == MaemoTarPackageCreationStep::CreatePackageId) {
-        return QCoreApplication::translate("Qt4ProjectManager::Internal::MaemoPackageCreationFactory",
+        return QCoreApplication::translate("RemoteLinux::Internal::MaemoPackageCreationFactory",
             "Create tarball");
     }
     return QString();
@@ -170,4 +169,4 @@ BuildStep *MaemoPackageCreationFactory::clone(ProjectExplorer::BuildStepList *pa
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #include <projectexplorer/buildstep.h>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoPackageCreationFactory : public ProjectExplorer::IBuildStepFactory
 {
 public:
-    MaemoPackageCreationFactory(QObject *parent);
+    MaemoPackageCreationFactory(QObject *parent = 0);
 
     virtual QStringList availableCreationIds(ProjectExplorer::BuildStepList *parent) const;
     virtual QString displayNameForId(const QString &id) const;
@@ -63,6 +63,6 @@ public:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOPACKAGECREATIONFACTORY_H
@@ -40,9 +40,9 @@
 
 #include <projectexplorer/buildsteplist.h>
 #include <projectexplorer/projectexplorerconstants.h>
-#include <qt4buildconfiguration.h>
-#include <qt4project.h>
-#include <qt4target.h>
+#include <qt4projectmanager/qt4buildconfiguration.h>
+#include <qt4projectmanager/qt4project.h>
+#include <qt4projectmanager/qt4target.h>
 #include <utils/environment.h>
 #include <utils/fileutils.h>
 
@@ -60,8 +60,9 @@ using namespace ProjectExplorer::Constants;
 using ProjectExplorer::BuildStepList;
 using ProjectExplorer::BuildStepConfigWidget;
 using ProjectExplorer::Task;
+using namespace Qt4ProjectManager;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 const QLatin1String AbstractMaemoPackageCreationStep::DefaultVersionNumber("0.0.1");
@@ -826,6 +827,6 @@ const QString MaemoTarPackageCreationStep::CreatePackageId
     = QLatin1String("MaemoTarPackageCreationStep");
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #include "maemopackagecreationstep.moc"
@@ -41,9 +41,9 @@ class QFileInfo;
 class QProcess;
 QT_END_NAMESPACE
 
-namespace Qt4ProjectManager {
-class Qt4BuildConfiguration;
+namespace Qt4ProjectManager { class Qt4BuildConfiguration; }
 
+namespace RemoteLinux {
 namespace Internal {
 class MaemoDeployableListModel;
 class AbstractQt4MaemoTarget;
@@ -63,10 +63,11 @@ public:
     bool setVersionString(const QString &version, QString *error);
 
     static void preparePackagingProcess(QProcess *proc,
-        const Qt4BuildConfiguration *bc, const QString &workingDir);
+        const Qt4ProjectManager::Qt4BuildConfiguration *bc,
+        const QString &workingDir);
 
     QString projectName() const;
-    const Qt4BuildConfiguration *qt4BuildConfiguration() const;
+    const Qt4ProjectManager::Qt4BuildConfiguration *qt4BuildConfiguration() const;
     AbstractQt4MaemoTarget *maemoTarget() const;
     AbstractDebBasedQt4MaemoTarget *debBasedMaemoTarget() const;
     AbstractRpmBasedQt4MaemoTarget *rpmBasedMaemoTarget() const;
@@ -106,7 +107,7 @@ private:
     static QString nativePath(const QFile &file);
     bool packagingNeeded() const;
 
-    const Qt4BuildConfiguration *m_lastBuildConfig;
+    const Qt4ProjectManager::Qt4BuildConfiguration *m_lastBuildConfig;
 };
 
 
@@ -127,7 +128,7 @@ private:
     virtual bool isMetaDataNewerThan(const QDateTime &packageDate) const;
 
     void ctor();
-    static QString packagingCommand(const Qt4BuildConfiguration *bc,
+    static QString packagingCommand(const Qt4ProjectManager::Qt4BuildConfiguration *bc,
         const QString &commandName);
     bool copyDebianFiles(bool inSourceBuild);
     void checkProjectName();
@@ -151,7 +152,7 @@ private:
         MaemoRpmPackageCreationStep *other);
 
     void ctor();
-    static QString rpmBuildDir(const Qt4BuildConfiguration *bc);
+    static QString rpmBuildDir(const Qt4ProjectManager::Qt4BuildConfiguration *bc);
 
     static const QString CreatePackageId;
 };
@@ -182,6 +183,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOPACKAGECREATIONSTEP_H
@@ -49,7 +49,7 @@
 
 using namespace ProjectExplorer;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 // TODO: Split up into dedicated widgets for Debian and RPM steps.
@@ -271,4 +271,4 @@ void MaemoPackageCreationWidget::editFile(const QString &filePath)
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -38,7 +38,7 @@ QT_BEGIN_NAMESPACE
 namespace Ui { class MaemoPackageCreationWidget; }
 QT_END_NAMESPACE
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 class AbstractMaemoPackageCreationStep;
 
@@ -79,6 +79,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOPACKAGECREATIONWIDGET_H
@@ -39,7 +39,7 @@
 
 using namespace Utils;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 AbstractMaemoPackageInstaller::AbstractMaemoPackageInstaller(QObject *parent)
@@ -213,4 +213,4 @@ QStringList MaemoTarPackageInstaller::installCommandArguments() const
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -43,7 +43,7 @@ class SshRemoteProcessRunner;
 #include <QtCore/QString>
 #include <QtCore/QStringList>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 class MaemoDeviceConfig;
 
@@ -130,6 +130,6 @@ private:
 
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // ABSTRACTMAEMOPACKAGEINSTALLER_H
@@ -41,7 +41,7 @@
 
 using namespace Utils;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoPackageUploader::MaemoPackageUploader(QObject *parent) :
@@ -156,4 +156,4 @@ void MaemoPackageUploader::setState(State newState)
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -44,7 +44,7 @@ class SftpChannel;
 class SshConnection;
 }
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoPackageUploader : public QObject
@@ -83,6 +83,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOPACKAGEUPLOADER_H
@@ -35,7 +35,7 @@
 
 using namespace ProjectExplorer;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoPerTargetDeviceConfigurationListModel::MaemoPerTargetDeviceConfigurationListModel(QObject *parent,
@@ -132,4 +132,4 @@ int MaemoPerTargetDeviceConfigurationListModel::indexForInternalId(MaemoDeviceCo
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -40,7 +40,7 @@
 
 namespace ProjectExplorer { class Target; }
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoPerTargetDeviceConfigurationListModel : public QAbstractListModel
@@ -68,6 +68,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOPERTARGETDEVICECONFIGURATIONLISTMODEL_H
@@ -39,7 +39,7 @@
 #include <QtCore/QDir>
 #include <QtGui/QTableWidgetItem>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoProFilesUpdateDialog::MaemoProFilesUpdateDialog(const QList<MaemoDeployableListModel *> &models,
@@ -99,5 +99,5 @@ MaemoProFilesUpdateDialog::getUpdateSettings() const
     return settings;
 }
 
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 } // namespace Internal
@@ -43,7 +43,7 @@ namespace Ui {
 }
 QT_END_NAMESPACE
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 class MaemoDeployableListModel;
 
@@ -68,7 +68,7 @@ private:
     Ui::MaemoProFilesUpdateDialog *ui;
 };
 
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 } // namespace Internal
 
 #endif // MAEMOPROFILESUPDATEDIALOG_H
@@ -33,7 +33,7 @@
 
 #include <QtCore/QFileInfo>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 namespace {
 const int IncludeColumn = 2;
@@ -132,4 +132,4 @@ bool MaemoPublishedProjectModel::setData(const QModelIndex &index,
 
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -36,7 +36,7 @@
 #include <QtCore/QStringList>
 #include <QtGui/QFileSystemModel>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoPublishedProjectModel : public QFileSystemModel
@@ -63,6 +63,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOPUBLISHEDPROJECTMODEL_H
 #define ASSERT_STATE(state) ASSERT_STATE_GENERIC(State, state, m_state)
 
 using namespace Core;
+using namespace Qt4ProjectManager;
 using namespace Utils;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoPublisherFremantleFree::MaemoPublisherFremantleFree(const ProjectExplorer::Project *project,
@@ -640,4 +641,4 @@ void MaemoPublisherFremantleFree::setState(State newState)
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -43,6 +43,9 @@ class Project;
 
 namespace Qt4ProjectManager {
 class Qt4BuildConfiguration;
+}
+
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoPublisherFremantleFree : public QObject
@@ -60,7 +63,7 @@ public:
     void publish();
     void cancel();
 
-    void setBuildConfiguration(const Qt4BuildConfiguration *buildConfig) { m_buildConfig = buildConfig; }
+    void setBuildConfiguration(const Qt4ProjectManager::Qt4BuildConfiguration *buildConfig) { m_buildConfig = buildConfig; }
     void setDoUpload(bool doUpload) { m_doUpload = doUpload; }
     void setSshParams(const QString &hostName, const QString &userName,
         const QString &keyFile, const QString &remoteDir);
@@ -107,7 +110,7 @@ private:
 
     const ProjectExplorer::Project * const m_project;
     bool m_doUpload;
-    const Qt4BuildConfiguration *m_buildConfig;
+    const Qt4ProjectManager::Qt4BuildConfiguration *m_buildConfig;
     State m_state;
     QString m_tmpProjectDir;
     QProcess *m_process;
@@ -120,6 +123,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOPUBLISHERFREMANTLEFREE_H
@@ -43,8 +43,9 @@
 #include <utils/qtcassert.h>
 
 using namespace ProjectExplorer;
+using namespace Qt4ProjectManager;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoPublishingBuildSettingsPageFremantleFree::MaemoPublishingBuildSettingsPageFremantleFree(const Project *project,
@@ -114,4 +115,4 @@ bool MaemoPublishingBuildSettingsPageFremantleFree::skipUpload() const
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -42,10 +42,9 @@ namespace Ui {
 QT_END_NAMESPACE
 
 namespace ProjectExplorer { class Project; }
+namespace Qt4ProjectManager { class Qt4BuildConfiguration; }
 
-namespace Qt4ProjectManager {
-class Qt4BuildConfiguration;
-
+namespace RemoteLinux {
 namespace Internal {
 class MaemoPublisherFremantleFree;
 
@@ -65,12 +64,12 @@ private:
     void collectBuildConfigurations(const ProjectExplorer::Project *project);
     bool skipUpload() const;
 
-    QList<Qt4BuildConfiguration *> m_buildConfigs;
+    QList<Qt4ProjectManager::Qt4BuildConfiguration *> m_buildConfigs;
     MaemoPublisherFremantleFree * const m_publisher;
     Ui::MaemoPublishingWizardPageFremantleFree *ui;
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOPUBLISHINGBUILDSETTINGSPAGEFREMANTLEFREE_H
@@ -34,7 +34,7 @@
 
 #include "maemopublishedprojectmodel.h"
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoPublishingFileSelectionDialog::MaemoPublishingFileSelectionDialog(const QString &projectPath,
@@ -62,4 +62,4 @@ QStringList MaemoPublishingFileSelectionDialog::filesToExclude() const
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -41,7 +41,7 @@ namespace Ui {
 }
 QT_END_NAMESPACE
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoPublishingFileSelectionDialog : public QDialog
@@ -60,6 +60,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOPUBLISHINGFILESELECTIONDIALOG_H
@@ -34,7 +34,7 @@
 
 #include <QtGui/QAbstractButton>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 typedef MaemoPublisherFremantleFree MPFF;
 
@@ -105,4 +105,4 @@ QAbstractButton *MaemoPublishingResultPageFremantleFree::cancelButton() const
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -41,7 +41,7 @@ namespace Ui {
 }
 QT_END_NAMESPACE
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoPublishingResultPageFremantleFree : public QWizardPage
@@ -72,6 +72,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOPUBLISHINGRESULTPAGEFREMANTLEFREE_H
@@ -38,7 +38,7 @@
 
 #include <QtCore/QDir>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoPublishingUploadSettingsPageFremantleFree::MaemoPublishingUploadSettingsPageFremantleFree(MaemoPublisherFremantleFree *publisher,
@@ -113,4 +113,4 @@ bool MaemoPublishingUploadSettingsPageFremantleFree::validatePage()
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -40,7 +40,7 @@ namespace Ui {
 }
 QT_END_NAMESPACE
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 class MaemoPublisherFremantleFree;
 
@@ -68,6 +68,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOPUBLISHINGUPLOADSETTINGSWIZARDPAGE_H
@@ -41,8 +41,9 @@
 #include <qtsupport/baseqtversion.h>
 
 using namespace ProjectExplorer;
+using namespace Qt4ProjectManager;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoPublishingWizardFactoryFremantleFree::MaemoPublishingWizardFactoryFremantleFree(QObject *parent)
@@ -96,4 +97,4 @@ QWizard *MaemoPublishingWizardFactoryFremantleFree::createWizard(const Project *
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -38,7 +38,7 @@ namespace Core {
 class SshRemoteProcessRunner;
 }
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoPublishingWizardFactoryFremantleFree
@@ -55,6 +55,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOPUBLISHINGSERVICE_H
@@ -38,7 +38,7 @@
 
 using namespace ProjectExplorer;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 namespace {
 enum PageId { BuildSettingsPageId, UploadSettingsPageId, ResultPageId };
@@ -78,4 +78,4 @@ int MaemoPublishingWizardFremantleFree::nextId() const
 
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -38,7 +38,7 @@ namespace ProjectExplorer {
 class Project;
 }
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 class MaemoPublishingResultPageFremantleFree;
 class MaemoPublisherFremantleFree;
@@ -63,6 +63,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOPUBLISHINGWIZARDFREMANTLEFREE_H
 #include "maemoqemumanager.h"
 
 #include "maemoglobal.h"
-#include "maemomanager.h"
 #include "maemoqemuruntimeparser.h"
 #include "maemosettingspages.h"
 #include "maemorunconfiguration.h"
-#include "qt4project.h"
-#include "qt4projectmanagerconstants.h"
 #include "qt4maemotarget.h"
 #include "maemoqtversion.h"
 
@@ -51,6 +48,7 @@
 #include <coreplugin/modemanager.h>
 
 #include <projectexplorer/projectexplorer.h>
+#include <projectexplorer/project.h>
 #include <projectexplorer/session.h>
 #include <qtsupport/qtversionmanager.h>
 #include <utils/filesystemwatcher.h>
@@ -69,7 +67,8 @@
 
 using namespace ProjectExplorer;
 using namespace Qt4ProjectManager;
-using namespace Qt4ProjectManager::Internal;
+using namespace RemoteLinux;
+using namespace RemoteLinux::Internal;
 
 MaemoQemuManager *MaemoQemuManager::m_instance = 0;
 
@@ -440,7 +439,7 @@ void MaemoQemuManager::qemuStatusChanged(QemuStatus status, const QString &error
                 tr("Qemu failed to start: %1"));
             break;
         case QemuCrashed:
-            MaemoManager::instance().qemuSettingsPage()->showQemuCrashDialog();
+            MaemoQemuSettingsPage::showQemuCrashDialog();
             break;
         case QemuFinished:
         case QemuUserReason:
@@ -59,10 +59,10 @@ namespace ProjectExplorer {
 namespace QtSupport {
 class BaseQtVersion;
 }
-namespace Qt4ProjectManager {
-    namespace Internal {
-    class MaemoRunConfiguration;
 
+namespace RemoteLinux {
+namespace Internal {
+class MaemoRunConfiguration;
 
 class MaemoQemuManager : public QObject
 {
@@ -141,6 +141,6 @@ private:
 };
 
 }   // namespace Internal
-}   // namespace Qt4ProjectManager
+}   // namespace RemoteLinux
 
 #endif  // QEMURUNTIMEMANAGER_H
@@ -41,7 +41,7 @@
 #include <QtCore/QProcessEnvironment>
 #include <QtCore/QString>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 enum QemuStatus {
@@ -85,6 +85,6 @@ struct MaemoQemuRuntime
 };
 
 }   // namespace Internal
-}   // namespace Qt4ProjectManager
+}   // namespace RemoteLinux
 
 #endif // MAEMOQEMURUNTIME_H
@@ -42,7 +42,7 @@
 #include <QtCore/QStringList>
 #include <QtCore/QTextStream>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoQemuRuntimeParserV1 : public MaemoQemuRuntimeParser
@@ -428,4 +428,4 @@ MaemoQemuSettings::OpenGlMode MaemoQemuRuntimeParserV2::openGlTagToEnum(const QS
 }
 
 }   // namespace Internal
-}   // namespace Qt4ProjectManager
+}   // namespace RemoteLinux
@@ -41,7 +41,7 @@ namespace QtSupport {
 class BaseQtVersion;
 }
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoQemuRuntimeParser
@@ -59,6 +59,6 @@ protected:
 };
 
 }   // namespace Internal
-}   // namespace Qt4ProjectManager
+}   // namespace RemoteLinux
 
 #endif // MAEMOQEMURUNTIMEPARSER_H
@@ -35,7 +35,7 @@
 
 #include <QtCore/QSettings>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 namespace {
 const QString SettingsGroup = QLatin1String("Maemo Qemu Settings");
@@ -68,4 +68,4 @@ bool MaemoQemuSettings::m_initialized = false;
 MaemoQemuSettings::OpenGlMode MaemoQemuSettings::m_openGlMode;
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -32,7 +32,7 @@
 #ifndef MAEMOQEMUSETTINGS_H
 #define MAEMOQEMUSETTINGS_H
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoQemuSettings
@@ -51,6 +51,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOQEMUSETTINGS_H
@@ -34,7 +34,7 @@
 
 #include "maemoqemusettings.h"
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoQemuSettingsWidget::MaemoQemuSettingsWidget(QWidget *parent) :
@@ -83,4 +83,4 @@ void MaemoQemuSettingsWidget::saveSettings()
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -40,7 +40,7 @@ namespace Ui {
 }
 QT_END_NAMESPACE
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoQemuSettingsWidget : public QWidget
@@ -58,6 +58,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOQEMUSETTINGSWIDGET_H
 **
 **************************************************************************/
 
+#include "maemoglobal.h"
 #include "maemoqtversion.h"
-#include "qt4projectmanagerconstants.h"
-#include "qt-maemo/maemoglobal.h"
+
+#include <qt4projectmanager/qt4projectmanagerconstants.h>
 
 #include <qtsupport/qtsupportconstants.h>
 
 #include <QtCore/QDir>
 
 using namespace Qt4ProjectManager;
-using namespace Qt4ProjectManager::Internal;
 
-MaemoQtVersion::MaemoQtVersion()
-    : QtSupport::BaseQtVersion()
+namespace RemoteLinux {
+namespace Internal {
+
+MaemoQtVersion::MaemoQtVersion() : QtSupport::BaseQtVersion()
 {
 
 }
@@ -167,3 +169,6 @@ MaemoDeviceConfig::OsVersion MaemoQtVersion::osVersion() const
 {
     return m_osVersion;
 }
+
+} // namespace Internal
+} // namespace RemoteLinux
@@ -35,7 +35,7 @@
 #include "maemodeviceconfigurations.h"
 #include <qtsupport/baseqtversion.h>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoQtVersion : public QtSupport::BaseQtVersion
@@ -66,8 +66,7 @@ private:
     mutable bool m_isvalidVersion;
 };
 
-}
-}
-
+} // namespace Internal
+} // namespace RemoteLinux
 
 #endif // MAEMOQTVERSION_H
 
 #include "maemoqtversionfactory.h"
 #include "maemoglobal.h"
-#include "qt4projectmanagerconstants.h"
 #include "maemoqtversion.h"
 
 #include <qtsupport/qtsupportconstants.h>
 
 #include <QtCore/QFileInfo>
 
-using namespace Qt4ProjectManager;
-using namespace Qt4ProjectManager::Internal;
+namespace RemoteLinux {
+namespace Internal {
 
 MaemoQtVersionFactory::MaemoQtVersionFactory(QObject *parent)
     : QtSupport::QtVersionFactory(parent)
@@ -84,3 +83,6 @@ QtSupport::BaseQtVersion *MaemoQtVersionFactory::create(const QString &qmakePath
         return new MaemoQtVersion(qmakePath, isAutoDetected, autoDetectionSource);
     return 0;
 }
+
+} // Internal
+} // Qt4ProjectManager
@@ -35,7 +35,7 @@
 
 #include <qtsupport/qtversionfactory.h>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoQtVersionFactory : public QtSupport::QtVersionFactory
@@ -54,5 +54,4 @@ public:
 } // Internal
 } // Qt4ProjectManager
 
-
 #endif // MAEMOQTVERSIONFACTORY_H
@@ -40,7 +40,7 @@
 
 using namespace Utils;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoRemoteCopyFacility::MaemoRemoteCopyFacility(QObject *parent) :
@@ -156,4 +156,4 @@ void MaemoRemoteCopyFacility::setFinished()
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -45,7 +45,7 @@ class SshConnection;
 class SshRemoteProcessRunner;
 }
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 class MaemoDeviceConfig;
 
@@ -86,6 +86,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOREMOTECOPYFACILITY_H
 
 #define ASSERT_STATE(state) ASSERT_STATE_GENERIC(State, state, m_state)
 
+using namespace Qt4ProjectManager;
 using namespace Utils;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoRemoteMounter::MaemoRemoteMounter(QObject *parent)
@@ -404,4 +405,4 @@ void MaemoRemoteMounter::setState(State newState)
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -50,8 +50,9 @@ class SshConnection;
 class SshRemoteProcess;
 }
 
-namespace Qt4ProjectManager {
-class Qt4BuildConfiguration;
+namespace Qt4ProjectManager { class Qt4BuildConfiguration; }
+
+namespace RemoteLinux {
 namespace Internal {
 class MaemoDeviceConfig;
 class MaemoUsedPortsGatherer;
@@ -67,7 +68,7 @@ public:
     void setConnection(const QSharedPointer<Utils::SshConnection> &connection,
         const QSharedPointer<const MaemoDeviceConfig> &devConf);
 
-    void setBuildConfiguration(const Qt4BuildConfiguration *bc);
+    void setBuildConfiguration(const Qt4ProjectManager::Qt4BuildConfiguration *bc);
     void addMountSpecification(const MaemoMountSpecification &mountSpec,
         bool mountAsRoot);
     bool hasValidMountSpecifications() const;
@@ -141,6 +142,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOREMOTEMOUNTER_H
@@ -34,7 +34,7 @@
 
 #include "maemoconstants.h"
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoRemoteMountsModel::MaemoRemoteMountsModel(QObject *parent) :
@@ -187,4 +187,4 @@ bool MaemoRemoteMountsModel::setData(const QModelIndex &index,
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -40,7 +40,7 @@
 #include <QtCore/QString>
 #include <QtCore/QVariantMap>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoRemoteMountsModel : public QAbstractTableModel
@@ -94,6 +94,6 @@ inline QModelIndex MaemoRemoteMountsModel::parent(const QModelIndex &) const
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOREMOTEMOUNTSMODEL_H
@@ -38,7 +38,7 @@
 #include <QtGui/QMessageBox>
 #include <QtGui/QSortFilterProxyModel>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoRemoteProcessesDialog::MaemoRemoteProcessesDialog(const MaemoDeviceConfig::ConstPtr &devConfig,
@@ -128,4 +128,4 @@ void MaemoRemoteProcessesDialog::handleSelectionChanged()
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -42,7 +42,7 @@ namespace Ui {
 class QSortFilterProxyModel;
 QT_END_NAMESPACE
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 class MaemoDeviceConfig;
 class MaemoRemoteProcessList;
@@ -71,6 +71,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOREMOTEPROCESSDIALOG_H
@@ -39,7 +39,7 @@
 
 using namespace Utils;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 namespace {
 const QByteArray LineSeparator1("---");
@@ -250,4 +250,4 @@ QVariant MaemoRemoteProcessList::data(const QModelIndex &index, int role) const
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -39,7 +39,7 @@
 #include <QtCore/QString>
 #include <utils/ssh/sshremoteprocessrunner.h>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 class MaemoDeviceConfig;
 
@@ -94,6 +94,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOREMOTEPROCESSLIST_H
@@ -51,6 +51,7 @@
 
 #include <qtsupport/qtoutputformatter.h>
 #include <qt4projectmanager/qt4buildconfiguration.h>
+#include <qt4projectmanager/qt4nodes.h>
 #include <qt4projectmanager/qt4project.h>
 #include <qt4projectmanager/qt4target.h>
 
 
 #include <QtCore/QStringBuilder>
 
-namespace Qt4ProjectManager {
+using namespace ProjectExplorer;
+using namespace Qt4ProjectManager;
+
+namespace RemoteLinux {
 namespace Internal {
 
 namespace {
 const bool DefaultUseRemoteGdbValue = false;
 } // anonymous namespace
 
-using namespace ProjectExplorer;
-
 MaemoRunConfiguration::MaemoRunConfiguration(Qt4BaseTarget *parent,
         const QString &proFilePath)
     : RunConfiguration(parent, QLatin1String(MAEMO_RC_ID))
@@ -107,10 +109,10 @@ void MaemoRunConfiguration::init()
     handleDeployConfigChanged();
 
     Qt4Project *pro = qt4Target()->qt4Project();
-    connect(pro, SIGNAL(proFileUpdated(Qt4ProjectManager::Internal::Qt4ProFileNode*,bool)),
-            this, SLOT(proFileUpdate(Qt4ProjectManager::Internal::Qt4ProFileNode*,bool)));
-    connect(pro, SIGNAL(proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode *)),
-            this, SLOT(proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode*)));
+    connect(pro, SIGNAL(proFileUpdated(Qt4ProjectManager::Qt4ProFileNode*,bool)),
+            this, SLOT(proFileUpdate(Qt4ProjectManager::Qt4ProFileNode*,bool)));
+    connect(pro, SIGNAL(proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode *)),
+            this, SLOT(proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode*)));
 }
 
 MaemoRunConfiguration::~MaemoRunConfiguration()
@@ -153,14 +155,14 @@ void MaemoRunConfiguration::handleParseState(bool success)
     }
 }
 
-void MaemoRunConfiguration::proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode *pro)
+void MaemoRunConfiguration::proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode *pro)
 {
     if (m_proFilePath != pro->path())
         return;
     handleParseState(false);
 }
 
-void MaemoRunConfiguration::proFileUpdate(Qt4ProjectManager::Internal::Qt4ProFileNode *pro, bool success)
+void MaemoRunConfiguration::proFileUpdate(Qt4ProjectManager::Qt4ProFileNode *pro, bool success)
 {
     if (m_proFilePath == pro->path()) {
         handleParseState(success);
@@ -436,4 +438,4 @@ QString MaemoRunConfiguration::proFilePath() const
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 QT_FORWARD_DECLARE_CLASS(QWidget)
 
 namespace Qt4ProjectManager {
-
 class Qt4BuildConfiguration;
 class Qt4Project;
 class Qt4BaseTarget;
+class Qt4ProFileNode;
+} // namespace Qt4ProjectManager
 
+namespace RemoteLinux {
 namespace Internal {
 
-class Qt4ProFileNode;
-
 class AbstractLinuxDeviceDeployStep;
 class MaemoDeviceConfigListModel;
-class MaemoManager;
 class MaemoRemoteMountsModel;
 class MaemoRunConfigurationFactory;
 class MaemoToolChain;
@@ -77,15 +76,16 @@ public:
 
     enum DebuggingType { DebugCppOnly, DebugQmlOnly, DebugCppAndQml };
 
-    MaemoRunConfiguration(Qt4BaseTarget *parent, const QString &proFilePath);
+    MaemoRunConfiguration(Qt4ProjectManager::Qt4BaseTarget *parent,
+        const QString &proFilePath);
     virtual ~MaemoRunConfiguration();
 
     using ProjectExplorer::RunConfiguration::isEnabled;
     bool isEnabled(ProjectExplorer::BuildConfiguration *config) const;
     QWidget *createConfigurationWidget();
     Utils::OutputFormatter *createOutputFormatter() const;
-    Qt4BaseTarget *qt4Target() const;
-    Qt4BuildConfiguration *activeQt4BuildConfiguration() const;
+    Qt4ProjectManager::Qt4BaseTarget *qt4Target() const;
+    Qt4ProjectManager::Qt4BuildConfiguration *activeQt4BuildConfiguration() const;
 
     Qt4MaemoDeployConfiguration *deployConfig() const;
     MaemoRemoteMountsModel *remoteMounts() const { return m_remoteMounts; }
@@ -134,13 +134,14 @@ signals:
     void userEnvironmentChangesChanged(const QList<Utils::EnvironmentItem> &diff);
 
 protected:
-    MaemoRunConfiguration(Qt4BaseTarget *parent, MaemoRunConfiguration *source);
+    MaemoRunConfiguration(Qt4ProjectManager::Qt4BaseTarget *parent,
+        MaemoRunConfiguration *source);
     virtual bool fromMap(const QVariantMap &map);
     QString defaultDisplayName();
 
 private slots:
-    void proFileUpdate(Qt4ProjectManager::Internal::Qt4ProFileNode *pro, bool success);
-    void proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode *pro);
+    void proFileUpdate(Qt4ProjectManager::Qt4ProFileNode *pro, bool success);
+    void proFileInvalidated(Qt4ProjectManager::Qt4ProFileNode *pro);
     void updateDeviceConfigurations();
     void handleDeployConfigChanged();
 
@@ -162,6 +163,6 @@ private:
 };
 
     } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMORUNCONFIGURATION_H
@@ -33,7 +33,6 @@
 
 #include "maemodeployables.h"
 #include "maemodeviceenvreader.h"
-#include "maemomanager.h"
 #include "maemoglobal.h"
 #include "maemoremotemountsmodel.h"
 #include "maemorunconfiguration.h"
 #include <QtGui/QTableView>
 #include <QtGui/QToolButton>
 
-namespace Qt4ProjectManager {
+using namespace Qt4ProjectManager;
+
+namespace RemoteLinux {
 namespace Internal {
 namespace {
 const QString FetchEnvButtonText
-    = QCoreApplication::translate("Qt4ProjectManager::Internal::MaemoRunConfigurationWidget",
+    = QCoreApplication::translate("ReoteLinux::Internal::MaemoRunConfigurationWidget",
           "Fetch Device Environment");
 } // anonymous namespace
 
@@ -337,9 +338,8 @@ void MaemoRunConfigurationWidget::handleDeploySpecsChanged()
 void MaemoRunConfigurationWidget::showDeviceConfigurationsDialog(const QString &link)
 {
     if (link == QLatin1String("deviceconfig")) {
-        MaemoDeviceConfigurationsSettingsPage *page
-            = MaemoManager::instance().deviceConfigurationsSettingsPage();
-        Core::ICore::instance()->showOptionsDialog(page->category(), page->id());
+        Core::ICore::instance()->showOptionsDialog(MaemoDeviceConfigurationsSettingsPage::Category,
+            MaemoDeviceConfigurationsSettingsPage::Id);
     } else if (link == QLatin1String("debugger")) {
         Core::ICore::instance()->showOptionsDialog(QLatin1String("O.Debugger"),
             QLatin1String("M.Gdb"));
@@ -539,4 +539,4 @@ void MaemoRunConfigurationWidget::updateMountWarning()
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -47,6 +47,7 @@ class QVBoxLayout;
 QT_END_NAMESPACE
 
 namespace Utils {
+class DetailsWidget;
 class EnvironmentItem;
 }
 
@@ -54,11 +55,11 @@ namespace ProjectExplorer {
 class EnvironmentWidget;
 }
 
-namespace Utils { class DetailsWidget; }
-
 namespace Qt4ProjectManager {
 class Qt4BuildConfiguration;
+}
 
+namespace RemoteLinux {
 namespace Internal {
 class MaemoDeviceEnvReader;
 class MaemoRunConfiguration;
@@ -126,6 +127,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMORUNCONFIGURATIONWIDGET_H
@@ -42,7 +42,7 @@
 
 using namespace ProjectExplorer;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 using ProjectExplorer::RunConfiguration;
@@ -159,4 +159,4 @@ void MaemoRunControl::setFinished()
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -36,7 +36,7 @@
 
 #include <QtCore/QString>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 class MaemoRunConfiguration;
@@ -73,6 +73,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMORUNCONTROL_H
 #include <projectexplorer/projectexplorerconstants.h>
 #include <debugger/debuggerconstants.h>
 #include <qt4projectmanager/qt4project.h>
-#include <qt4projectmanager/qt4projectmanagerconstants.h>
 #include <analyzerbase/analyzerconstants.h>
 
-namespace Qt4ProjectManager {
-namespace Internal {
-
 using namespace ProjectExplorer;
+using namespace Qt4ProjectManager;
+
+namespace RemoteLinux {
+namespace Internal {
 
 namespace {
 
@@ -215,4 +215,4 @@ RunConfigWidget *MaemoRunControlFactory::createConfigurationWidget(RunConfigurat
 }
 
     } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -46,7 +46,7 @@ using ProjectExplorer::RunConfigWidget;
 using ProjectExplorer::RunControl;
 using ProjectExplorer::Target;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
     namespace Internal {
 
 class MaemoRunConfigurationFactory : public IRunConfigurationFactory
@@ -85,6 +85,6 @@ public:
 };
 
     } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif  // MAEMORUNFACTORIES_H
 #include <QtGui/QLabel>
 #include <QtGui/QVBoxLayout>
 #include <QtGui/QIcon>
+#include <QtGui/QMainWindow>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
+namespace {
+class MaemoQemuCrashDialog : public QDialog
+{
+    Q_OBJECT
+public:
+    MaemoQemuCrashDialog(QWidget *parent = 0) : QDialog(parent)
+    {
+        setWindowTitle(tr("Qemu error"));
+        QString message = tr("Qemu crashed.") + QLatin1String(" <p>");
+        const MaemoQemuSettings::OpenGlMode openGlMode
+            = MaemoQemuSettings::openGlMode();
+        const QString linkString = QLatin1String("</p><a href=\"dummy\">")
+            + tr("Click here to change the OpenGL mode.")
+            + QLatin1String("</a>");
+        if (openGlMode == MaemoQemuSettings::HardwareAcceleration) {
+            message += tr("You have configured Qemu to use OpenGL "
+                "hardware acceleration, which might not be supported by "
+                "your system. You could try using software rendering instead.");
+            message += linkString;
+        } else if (openGlMode == MaemoQemuSettings::AutoDetect) {
+            message += tr("Qemu is currently configured to auto-detect the "
+                "OpenGL mode, which is known to not work in some cases. "
+                "You might want to use software rendering instead.");
+            message += linkString;
+        }
+        QLabel * const messageLabel = new QLabel(message, this);
+        messageLabel->setWordWrap(true);
+        messageLabel->setTextFormat(Qt::RichText);
+        connect(messageLabel, SIGNAL(linkActivated(QString)),
+            SLOT(showSettingsPage()));
+        QVBoxLayout *mainLayout = new QVBoxLayout(this);
+        mainLayout->addWidget(messageLabel);
+        QFrame * const separator = new QFrame;
+        separator->setFrameShape(QFrame::HLine);
+        separator->setFrameShadow(QFrame::Sunken);
+        mainLayout->addWidget(separator);
+        QDialogButtonBox * const buttonBox = new QDialogButtonBox;
+        buttonBox->addButton(QDialogButtonBox::Ok);
+        connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
+        mainLayout->addWidget(buttonBox);
+    }
+
+private:
+    Q_SLOT void showSettingsPage()
+    {
+        Core::ICore::instance()->showOptionsDialog(MaemoQemuSettingsPage::Category,
+            MaemoQemuSettingsPage::Id);
+        accept();
+    }
+};
+
+} // anonymous namespace
 
 MaemoDeviceConfigurationsSettingsPage::MaemoDeviceConfigurationsSettingsPage(QObject *parent)
     : Core::IOptionsPage(parent)
@@ -60,7 +113,7 @@ MaemoDeviceConfigurationsSettingsPage::~MaemoDeviceConfigurationsSettingsPage()
 
 QString MaemoDeviceConfigurationsSettingsPage::id() const
 {
-    return QLatin1String("ZZ.Maemo Device Configurations");
+    return Id;
 }
 
 QString MaemoDeviceConfigurationsSettingsPage::displayName() const
@@ -70,7 +123,7 @@ QString MaemoDeviceConfigurationsSettingsPage::displayName() const
 
 QString MaemoDeviceConfigurationsSettingsPage::category() const
 {
-    return QLatin1String(Constants::MAEMO_SETTINGS_CATEGORY);
+    return Category;
 }
 
 QString MaemoDeviceConfigurationsSettingsPage::displayCategory() const
@@ -106,6 +159,11 @@ void MaemoDeviceConfigurationsSettingsPage::finish()
 {
 }
 
+const QString MaemoDeviceConfigurationsSettingsPage::Id
+    = QLatin1String("ZZ.Maemo Device Configurations");
+const QString MaemoDeviceConfigurationsSettingsPage::Category
+    = QLatin1String(Constants::MAEMO_SETTINGS_CATEGORY);
+
 
 MaemoQemuSettingsPage::MaemoQemuSettingsPage(QObject *parent)
     : Core::IOptionsPage(parent)
@@ -118,7 +176,7 @@ MaemoQemuSettingsPage::~MaemoQemuSettingsPage()
 
 QString MaemoQemuSettingsPage::id() const
 {
-    return QLatin1String("ZZ.Qemu Settings");
+    return Id;
 }
 
 QString MaemoQemuSettingsPage::displayName() const
@@ -128,7 +186,7 @@ QString MaemoQemuSettingsPage::displayName() const
 
 QString MaemoQemuSettingsPage::category() const
 {
-    return QLatin1String(Constants::MAEMO_SETTINGS_CATEGORY);
+    return Category;
 }
 
 QString MaemoQemuSettingsPage::displayCategory() const
@@ -162,68 +220,17 @@ void MaemoQemuSettingsPage::finish()
 {
 }
 
-
-class MaemoQemuCrashDialog : public QDialog
-{
-    Q_OBJECT
-public:
-    MaemoQemuCrashDialog(MaemoQemuSettingsPage *settingsPage)
-        : m_settingsPage(settingsPage)
-    {
-        setWindowTitle(tr("Qemu error"));
-        QString message = tr("Qemu crashed.") + QLatin1String(" <p>");
-        const MaemoQemuSettings::OpenGlMode openGlMode
-            = MaemoQemuSettings::openGlMode();
-        const QString linkString = QLatin1String("</p><a href=\"dummy\">")
-            + tr("Click here to change the OpenGL mode.")
-            + QLatin1String("</a>");
-        if (openGlMode == MaemoQemuSettings::HardwareAcceleration) {
-            message += tr("You have configured Qemu to use OpenGL "
-                "hardware acceleration, which might not be supported by "
-                "your system. You could try using software rendering instead.");
-            message += linkString;
-        } else if (openGlMode == MaemoQemuSettings::AutoDetect) {
-            message += tr("Qemu is currently configured to auto-detect the "
-                "OpenGL mode, which is known to not work in some cases. "
-                "You might want to use software rendering instead.");
-            message += linkString;
-        }
-        QLabel * const messageLabel = new QLabel(message, this);
-        messageLabel->setWordWrap(true);
-        messageLabel->setTextFormat(Qt::RichText);
-        connect(messageLabel, SIGNAL(linkActivated(QString)),
-            SLOT(showSettingsPage()));
-        QVBoxLayout *mainLayout = new QVBoxLayout(this);
-        mainLayout->addWidget(messageLabel);
-        QFrame * const separator = new QFrame;
-        separator->setFrameShape(QFrame::HLine);
-        separator->setFrameShadow(QFrame::Sunken);
-        mainLayout->addWidget(separator);
-        QDialogButtonBox * const buttonBox = new QDialogButtonBox;
-        buttonBox->addButton(QDialogButtonBox::Ok);
-        connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
-        mainLayout->addWidget(buttonBox);
-    }
-
-private:
-    Q_SLOT void showSettingsPage()
-    {
-        Core::ICore::instance()->showOptionsDialog(m_settingsPage->category(),
-            m_settingsPage->id());
-        accept();
-    }
-
-    MaemoQemuSettingsPage * const m_settingsPage;
-};
-
-
 void MaemoQemuSettingsPage::showQemuCrashDialog()
 {
-    MaemoQemuCrashDialog dlg(this);
+    MaemoQemuCrashDialog dlg(Core::ICore::instance()->mainWindow());
     dlg.exec();
 }
 
+const QString MaemoQemuSettingsPage::Id = QLatin1String("ZZ.Qemu Settings");
+const QString MaemoQemuSettingsPage::Category
+    = QLatin1String(Constants::MAEMO_SETTINGS_CATEGORY);
+
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #include "maemosettingspages.moc"
@@ -34,7 +34,7 @@
 
 #include <coreplugin/dialogs/ioptionspage.h>
 
-namespace Qt4ProjectManager{
+namespace RemoteLinux{
 namespace Internal {
 
 class MaemoDeviceConfigurationsSettingsWidget;
@@ -44,7 +44,7 @@ class MaemoDeviceConfigurationsSettingsPage : public Core::IOptionsPage
 {
     Q_OBJECT
 public:
-    MaemoDeviceConfigurationsSettingsPage(QObject *parent);
+    MaemoDeviceConfigurationsSettingsPage(QObject *parent = 0);
     ~MaemoDeviceConfigurationsSettingsPage();
 
     virtual QString id() const;
@@ -57,6 +57,9 @@ public:
     virtual void apply();
     virtual void finish();
 
+    static const QString Id;
+    static const QString Category;
+
 private:
     QString m_keywords;
     MaemoDeviceConfigurationsSettingsWidget *m_widget;
@@ -66,7 +69,7 @@ class MaemoQemuSettingsPage : public Core::IOptionsPage
 {
     Q_OBJECT
 public:
-    MaemoQemuSettingsPage(QObject *parent);
+    MaemoQemuSettingsPage(QObject *parent = 0);
     ~MaemoQemuSettingsPage();
 
     virtual QString id() const;
@@ -79,7 +82,10 @@ public:
     virtual void apply();
     virtual void finish();
 
-    void showQemuCrashDialog();
+    static const QString Id;
+    static const QString Category;
+
+    static void showQemuCrashDialog();
 
 private:
     QString m_keywords;
@@ -87,6 +93,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOSETTINGSPAGES_H
@@ -44,7 +44,7 @@
 #include <QtNetwork/QHostInfo>
 
 using namespace Utils;
-using namespace Qt4ProjectManager::Internal;
+using namespace RemoteLinux::Internal;
 
 MaemoSshConfigDialog::MaemoSshConfigDialog(QWidget *parent)
     : QDialog(parent)
@@ -77,9 +77,6 @@ void MaemoSshConfigDialog::generateSshKey()
         ? SshKeyGenerator::Rsa
         : SshKeyGenerator::Dsa;
 
-    QByteArray userId = QString(home.mid(home.lastIndexOf(QLatin1Char('/')) + 1)
-        + QLatin1Char('@') + QHostInfo::localHostName()).toUtf8();
-
     QApplication::setOverrideCursor(Qt::BusyCursor);
 
     if (m_keyGenerator->generateKeys(keyType, SshKeyGenerator::OpenSsl,
@@ -41,7 +41,7 @@ namespace Utils {
     class SshKeyGenerator;
 }
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
     namespace Internal {
 
 class MaemoSshConfigDialog : public QDialog
 
 #define ASSERT_STATE(state) ASSERT_STATE_GENERIC(State, state, m_state)
 
+using namespace Qt4ProjectManager;
 using namespace Utils;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoSshRunner::MaemoSshRunner(QObject *parent,
@@ -386,5 +387,5 @@ const qint64 MaemoSshRunner::InvalidExitCode
     = std::numeric_limits<qint64>::min();
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
@@ -46,7 +46,7 @@ namespace Utils {
     class SshRemoteProcess;
 }
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 class MaemoRemoteMounter;
 class MaemoRunConfiguration;
@@ -130,6 +130,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOSSHRUNNER_H
 #include "maemotoolchain.h"
 
 #include "maemoglobal.h"
-#include "maemomanager.h"
 #include "maemoqtversion.h"
-#include "qt4projectmanagerconstants.h"
 
 #include <projectexplorer/gccparser.h>
 #include <projectexplorer/headerpath.h>
 #include <projectexplorer/toolchainmanager.h>
+#include <qt4projectmanager/qt4projectmanagerconstants.h>
 #include <utils/environment.h>
 #include <qtsupport/qtversionmanager.h>
 
@@ -48,7 +47,9 @@
 #include <QtGui/QLabel>
 #include <QtGui/QVBoxLayout>
 
-namespace Qt4ProjectManager {
+using namespace Qt4ProjectManager;
+
+namespace RemoteLinux {
 namespace Internal {
 
 static const char *const MAEMO_QT_VERSION_KEY = "Qt4ProjectManager.Maemo.QtVersion";
@@ -336,4 +337,4 @@ QList<ProjectExplorer::ToolChain *> MaemoToolChainFactory::createToolChainList(c
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -36,7 +36,7 @@
 #include <projectexplorer/gcctoolchain.h>
 #include <projectexplorer/toolchainconfigwidget.h>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 
 namespace Internal {
 
@@ -121,6 +121,6 @@ private slots:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOTOOLCHAIN_H
@@ -49,7 +49,7 @@
 using namespace ProjectExplorer;
 using namespace Utils;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 AbstractMaemoUploadAndInstallStep::AbstractMaemoUploadAndInstallStep(BuildStepList *parent, const QString &id)
@@ -275,4 +275,4 @@ const QString MaemoUploadAndInstallTarPackageStep::DisplayName
 
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -35,7 +35,7 @@
 
 #include "abstractmaemodeploystep.h"
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 class AbstractMaemoPackageInstaller;
 class MaemoPackageUploader;
@@ -126,6 +126,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMODEPLOYSTEP_H
@@ -37,7 +37,7 @@
 
 using namespace Utils;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
 MaemoUsedPortsGatherer::MaemoUsedPortsGatherer(QObject *parent) :
@@ -166,4 +166,4 @@ void MaemoUsedPortsGatherer::handleRemoteStdErr(const QByteArray &output)
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -44,7 +44,7 @@ class SshConnection;
 class SshRemoteProcessRunner;
 }
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 class MaemoDeviceConfig;
 
@@ -81,6 +81,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // MAEMOUSEDPORTSGATHERER_H
 #include <projectexplorer/buildsteplist.h>
 #include <projectexplorer/projectexplorerconstants.h>
 
-#include <qt4projectmanager/qt4projectmanagerconstants.h>
 #include <qt4projectmanager/qt4target.h>
 
 using namespace ProjectExplorer;
+using namespace Qt4ProjectManager;
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 namespace {
 const QString OldDeployConfigId = QLatin1String("2.2MaemoDeployConfig");
@@ -217,4 +217,4 @@ DeployConfiguration *Qt4MaemoDeployConfigurationFactory::clone(Target *parent,
 }
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
@@ -40,7 +40,7 @@
 
 #include <QtCore/QSharedPointer>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 class MaemoPerTargetDeviceConfigurationListModel;
 
@@ -95,6 +95,6 @@ public:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // QT4PROJECTMANAGER_QT4DEPLOYCONFIGURATION_H
@@ -52,7 +52,6 @@
 #include <utils/filesystemwatcher.h>
 #include <qtsupport/baseqtversion.h>
 
-
 #include <QtGui/QApplication>
 #include <QtGui/QMainWindow>
 #include <QtCore/QBuffer>
@@ -68,7 +67,9 @@
 #include <cctype>
 
 using namespace Qt4ProjectManager;
-using namespace Qt4ProjectManager::Internal;
+
+namespace RemoteLinux {
+namespace Internal {
 
 namespace {
 const QByteArray NameFieldName("Package");
@@ -1121,3 +1122,6 @@ QString Qt4MeegoTarget::specFileName() const
 {
     return QLatin1String("meego.spec");
 }
+
+} // namespace Internal
+} // namespace RemoteLinux
@@ -33,7 +33,7 @@
 #ifndef QT4MAEMOTARGET_H
 #define QT4MAEMOTARGET_H
 
-#include "qt4target.h"
+#include <qt4projectmanager/qt4target.h>
 
 #include <QtCore/QIODevice>
 #include <QtCore/QSharedPointer>
 
 QT_FORWARD_DECLARE_CLASS(QFile)
 
-namespace Utils {
-class FileSystemWatcher;
-}
-namespace Qt4ProjectManager {
-class Qt4Project;
+namespace Qt4ProjectManager { class Qt4Project; }
+namespace Utils { class FileSystemWatcher; }
+
+namespace RemoteLinux {
 namespace Internal {
 class Qt4MaemoDeployConfigurationFactory;
 class WatchableFile;
 
-class AbstractQt4MaemoTarget : public Qt4BaseTarget
+class AbstractQt4MaemoTarget : public Qt4ProjectManager::Qt4BaseTarget
 {
     friend class Qt4MaemoTargetFactory;
     Q_OBJECT
 public:
-    explicit AbstractQt4MaemoTarget(Qt4Project *parent, const QString &id);
+    explicit AbstractQt4MaemoTarget(Qt4ProjectManager::Qt4Project *parent,
+        const QString &id);
     virtual ~AbstractQt4MaemoTarget();
 
-    Qt4BuildConfigurationFactory *buildConfigurationFactory() const;
+    Qt4ProjectManager::Qt4BuildConfigurationFactory *buildConfigurationFactory() const;
     void createApplicationProFiles();
     QList<ProjectExplorer::RunConfiguration *> runConfigurationsForNode(ProjectExplorer::Node *n);
     QList<ProjectExplorer::ToolChain *> possibleToolChains(ProjectExplorer::BuildConfiguration *bc) const;
@@ -105,7 +105,7 @@ private:
     bool initPackagingSettingsFromOtherTarget();
     virtual bool initAdditionalPackagingSettingsFromOtherTarget()=0;
 
-    Qt4BuildConfigurationFactory *m_buildConfigurationFactory;
+    Qt4ProjectManager::Qt4BuildConfigurationFactory *m_buildConfigurationFactory;
     bool m_isInitialized;
 };
 
@@ -114,7 +114,8 @@ class AbstractDebBasedQt4MaemoTarget : public AbstractQt4MaemoTarget
 {
     Q_OBJECT
 public:
-    AbstractDebBasedQt4MaemoTarget(Qt4Project *parent, const QString &id);
+    AbstractDebBasedQt4MaemoTarget(Qt4ProjectManager::Qt4Project *parent,
+        const QString &id);
     ~AbstractDebBasedQt4MaemoTarget();
 
     QString debianDirPath() const;
@@ -182,7 +183,8 @@ class AbstractRpmBasedQt4MaemoTarget : public AbstractQt4MaemoTarget
 {
     Q_OBJECT
 public:
-    AbstractRpmBasedQt4MaemoTarget(Qt4Project *parent, const QString &id);
+    AbstractRpmBasedQt4MaemoTarget(Qt4ProjectManager::Qt4Project *parent,
+        const QString &id);
     ~AbstractRpmBasedQt4MaemoTarget();
 
     virtual bool allowsRemoteMounts() const { return false; }
@@ -225,7 +227,8 @@ class Qt4Maemo5Target : public AbstractDebBasedQt4MaemoTarget
 {
     Q_OBJECT
 public:
-    explicit Qt4Maemo5Target(Qt4Project *parent, const QString &id);
+    explicit Qt4Maemo5Target(Qt4ProjectManager::Qt4Project *parent,
+        const QString &id);
     virtual ~Qt4Maemo5Target();
 
     virtual bool allowsRemoteMounts() const { return true; }
@@ -246,7 +249,8 @@ class Qt4HarmattanTarget : public AbstractDebBasedQt4MaemoTarget
 {
     Q_OBJECT
 public:
-    explicit Qt4HarmattanTarget(Qt4Project *parent, const QString &id);
+    explicit Qt4HarmattanTarget(Qt4ProjectManager::Qt4Project *parent,
+        const QString &id);
     virtual ~Qt4HarmattanTarget();
 
     virtual bool allowsRemoteMounts() const { return false; }
@@ -267,7 +271,8 @@ class Qt4MeegoTarget : public AbstractRpmBasedQt4MaemoTarget
 {
     Q_OBJECT
 public:
-    explicit Qt4MeegoTarget(Qt4Project *parent, const QString &id);
+    explicit Qt4MeegoTarget(Qt4ProjectManager::Qt4Project *parent,
+        const QString &id);
     virtual ~Qt4MeegoTarget();
     static QString defaultDisplayName();
 private:
@@ -275,6 +280,6 @@ private:
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // QT4MAEMOTARGET_H
@@ -31,9 +31,6 @@
 **************************************************************************/
 
 #include "qt4maemotargetfactory.h"
-#include "buildconfigurationinfo.h"
-#include "qt4project.h"
-#include "qt4projectmanagerconstants.h"
 #include "maemoglobal.h"
 #include "maemopackagecreationstep.h"
 #include "maemorunconfiguration.h"
 #include <projectexplorer/deployconfiguration.h>
 #include <projectexplorer/projectexplorerconstants.h>
 #include <projectexplorer/customexecutablerunconfiguration.h>
+#include <qt4projectmanager/buildconfigurationinfo.h>
+#include <qt4projectmanager/qt4project.h>
+#include <qt4projectmanager/qt4projectmanagerconstants.h>
 #include <utils/qtcassert.h>
 
 using namespace Qt4ProjectManager;
-using namespace Qt4ProjectManager::Internal;
+using namespace Qt4ProjectManager::Constants;
 using ProjectExplorer::idFromMap;
 
+namespace RemoteLinux {
+namespace Internal {
+
 // -------------------------------------------------------------------------
 // Qt4MaemoTargetFactory
 // -------------------------------------------------------------------------
@@ -73,22 +76,22 @@ QStringList Qt4MaemoTargetFactory::supportedTargetIds(ProjectExplorer::Project *
     QStringList targetIds;
     if (parent && !qobject_cast<Qt4Project *>(parent))
         return targetIds;
-    if (!QtSupport::QtVersionManager::instance()->versionsForTargetId(QLatin1String(Constants::MAEMO5_DEVICE_TARGET_ID)).isEmpty())
-        targetIds << QLatin1String(Constants::MAEMO5_DEVICE_TARGET_ID);
-    if (!QtSupport::QtVersionManager::instance()->versionsForTargetId(QLatin1String(Constants::HARMATTAN_DEVICE_TARGET_ID)).isEmpty())
-        targetIds << QLatin1String(Constants::HARMATTAN_DEVICE_TARGET_ID);
-    if (!QtSupport::QtVersionManager::instance()->versionsForTargetId(QLatin1String(Constants::MEEGO_DEVICE_TARGET_ID)).isEmpty())
-        targetIds << QLatin1String(Constants::MEEGO_DEVICE_TARGET_ID);
+    if (!QtSupport::QtVersionManager::instance()->versionsForTargetId(QLatin1String(MAEMO5_DEVICE_TARGET_ID)).isEmpty())
+        targetIds << QLatin1String(MAEMO5_DEVICE_TARGET_ID);
+    if (!QtSupport::QtVersionManager::instance()->versionsForTargetId(QLatin1String(HARMATTAN_DEVICE_TARGET_ID)).isEmpty())
+        targetIds << QLatin1String(HARMATTAN_DEVICE_TARGET_ID);
+    if (!QtSupport::QtVersionManager::instance()->versionsForTargetId(QLatin1String(MEEGO_DEVICE_TARGET_ID)).isEmpty())
+        targetIds << QLatin1String(MEEGO_DEVICE_TARGET_ID);
     return targetIds;
 }
 
 QString Qt4MaemoTargetFactory::displayNameForId(const QString &id) const
 {
-    if (id == QLatin1String(Constants::MAEMO5_DEVICE_TARGET_ID))
+    if (id == QLatin1String(MAEMO5_DEVICE_TARGET_ID))
         return Qt4Maemo5Target::defaultDisplayName();
-    else if (id == QLatin1String(Constants::HARMATTAN_DEVICE_TARGET_ID))
+    else if (id == QLatin1String(HARMATTAN_DEVICE_TARGET_ID))
         return Qt4HarmattanTarget::defaultDisplayName();
-    else if (id == QLatin1String(Constants::MEEGO_DEVICE_TARGET_ID))
+    else if (id == QLatin1String(MEEGO_DEVICE_TARGET_ID))
         return Qt4MeegoTarget::defaultDisplayName();
     return QString();
 }
@@ -119,11 +122,11 @@ ProjectExplorer::Target *Qt4MaemoTargetFactory::restore(ProjectExplorer::Project
     const QString id = idFromMap(map);
     AbstractQt4MaemoTarget *target = 0;
     Qt4Project *qt4project = static_cast<Qt4Project *>(parent);
-    if (id == QLatin1String(Constants::MAEMO5_DEVICE_TARGET_ID))
+    if (id == QLatin1String(MAEMO5_DEVICE_TARGET_ID))
         target = new Qt4Maemo5Target(qt4project, QLatin1String("transient ID"));
-    else if (id == QLatin1String(Constants::HARMATTAN_DEVICE_TARGET_ID))
+    else if (id == QLatin1String(HARMATTAN_DEVICE_TARGET_ID))
         target = new Qt4HarmattanTarget(qt4project, QLatin1String("transient ID"));
-    else if (id == QLatin1String(Constants::MEEGO_DEVICE_TARGET_ID))
+    else if (id == QLatin1String(MEEGO_DEVICE_TARGET_ID))
         target = new Qt4MeegoTarget(qt4project, QLatin1String("transient ID"));
     if (target->fromMap(map))
         return target;
@@ -133,11 +136,11 @@ ProjectExplorer::Target *Qt4MaemoTargetFactory::restore(ProjectExplorer::Project
 
 QString Qt4MaemoTargetFactory::buildNameForId(const QString &id) const
 {
-    if (id == QLatin1String(Constants::MAEMO5_DEVICE_TARGET_ID))
+    if (id == QLatin1String(MAEMO5_DEVICE_TARGET_ID))
         return QLatin1String("maemo");
-    else if (id == QLatin1String(Constants::HARMATTAN_DEVICE_TARGET_ID))
+    else if (id == QLatin1String(HARMATTAN_DEVICE_TARGET_ID))
         return QLatin1String("harmattan");
-    else if (id == QLatin1String(Constants::MEEGO_DEVICE_TARGET_ID))
+    else if (id == QLatin1String(MEEGO_DEVICE_TARGET_ID))
         return QLatin1String("meego");
     else
         return QString();
@@ -198,14 +201,14 @@ ProjectExplorer::Target *Qt4MaemoTargetFactory::create(ProjectExplorer::Project
 
     AbstractQt4MaemoTarget *target = 0;
     QStringList deployConfigIds;
-    if (id == QLatin1String(Constants::MAEMO5_DEVICE_TARGET_ID)) {
+    if (id == QLatin1String(MAEMO5_DEVICE_TARGET_ID)) {
         target = new Qt4Maemo5Target(static_cast<Qt4Project *>(parent), id);
         deployConfigIds << Qt4MaemoDeployConfiguration::FremantleWithPackagingId
             << Qt4MaemoDeployConfiguration::FremantleWithoutPackagingId;
-    } else if (id == QLatin1String(Constants::HARMATTAN_DEVICE_TARGET_ID)) {
+    } else if (id == QLatin1String(HARMATTAN_DEVICE_TARGET_ID)) {
         target = new Qt4HarmattanTarget(static_cast<Qt4Project *>(parent), id);
         deployConfigIds << Qt4MaemoDeployConfiguration::HarmattanId;
-    } else if (id == QLatin1String(Constants::MEEGO_DEVICE_TARGET_ID)) {
+    } else if (id == QLatin1String(MEEGO_DEVICE_TARGET_ID)) {
         target = new Qt4MeegoTarget(static_cast<Qt4Project *>(parent), id);
         deployConfigIds << Qt4MaemoDeployConfiguration::MeegoId;
     }
@@ -224,3 +227,6 @@ ProjectExplorer::Target *Qt4MaemoTargetFactory::create(ProjectExplorer::Project
         target->addRunConfiguration(new ProjectExplorer::CustomExecutableRunConfiguration(target));
     return target;
 }
+
+} // namespace Internal
+} // namespace RemoteLinux
 #ifndef QT4MAEMOTARGETFACTORY_H
 #define QT4MAEMOTARGETFACTORY_H
 
-#include "qt4basetargetfactory.h"
+#include <qt4projectmanager/qt4basetargetfactory.h>
 
-namespace Qt4ProjectManager {
+namespace RemoteLinux {
 namespace Internal {
 
-class Qt4MaemoTargetFactory : public Qt4BaseTargetFactory
+class Qt4MaemoTargetFactory : public Qt4ProjectManager::Qt4BaseTargetFactory
 {
     Q_OBJECT
 public:
@@ -59,13 +59,14 @@ public:
     bool supportsTargetId(const QString &id) const;
 
     ProjectExplorer::Target *create(ProjectExplorer::Project *parent, const QString &id);
-    ProjectExplorer::Target *create(ProjectExplorer::Project *parent, const QString &id, const QList<BuildConfigurationInfo> &infos);
+    ProjectExplorer::Target *create(ProjectExplorer::Project *parent, const QString &id,
+        const QList<Qt4ProjectManager::BuildConfigurationInfo> &infos);
 
     bool isMobileTarget(const QString &id);
     bool supportsShadowBuilds(const QString &id);
 };
 
 } // namespace Internal
-} // namespace Qt4ProjectManager
+} // namespace RemoteLinux
 
 #endif // QT4MAEMOTARGETFACTORY_H
diff --git a/src/plugins/remotelinux/remotelinux.pri b/src/plugins/remotelinux/remotelinux.pri
new file mode 100644 (file)
index 0000000..cfae991
--- /dev/null
@@ -0,0 +1,3 @@
+include(remotelinux_dependencies.pri)
+
+LIBS *= -l$$qtLibraryName(RemoteLinux)
diff --git a/src/plugins/remotelinux/remotelinux.pro b/src/plugins/remotelinux/remotelinux.pro
new file mode 100644 (file)
index 0000000..7a61fa5
--- /dev/null
@@ -0,0 +1,163 @@
+TEMPLATE = lib
+TARGET = RemoteLinux
+
+include(../../qtcreatorplugin.pri)
+include(../../shared/proparser/proparser.pri)
+include(remotelinux_dependencies.pri)
+
+message(target.path = $$target.path)
+
+HEADERS += \
+    remotelinuxplugin.h \
+    remotelinux_export.h \
+    maemoconfigtestdialog.h \
+    maemoconstants.h \
+    maemodeviceconfigurations.h \
+    maemorunconfiguration.h \
+    maemorunconfigurationwidget.h \
+    maemoruncontrol.h \
+    maemorunfactories.h \
+    maemosettingspages.h \
+    maemodeviceconfigurationssettingswidget.h \
+    maemosshconfigdialog.h \
+    maemotoolchain.h \
+    maemopackagecreationstep.h \
+    maemopackagecreationfactory.h \
+    maemopackagecreationwidget.h \
+    maemodeployablelistmodel.h \
+    maemoqemumanager.h \
+    maemodeployables.h \
+    maemodeployable.h \
+    maemodeploystepwidget.h \
+    maemodeploystepfactory.h \
+    maemoglobal.h \
+    maemosshrunner.h \
+    maemodebugsupport.h \
+    maemoanalyzersupport.h \
+    maemoremotemountsmodel.h \
+    maemodeviceenvreader.h \
+    maemomountspecification.h \
+    maemoremotemounter.h \
+    maemoprofilesupdatedialog.h \
+    maemousedportsgatherer.h \
+    maemoremoteprocesslist.h \
+    maemoremoteprocessesdialog.h \
+    maemopublishingwizardfactories.h \
+    maemopublishingbuildsettingspagefremantlefree.h \
+    maemopublishingfileselectiondialog.h \
+    maemopublishedprojectmodel.h \
+    maemopublishinguploadsettingspagefremantlefree.h \
+    maemopublishingwizardfremantlefree.h \
+    maemopublishingresultpagefremantlefree.h \
+    maemopublisherfremantlefree.h \
+    maemoqemuruntime.h \
+    maemoqemuruntimeparser.h \
+    maemoqemusettingswidget.h \
+    maemoqemusettings.h \
+    qt4maemotargetfactory.h \
+    qt4maemotarget.h \
+    qt4maemodeployconfiguration.h \
+    maemodeviceconfigwizard.h \
+    maemokeydeployer.h \
+    maemopertargetdeviceconfigurationlistmodel.h \
+    maemodeployconfigurationwidget.h \
+    maemoinstalltosysrootstep.h \
+    maemodeploymentmounter.h \
+    maemopackageuploader.h \
+    maemopackageinstaller.h \
+    maemoremotecopyfacility.h \
+    abstractmaemodeploystep.h \
+    maemodeploybymountstep.h \
+    maemouploadandinstalldeploystep.h \
+    maemodirectdeviceuploadstep.h \
+    abstractlinuxdevicedeploystep.h \
+    maemoqtversionfactory.h \
+    maemoqtversion.h
+
+SOURCES += \
+    remotelinuxplugin.cpp \
+    maemoconfigtestdialog.cpp \
+    maemodeviceconfigurations.cpp \
+    maemorunconfiguration.cpp \
+    maemorunconfigurationwidget.cpp \
+    maemoruncontrol.cpp \
+    maemorunfactories.cpp \
+    maemosettingspages.cpp \
+    maemodeviceconfigurationssettingswidget.cpp \
+    maemosshconfigdialog.cpp \
+    maemotoolchain.cpp \
+    maemopackagecreationstep.cpp \
+    maemopackagecreationfactory.cpp \
+    maemopackagecreationwidget.cpp \
+    maemodeployablelistmodel.cpp \
+    maemoqemumanager.cpp \
+    maemodeployables.cpp \
+    maemodeploystepwidget.cpp \
+    maemodeploystepfactory.cpp \
+    maemoglobal.cpp \
+    maemosshrunner.cpp \
+    maemodebugsupport.cpp \
+    maemoanalyzersupport.cpp \
+    maemoremotemountsmodel.cpp \
+    maemodeviceenvreader.cpp \
+    maemomountspecification.cpp \
+    maemoremotemounter.cpp \
+    maemoprofilesupdatedialog.cpp \
+    maemousedportsgatherer.cpp \
+    maemoremoteprocesslist.cpp \
+    maemoremoteprocessesdialog.cpp \
+    maemopublishingwizardfactories.cpp \
+    maemopublishingbuildsettingspagefremantlefree.cpp \
+    maemopublishingfileselectiondialog.cpp \
+    maemopublishedprojectmodel.cpp \
+    maemopublishinguploadsettingspagefremantlefree.cpp \
+    maemopublishingwizardfremantlefree.cpp \
+    maemopublishingresultpagefremantlefree.cpp \
+    maemopublisherfremantlefree.cpp \
+    maemoqemuruntimeparser.cpp \
+    maemoqemusettingswidget.cpp \
+    maemoqemusettings.cpp \
+    qt4maemotargetfactory.cpp \
+    qt4maemotarget.cpp \
+    qt4maemodeployconfiguration.cpp \
+    maemodeviceconfigwizard.cpp \
+    maemokeydeployer.cpp \
+    maemopertargetdeviceconfigurationlistmodel.cpp \
+    maemodeployconfigurationwidget.cpp \
+    maemoinstalltosysrootstep.cpp \
+    maemodeploymentmounter.cpp \
+    maemopackageuploader.cpp \
+    maemopackageinstaller.cpp \
+    maemoremotecopyfacility.cpp \
+    abstractmaemodeploystep.cpp \
+    maemodeploybymountstep.cpp \
+    maemouploadandinstalldeploystep.cpp \
+    maemodirectdeviceuploadstep.cpp \
+    abstractlinuxdevicedeploystep.cpp \
+    maemoqtversionfactory.cpp \
+    maemoqtversion.cpp
+
+FORMS += \
+    maemoconfigtestdialog.ui \
+    maemodeviceconfigurationssettingswidget.ui \
+    maemosshconfigdialog.ui \
+    maemopackagecreationwidget.ui \
+    maemodeploystepwidget.ui \
+    maemoprofilesupdatedialog.ui \
+    maemoremoteprocessesdialog.ui \
+    maemopublishingbuildsettingspagefremantlefree.ui \
+    maemopublishingfileselectiondialog.ui \
+    maemopublishinguploadsettingspagefremantlefree.ui \
+    maemopublishingresultpagefremantlefree.ui \
+    maemoqemusettingswidget.ui \
+    maemodeviceconfigwizardstartpage.ui \
+    maemodeviceconfigwizardpreviouskeysetupcheckpage.ui \
+    maemodeviceconfigwizardreusekeyscheckpage.ui \
+    maemodeviceconfigwizardkeycreationpage.ui \
+    maemodeviceconfigwizardkeydeploymentpage.ui \
+    maemodeployconfigurationwidget.ui \
+    maemodeviceconfigwizardlogindatapage.ui
+
+RESOURCES += qt-maemo.qrc
+DEFINES += QT_NO_CAST_TO_ASCII
+DEFINES += REMOTELINUX_LIBRARY
diff --git a/src/plugins/remotelinux/remotelinux_dependencies.pri b/src/plugins/remotelinux/remotelinux_dependencies.pri
new file mode 100644 (file)
index 0000000..08885c7
--- /dev/null
@@ -0,0 +1,5 @@
+include(../../plugins/analyzerbase/analyzerbase.pri)
+include(../../plugins/coreplugin/coreplugin.pri)
+include(../../plugins/debugger/debugger.pri)
+include(../../plugins/projectexplorer/projectexplorer.pri)
+include(../../plugins/qt4projectmanager/qt4projectmanager.pri)
diff --git a/src/plugins/remotelinux/remotelinux_export.h b/src/plugins/remotelinux/remotelinux_export.h
new file mode 100644 (file)
index 0000000..489fec4
--- /dev/null
@@ -0,0 +1,44 @@
+/**************************************************************************
+**
+** This file is part of Qt Creator
+**
+** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
+**
+** Contact: Nokia Corporation (info@qt.nokia.com)
+**
+**
+** GNU Lesser General Public License Usage
+**
+** 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.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** Other Usage
+**
+** Alternatively, this file may be used in accordance with the terms and
+** conditions contained in a signed written agreement between you and Nokia.
+**
+** If you have questions regarding the use of this file, please contact
+** Nokia at info@qt.nokia.com.
+**
+**************************************************************************/
+
+#ifndef REMOTE_LINUX_EXPORT_H
+#define REMOTE_LINUX_EXPORT_H
+
+#include <QtCore/qglobal.h>
+
+#if defined(REMOTELINUX_LIBRARY)
+#  define REMOTELINUX_EXPORT Q_DECL_EXPORT
+#else
+#  define REMOTELINUX_EXPORT Q_DECL_IMPORT
+#endif
+
+#endif // REMOTE_LINUX_EXPORT_H
diff --git a/src/plugins/remotelinux/remotelinuxplugin.cpp b/src/plugins/remotelinux/remotelinuxplugin.cpp
new file mode 100644 (file)
index 0000000..a759ae8
--- /dev/null
@@ -0,0 +1,97 @@
+/**************************************************************************
+**
+** This file is part of Qt Creator
+**
+** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
+**
+** Contact: Nokia Corporation (info@qt.nokia.com)
+**
+**
+** GNU Lesser General Public License Usage
+**
+** 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.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** Other Usage
+**
+** Alternatively, this file may be used in accordance with the terms and
+** conditions contained in a signed written agreement between you and Nokia.
+**
+** If you have questions regarding the use of this file, please contact
+** Nokia at info@qt.nokia.com.
+**
+**************************************************************************/
+
+#include "remotelinuxplugin.h"
+
+#include "maemoconstants.h"
+#include "maemodeployable.h"
+#include "maemodeploystepfactory.h"
+#include "maemodeviceconfigurations.h"
+#include "maemoglobal.h"
+#include "maemopackagecreationfactory.h"
+#include "maemopublishingwizardfactories.h"
+#include "maemoqemumanager.h"
+#include "maemorunfactories.h"
+#include "maemosettingspages.h"
+#include "maemotoolchain.h"
+#include "qt4maemodeployconfiguration.h"
+#include "maemoqtversionfactory.h"
+#include "qt4maemotargetfactory.h"
+#include "qt4projectmanager/qt4projectmanagerconstants.h"
+
+#include <QtCore/QtPlugin>
+
+namespace RemoteLinux {
+namespace Internal {
+
+RemoteLinuxPlugin::RemoteLinuxPlugin()
+{
+}
+
+RemoteLinuxPlugin::~RemoteLinuxPlugin()
+{
+}
+
+bool RemoteLinuxPlugin::initialize(const QStringList &arguments,
+    QString *error_message)
+{
+    Q_UNUSED(arguments)
+    Q_UNUSED(error_message)
+
+    MaemoQemuManager::instance(this);
+    MaemoDeviceConfigurations::instance(this);
+
+    addAutoReleasedObject(new MaemoRunControlFactory);
+    addAutoReleasedObject(new MaemoRunConfigurationFactory);
+    addAutoReleasedObject(new MaemoToolChainFactory);
+    addAutoReleasedObject(new Qt4MaemoDeployConfigurationFactory);
+    addAutoReleasedObject(new MaemoPackageCreationFactory);
+    addAutoReleasedObject(new MaemoDeployStepFactory);
+    addAutoReleasedObject(new MaemoDeviceConfigurationsSettingsPage);
+    addAutoReleasedObject(new MaemoQemuSettingsPage);
+    addAutoReleasedObject(new MaemoPublishingWizardFactoryFremantleFree);
+    addAutoReleasedObject(new Qt4MaemoTargetFactory);
+    addAutoReleasedObject(new MaemoQtVersionFactory);
+
+    qRegisterMetaType<MaemoDeployable>("MaemoDeployable");
+
+    return true;
+}
+
+void RemoteLinuxPlugin::extensionsInitialized()
+{
+}
+
+} // namespace Internal
+} // namespace RemoteLinux
+
+Q_EXPORT_PLUGIN(RemoteLinux::Internal::RemoteLinuxPlugin)
diff --git a/src/plugins/remotelinux/remotelinuxplugin.h b/src/plugins/remotelinux/remotelinuxplugin.h
new file mode 100644 (file)
index 0000000..6acd2e5
--- /dev/null
@@ -0,0 +1,55 @@
+/**************************************************************************
+**
+** This file is part of Qt Creator
+**
+** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
+**
+** Contact: Nokia Corporation (info@qt.nokia.com)
+**
+**
+** GNU Lesser General Public License Usage
+**
+** 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.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** Other Usage
+**
+** Alternatively, this file may be used in accordance with the terms and
+** conditions contained in a signed written agreement between you and Nokia.
+**
+** If you have questions regarding the use of this file, please contact
+** Nokia at info@qt.nokia.com.
+**
+**************************************************************************/
+
+#ifndef REMOTELINUXPLUGIN_H
+#define REMOTELINUXPLUGIN_H
+
+#include <extensionsystem/iplugin.h>
+
+namespace RemoteLinux {
+namespace Internal {
+
+class RemoteLinuxPlugin : public ExtensionSystem::IPlugin
+{
+    Q_OBJECT
+public:
+    RemoteLinuxPlugin();
+    ~RemoteLinuxPlugin();
+
+    bool initialize(const QStringList &arguments, QString *error_message);
+    void extensionsInitialized();
+};
+
+} // namespace Internal
+} // namespace RemoteLinux
+
+#endif // REMOTELINUXPLUGIN_H