]> git.lyx.org Git - lyx.git/blob - src/support/SignalSlotPrivate.h
Replace the text class shared ptr by good old index-into-global-list.
[lyx.git] / src / support / SignalSlotPrivate.h
1 // -*- C++ -*-
2 /**
3  * \file SignalSlotPrivate.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef SIGNALSLOTPRIVATE_H
13 #define SIGNALSLOTPRIVATE_H
14
15 #include <QObject>
16
17 namespace lyx {
18
19 class SignalImpl : public QObject
20 {
21         Q_OBJECT
22 public:
23         SignalImpl() {}
24         virtual ~SignalImpl() {}
25         
26 Q_SIGNALS:
27         void fire();
28         friend class Signal;
29 };
30
31
32 class Slot;
33 class SlotImpl : public QObject
34 {
35         Q_OBJECT
36 public:
37         SlotImpl(Slot & owner) : owner_(owner) {}
38         virtual ~SlotImpl() {}
39 public Q_SLOTS:
40         void called();
41 private:
42         Slot & owner_;
43 };
44
45 } // namespace lyx
46
47 #endif // SIGNALSLOTPRIVATE_H