summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-10-11 23:03:49 +0200
committerTannin <devnull@localhost>2013-10-11 23:03:49 +0200
commit382226bb46541f07e62ce689cfeaf395aa673a44 (patch)
tree97e35547f78524c6291906ce19c94699436b39b0 /src/mainwindow.h
parentcffd9eb4e21f0ddcddca68d8eb0f1c80c8ac6ae1 (diff)
- added new plugin to test if fnis needs to be run
- some functionality to the plugin interface to enable them to search for files&directories in the virtual FS (rudimentary atm) - functionality for plugins to react to application being started from MO - broken ESPs are no longer reported as popup windows but only in the log file - bugfix: plugins couldn't store persistent data if they had no user-editable settings
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index dfec5f49..6992861b 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -89,8 +89,8 @@ public:
void createFirstProfile();
- void spawnProgram(const QString &fileName, const QString &argumentsArg,
- const QString &profileName, const QDir &currentDirectory);
+/* void spawnProgram(const QString &fileName, const QString &argumentsArg,
+ const QString &profileName, const QDir &currentDirectory);*/
void loadPlugins();
@@ -111,7 +111,11 @@ public:
virtual QString pluginDataPath() const;
virtual void installMod(const QString &fileName);
virtual QString resolvePath(const QString &fileName) const;
+ virtual QStringList listDirectories(const QString &directoryName) const;
+ virtual QStringList findFiles(const QString &path, const std::function<bool(const QString &)> &filter) const;
virtual MOBase::IDownloadManager *downloadManager();
+ virtual HANDLE startApplication(const QString &executable, const QStringList &args = QStringList(), const QString &cwd = "", const QString &profile = "");
+ virtual bool onAboutToRun(const boost::function<bool(const QString&)> &func);
virtual std::vector<unsigned int> activeProblems() const;
virtual QString shortDescription(unsigned int key) const;
@@ -320,6 +324,8 @@ private:
QFile m_PluginsCheck;
+ SignalAboutToRunApplication m_AboutToRun;
+
private slots:
void showMessage(const QString &message);