summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-10-16 19:34:56 +0200
committerTannin <devnull@localhost>2013-10-16 19:34:56 +0200
commit0b84cc3d45e15d2edec6a083b5139e6d7528b53d (patch)
tree2ec5067022aab265cd2af1cfeac38f34b88a3778 /src/mainwindow.h
parent1bf3cc585e28516f4ff6c9edf720fa9d290f47c2 (diff)
parenteae275cc843883d04892767c10b1dba2d7b11613 (diff)
Merge
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 8a34d16a..dc8d20c8 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -66,6 +66,28 @@ class MainWindow : public QMainWindow, public MOBase::IOrganizer, public MOBase:
Q_OBJECT
Q_INTERFACES(MOBase::IPluginDiagnose)
+private:
+
+ struct SignalCombinerAnd
+ {
+ typedef bool result_type;
+ template<typename InputIterator>
+ bool operator()(InputIterator first, InputIterator last) const
+ {
+ while (first != last) {
+ if (!(*first)) {
+ return false;
+ }
+ ++first;
+ }
+ return true;
+ }
+ };
+
+public:
+
+ typedef boost::signals2::signal<bool (const QString&), SignalCombinerAnd> SignalAboutToRunApplication;
+
public:
struct SignalCombinerAnd