2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2010-08-26 12:27:16 +02:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2010-08-26 12:27:16 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2010-08-26 12:27:16 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** 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
|
2016-01-15 14:57:40 +01:00
|
|
|
** 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.
|
2010-08-26 12:27:16 +02:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** 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.
|
2010-12-17 16:01:08 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
2010-08-26 12:27:16 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2010-08-26 12:27:16 +02:00
|
|
|
|
2014-06-27 23:42:28 +02:00
|
|
|
#include <coreplugin/idocumentfactory.h>
|
2010-08-26 12:27:16 +02:00
|
|
|
#include <extensionsystem/iplugin.h>
|
|
|
|
|
|
2019-05-28 13:49:26 +02:00
|
|
|
namespace Utils { class FilePath; }
|
2015-12-06 14:56:36 +02:00
|
|
|
|
2010-08-26 12:27:16 +02:00
|
|
|
namespace TaskList {
|
2014-06-27 23:42:28 +02:00
|
|
|
namespace Internal {
|
|
|
|
|
|
2020-01-29 04:15:25 +03:00
|
|
|
class TaskListPlugin final : public ExtensionSystem::IPlugin
|
2010-08-26 12:27:16 +02:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2012-02-21 16:52:28 +01:00
|
|
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "TaskList.json")
|
2010-08-26 12:27:16 +02:00
|
|
|
|
|
|
|
|
public:
|
2014-06-27 23:42:28 +02:00
|
|
|
TaskListPlugin();
|
2018-02-02 15:00:52 +01:00
|
|
|
~TaskListPlugin() final;
|
2014-06-27 23:42:28 +02:00
|
|
|
|
2018-11-24 21:20:06 +01:00
|
|
|
bool initialize(const QStringList &arguments, QString *errorMessage) override;
|
2010-08-27 16:26:16 +02:00
|
|
|
|
2019-05-28 13:49:26 +02:00
|
|
|
static bool loadFile(QString *errorString, const Utils::FilePath &fileName);
|
2010-08-27 16:26:16 +02:00
|
|
|
|
2013-08-02 12:18:06 +02:00
|
|
|
static void stopMonitoring();
|
|
|
|
|
static void clearTasks();
|
2013-09-23 14:25:32 +02:00
|
|
|
|
2019-05-28 13:49:26 +02:00
|
|
|
Core::IDocument *openTasks(const Utils::FilePath &fileName);
|
2014-06-27 23:42:28 +02:00
|
|
|
|
2013-09-23 14:25:32 +02:00
|
|
|
void loadDataFromSession();
|
2014-06-27 23:42:28 +02:00
|
|
|
|
|
|
|
|
private:
|
2018-02-02 15:00:52 +01:00
|
|
|
class TaskListPluginPrivate *d = nullptr;
|
2010-08-26 12:27:16 +02:00
|
|
|
};
|
|
|
|
|
|
2014-06-27 23:42:28 +02:00
|
|
|
} // namespace Internal
|
2010-08-26 12:27:16 +02:00
|
|
|
} // namespace TaskList
|