Introduce AppManager plugin to simplify work with QtApplicationManager

This is currently an empty shell.

Change-Id: I0c2e5cb4b7052c78d5a93db3a6e8d96b9affcab1
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2016-07-01 08:31:13 +02:00
committed by Alessandro Portale
parent 3c431c92c9
commit 717ff38140
8 changed files with 153 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
{
\"Name\" : \"AppManager\",
\"Version\" : \"$$QTCREATOR_VERSION\",
\"CompatVersion\" : \"$$QTCREATOR_COMPAT_VERSION\",
\"Experimental\" : true,
\"Vendor\" : \"The Qt Company Ltd\",
\"Copyright\" : \"(C) 2016 The Qt Company Ltd\",
\"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 The Qt Company.\",
\"\",
\"GNU General Public License Usage\",
\"\",
\"Alternatively, this plugin may be used under the terms of the GNU General Public License version 3 as published by the Free Software Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT included in the packaging of this plugin. Please review the following information to ensure the GNU General Public License requirements will be met: https://www.gnu.org/licenses/gpl-3.0.html.\"
],
\"Description\" : \"Support for QtApplicationManager.\",
\"Url\" : \"http://www.qt.io\",
$$dependencyList
}

View File

@@ -0,0 +1,7 @@
include(../../qtcreatorplugin.pri)
HEADERS += \
appmanagerplugin.h
SOURCES += \
appmanagerplugin.cpp

View File

@@ -0,0 +1,13 @@
import qbs 1.0
QtcPlugin {
name: "AppManager"
Depends { name: "Core" }
Depends { name: "Qt"; submodules: ["widgets", "network"] }
files: [
"appmanagerplugin.h", "appmanagerplugin.cpp",
]
}

View File

@@ -0,0 +1,10 @@
QTC_PLUGIN_NAME = AppManager
QTC_LIB_DEPENDS += \
extensionsystem
QTC_PLUGIN_DEPENDS += \
coreplugin
QTC_PLUGIN_RECOMMENDS += \
# optional plugin dependencies. nothing here at this time

View File

@@ -0,0 +1,54 @@
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
****************************************************************************/
#include "appmanagerplugin.h"
#include <QtPlugin>
namespace AppManager {
namespace Internal {
AppManagerPlugin::AppManagerPlugin()
{
}
AppManagerPlugin::~AppManagerPlugin()
{
}
bool AppManagerPlugin::initialize(const QStringList &arguments, QString *errorMessage)
{
Q_UNUSED(arguments)
Q_UNUSED(errorMessage)
return true;
}
void AppManagerPlugin::extensionsInitialized()
{
}
} // namespace Internal
} // namespace AppManager

View File

@@ -0,0 +1,48 @@
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
****************************************************************************/
#pragma once
#include <extensionsystem/iplugin.h>
namespace AppManager {
namespace Internal {
class AppManagerPlugin
: public ExtensionSystem::IPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "AppManager.json")
public:
AppManagerPlugin();
~AppManagerPlugin();
bool initialize(const QStringList &arguments, QString *errorMessage) override;
void extensionsInitialized() override;
};
} // namespace Internal
} // namespace AppManager

View File

@@ -3,6 +3,7 @@ include(../../qtcreator.pri)
TEMPLATE = subdirs
SUBDIRS = \
appmanager \
autotest \
clangstaticanalyzer \
coreplugin \

View File

@@ -5,6 +5,7 @@ Project {
references: [
"android/android.qbs",
"appmanager/appmanager.qbs",
"autotest/autotest.qbs",
"autotoolsprojectmanager/autotoolsprojectmanager.qbs",
"baremetal/baremetal.qbs",