Receptacle
 All Classes Files Functions Variables Pages
SignalCounter Class Reference

The SignalCounter class is a simplified version of QSignalSpy. More...

#include <signal_counter.h>

Inheritance diagram for SignalCounter:

Signals

void signal_received ()
 

Public Member Functions

 SignalCounter (const QObject *object, const char *signal)
 SignalCounter constructor connects to the given signal and starts counting at 0. More...
 
int count ()
 Current count of signals that have been emitted. More...
 
void reset_count ()
 

Protected Attributes

int c
 

Detailed Description

The SignalCounter class is a simplified version of QSignalSpy.

Constructor & Destructor Documentation

SignalCounter::SignalCounter ( const QObject *  object,
const char *  signal 
)
inline

SignalCounter constructor connects to the given signal and starts counting at 0.

Parameters
objectQObject that emits the signal to count
signalthat is counted

Member Function Documentation

int SignalCounter::count ( )
inline

Current count of signals that have been emitted.

Returns
int

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