diff options
author | Kai Koehne <kai.koehne@qt.io> | 2019-10-29 10:21:57 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2019-11-01 14:52:49 +0000 |
commit | 93872ad36604e02a93ce310a7c34cfe32d7c76aa (patch) | |
tree | b90c261961a96edaf87cced6422730656e34e350 /usagestatisticplugin.h | |
parent | ed70a31ccc2467e66b3db99af6cbc52fd515a8be (diff) |
Move sources into src subdir
This makes it easier to add a CMakeLists.txt for the super-build.
Change-Id: I53566819281245c0d79d6527222d6f3a824e73dc
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Vitaly Fanaskov <vitaly.fanaskov@qt.io>
Diffstat (limited to 'usagestatisticplugin.h')
-rw-r--r-- | usagestatisticplugin.h | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/usagestatisticplugin.h b/usagestatisticplugin.h deleted file mode 100644 index 139acc3..0000000 --- a/usagestatisticplugin.h +++ /dev/null @@ -1,71 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2019 The Qt Company -** Contact: https://www.qt.io/licensing/ -** -** This file is part of UsageStatistic plugin for 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 <memory> - -#include "usagestatistic_global.h" - -#include <extensionsystem/iplugin.h> - -namespace KUserFeedback { class Provider; } - -namespace UsageStatistic { -namespace Internal { - -class UsageStatisticPage; -class OutputPane; - -//! Plugin for collecting and sending usage statistics -class UsageStatisticPlugin : public ExtensionSystem::IPlugin -{ - Q_OBJECT - Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "UsageStatistic.json") - -public: - UsageStatisticPlugin(); - ~UsageStatisticPlugin() override; - - bool initialize(const QStringList &arguments, QString *errorString) override; - void extensionsInitialized() override; - bool delayedInitialize() override; - ShutdownFlag aboutToShutdown() override; - -private: - void createUsageStatisticPage(); - void createOutputPane(); - void configureOutputPane(); - void storeSettings(); - void restoreSettings(); - void createProvider(); - -private: - std::shared_ptr<KUserFeedback::Provider> m_provider; - std::unique_ptr<UsageStatisticPage> m_usageStatisticPage; - std::unique_ptr<OutputPane> m_outputPane; -}; - -} // namespace Internal -} // namespace UsageStatistic |