Freeciv-3.2
Loading...
Searching...
No Matches
Public Member Functions | Private Slots | Private Attributes
mr_idle Class Reference

#include <mapview.h>

+ Inheritance diagram for mr_idle:

Public Member Functions

 mr_idle ()
 
 ~mr_idle ()
 
void add_callback (call_me_back *cb)
 

Private Slots

void idling ()
 

Private Attributes

QQueue< call_me_back * > callback_list
 
QTimer timer
 

Detailed Description

Definition at line 61 of file mapview.h.

Constructor & Destructor Documentation

◆ mr_idle()

mr_idle::mr_idle ( )

Constructor for idle callbacks

Definition at line 152 of file mapview.cpp.

◆ ~mr_idle()

mr_idle::~mr_idle ( )

Destructor for idle callbacks

Definition at line 161 of file mapview.cpp.

Member Function Documentation

◆ add_callback()

void mr_idle::add_callback ( call_me_back cb)

Adds one callback to execute later

Definition at line 188 of file mapview.cpp.

Referenced by qtg_add_idle_callback().

◆ idling

void mr_idle::idling ( )
privateslot

Slot used to execute 1 callback from callbacks stored in idle list

Definition at line 174 of file mapview.cpp.

Referenced by mr_idle().

Field Documentation

◆ callback_list

QQueue<call_me_back*> mr_idle::callback_list
private

Definition at line 72 of file mapview.h.

Referenced by add_callback(), idling(), and ~mr_idle().

◆ timer

QTimer mr_idle::timer
private

Definition at line 73 of file mapview.h.