Fcitx
Classes | Macros | Typedefs
connectableobject.h File Reference

Utilities to enable use object with signal. More...

#include <functional>
#include <memory>
#include <string>
#include <utility>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/macros.h>
#include <fcitx-utils/metastring.h>
#include <fcitx-utils/signals.h>
Include dependency graph for connectableobject.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fcitx::SignalAdaptor< T, Combiner >
 Helper class to register class. More...
 
class  fcitx::ConnectableObject
 Base class for all object supports connection. More...
 
struct  fcitx::ConnectableObject::Destroyed
 

Macros

#define FCITX_DECLARE_SIGNAL(CLASS_NAME, NAME, ...)
 Declare signal by type. More...
 
#define FCITX_DEFINE_SIGNAL(CLASS_NAME, NAME)   ::fcitx::SignalAdaptor<CLASS_NAME::NAME> CLASS_NAME##NAME##Adaptor { this }
 Declare a signal.
 
#define FCITX_DEFINE_SIGNAL_PRIVATE(CLASS_NAME, NAME)   ::fcitx::SignalAdaptor<CLASS_NAME::NAME> CLASS_NAME##NAME##Adaptor { q_ptr }
 Declare a signal in pimpl class.
 

Typedefs

using fcitx::ObjectDestroyed = ConnectableObject::Destroyed
 Short hand for destroyed signal.
 

Detailed Description

Utilities to enable use object with signal.

Definition in file connectableobject.h.