TaskListPlugin: Adjust after changes to IDocumentFactory

Change-Id: I5c7256b581bb10ecaf9d3cd3b78b8d45dc60132b
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
hjk
2014-06-27 23:42:28 +02:00
parent 382b1d43eb
commit 066ea5ac58
8 changed files with 66 additions and 165 deletions

View File

@@ -30,11 +30,13 @@
#ifndef TASKLISTPLUGIN_H
#define TASKLISTPLUGIN_H
#include <coreplugin/idocumentfactory.h>
#include <extensionsystem/iplugin.h>
namespace ProjectExplorer { class Project; }
namespace TaskList {
namespace Internal {
class TaskFile;
class TaskListPlugin : public ExtensionSystem::IPlugin
{
@@ -42,6 +44,8 @@ class TaskListPlugin : public ExtensionSystem::IPlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "TaskList.json")
public:
TaskListPlugin();
bool initialize(const QStringList &arguments, QString *errorMessage);
void extensionsInitialized() {}
@@ -50,10 +54,17 @@ public:
static void stopMonitoring();
static void clearTasks();
Core::IDocument *openTasks(const QString &base, const QString &fileName);
public slots:
void loadDataFromSession();
private:
Core::IDocumentFactory *m_fileFactory;
QList<TaskFile *> m_openFiles;
};
} // namespace Internal
} // namespace TaskList
#endif // TASKLISTPLUGIN_H