Improve TaskList plugin

* Automatically reload task lists.
 * Add task handler to stop the reloading
 * Add some really simple API for other plugins to use.
This commit is contained in:
Tobias Hunger
2010-08-27 16:26:16 +02:00
parent 7b5b60ff8a
commit 1320da6784
12 changed files with 610 additions and 195 deletions

View File

@@ -32,18 +32,22 @@
#include <coreplugin/ifilefactory.h>
#include <coreplugin/ifile.h>
#include <QtCore/QStringList>
namespace ProjectExplorer {
class Project;
} // namespace ProjectExplorer
namespace TaskList {
namespace Internal {
class TaskListManager;
class TaskFileFactory : public Core::IFileFactory
{
Q_OBJECT
public:
TaskFileFactory(TaskListManager *manager);
TaskFileFactory(QObject *parent = 0);
~TaskFileFactory();
QStringList mimeTypes() const;
@@ -52,10 +56,13 @@ public:
QString displayName() const;
Core::IFile *open(const QString &fileName);
Core::IFile *open(ProjectExplorer::Project *context, const QString &fileName);
void closeAllFiles();
private:
TaskListManager * m_manager;
QStringList m_mimeTypes;
QList<Core::IFile *> m_openFiles;
};
} // namespace Internal