File: interfaces.h

package info (click to toggle)
aoflagger 3.4.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,960 kB
  • sloc: cpp: 83,076; python: 10,187; sh: 260; makefile: 178
file content (26 lines) | stat: -rw-r--r-- 573 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef GUI_INTERFACES_H
#define GUI_INTERFACES_H

#include <sigc++/signal.h>

#include <memory>

namespace imagesets {
class Strategy;
}

class StrategyController {
 public:
  virtual ~StrategyController() = default;
  virtual void SetStrategy(std::unique_ptr<imagesets::Strategy> strategy) = 0;
  virtual imagesets::Strategy& Strategy() = 0;
  virtual void NotifyChange() { _signalOnStrategyChanged(); }
  virtual sigc::signal<void> SignalOnStrategyChanged() {
    return _signalOnStrategyChanged;
  }

 private:
  sigc::signal<void> _signalOnStrategyChanged;
};

#endif