QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GStreamer::ScopedSignal Class Reference

#include <GstScoped.h>

Public Member Functions

 ScopedSignal ()=default
 ~ScopedSignal ()
 ScopedSignal (const ScopedSignal &)=delete
ScopedSignal & operator= (const ScopedSignal &)=delete
bool connect (gpointer object, const char *signal, GCallback callback, gpointer data)
 g_signal_connect() on object, replacing the handler held so far. False when nothing was connected.
void disconnect () noexcept

Detailed Description

A GObject signal handler owned like a scoped pointer: connected by connect(), disconnected by disconnect() or destruction unless the object is gone by then. For handlers whose data dies before the object.

Definition at line 190 of file GstScoped.h.

Constructor & Destructor Documentation

◆ ScopedSignal() [1/2]

GStreamer::ScopedSignal::ScopedSignal ( )
default

Referenced by operator=(), and ScopedSignal().

◆ ~ScopedSignal()

GStreamer::ScopedSignal::~ScopedSignal ( )
inline

Definition at line 195 of file GstScoped.h.

References disconnect().

◆ ScopedSignal() [2/2]

GStreamer::ScopedSignal::ScopedSignal ( const ScopedSignal & )
delete

References ScopedSignal().

Member Function Documentation

◆ connect()

bool GStreamer::ScopedSignal::connect ( gpointer object,
const char * signal,
GCallback callback,
gpointer data )
inline

g_signal_connect() on object, replacing the handler held so far. False when nothing was connected.

Definition at line 201 of file GstScoped.h.

References disconnect().

◆ disconnect()

void GStreamer::ScopedSignal::disconnect ( )
inlinenoexcept

Definition at line 211 of file GstScoped.h.

Referenced by connect(), and ~ScopedSignal().

◆ operator=()

ScopedSignal & GStreamer::ScopedSignal::operator= ( const ScopedSignal & )
delete

References ScopedSignal().


The documentation for this class was generated from the following file: