aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/android/androidplugin.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2018-02-09 16:16:38 +0100
committerhjk <hjk@qt.io>2018-02-14 10:12:07 +0000
commitb0b4022470399fb136cb1b036f4069d5a6e67c97 (patch)
tree32eb6f934f327bd2fc13ace1b7d7160c7d9e4524 /src/plugins/android/androidplugin.cpp
parentcbed562175f167ce703564ec35f24289906cd710 (diff)
Android: Some code cosmetics
The naming scheme of the internal object was changed to the usual pimpl pattern. Also setup device update connection in the device constructory Change-Id: I5cbb7a9d870a7d1f0e91e54f2ad6dfb95ea63e37 Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/android/androidplugin.cpp')
-rw-r--r--src/plugins/android/androidplugin.cpp19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/plugins/android/androidplugin.cpp b/src/plugins/android/androidplugin.cpp
index 7e1b88d754d..a52e67292de 100644
--- a/src/plugins/android/androidplugin.cpp
+++ b/src/plugins/android/androidplugin.cpp
@@ -56,11 +56,11 @@
using namespace ProjectExplorer;
using namespace ProjectExplorer::Constants;
-using namespace Android::Internal;
namespace Android {
+namespace Internal {
-class AndroidPluginRunData
+class AndroidPluginPrivate
{
public:
AndroidConfigurations androidConfiguration;
@@ -76,12 +76,9 @@ public:
AndroidManifestEditorFactory manifestEditorFactory;
};
-AndroidPlugin::AndroidPlugin()
-{ }
-
AndroidPlugin::~AndroidPlugin()
{
- delete m_runData;
+ delete d;
}
bool AndroidPlugin::initialize(const QStringList &arguments, QString *errorMessage)
@@ -96,15 +93,13 @@ bool AndroidPlugin::initialize(const QStringList &arguments, QString *errorMessa
RunControl::registerWorker<AndroidRunConfiguration, AndroidQmlToolingSupport>(
QML_PREVIEW_RUN_MODE);
- m_runData = new AndroidPluginRunData;
+ d = new AndroidPluginPrivate;
KitManager::registerKitInformation(new Internal::AndroidGdbServerKitInformation);
connect(KitManager::instance(), &KitManager::kitsLoaded,
this, &AndroidPlugin::kitsRestored);
- connect(DeviceManager::instance(), &DeviceManager::devicesLoaded,
- this, &AndroidPlugin::updateDevice);
return true;
}
@@ -117,9 +112,5 @@ void AndroidPlugin::kitsRestored()
this, &AndroidPlugin::kitsRestored);
}
-void AndroidPlugin::updateDevice()
-{
- AndroidConfigurations::updateAndroidDevice();
-}
-
+} // namespace Internal
} // namespace Android