diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-08-12 02:36:37 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-08-17 18:32:28 +0300 |
commit | 0e65ed81453ce0ae8534b3fbc3f44a846d816910 (patch) | |
tree | eaad921355f681a0c91434896f7ea539a01f2382 /include/libcamera/object.h | |
parent | a66e5ca8c61093c5b927bb072c595560fd5d5d38 (diff) |
libcamera: signal: Split Slot implementation to reusable classes
Move the Slot* classes to bound_method.{h,cpp} and rename them to
Bound*Method*. They will be reused to implement asynchronous method
invocation similar to cross-thread signal delivery.
This is only a move and rename, no functional changes are included.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'include/libcamera/object.h')
-rw-r--r-- | include/libcamera/object.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/libcamera/object.h b/include/libcamera/object.h index 3d08d69a..e3b39cf5 100644 --- a/include/libcamera/object.h +++ b/include/libcamera/object.h @@ -10,13 +10,14 @@ #include <list> #include <memory> +#include <libcamera/bound_method.h> + namespace libcamera { class Message; template<typename... Args> class Signal; class SignalBase; -class SlotBase; class Thread; class Object @@ -36,7 +37,7 @@ protected: private: template<typename... Args> friend class Signal; - friend class SlotBase; + friend class BoundMethodBase; friend class Thread; void connect(SignalBase *signal); |