navit  0.5.3-trunk
event_qt5.cpp File Reference
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
#include "config.h"
#include "navit/callback.h"
#include "navit/color.h"
#include "navit/debug.h"
#include "navit/event.h"
#include "navit/point.h"
#include "navit/graphics.h"
#include "navit/item.h"
#include "navit/keys.h"
#include "navit/navit.h"
#include "navit/plugin.h"
#include "navit/window.h"
#include "event_qt5.h"
#include "graphics_qt5.h"
#include <QSocketNotifier>

Data Structures

struct  event_watch
 

Functions

static void event_qt5_remove_timeout (struct event_timeout *to)
 
static void event_qt5_main_loop_run (void)
 
static void event_qt5_main_loop_quit (void)
 
static struct event_watchevent_qt5_add_watch (int fd, enum event_watch_cond cond, struct callback *cb)
 
static void event_qt5_remove_watch (struct event_watch *ev)
 
static struct event_timeoutevent_qt5_add_timeout (int timeout, int multi, struct callback *cb)
 
static struct event_idleevent_qt5_add_idle (int priority, struct callback *cb)
 
static void event_qt5_remove_idle (struct event_idle *ev)
 
static void event_qt5_call_callback (struct callback_list *cb)
 
static struct event_privevent_qt5_new (struct event_methods *meth)
 
void qt5_event_init (void)
 

Variables

qt5_navit_timerqt5_timer = NULL
 
static struct event_methods event_qt5_methods
 

Function Documentation

◆ event_qt5_add_idle()

static struct event_idle* event_qt5_add_idle ( int  priority,
struct callback cb 
)
static

◆ event_qt5_add_timeout()

static struct event_timeout* event_qt5_add_timeout ( int  timeout,
int  multi,
struct callback cb 
)
static

◆ event_qt5_add_watch()

static struct event_watch* event_qt5_add_watch ( int  fd,
enum event_watch_cond  cond,
struct callback cb 
)
static

◆ event_qt5_call_callback()

static void event_qt5_call_callback ( struct callback_list cb)
static

References dbg, and lvl_debug.

◆ event_qt5_main_loop_quit()

static void event_qt5_main_loop_quit ( void  )
static

References dbg, exit, and lvl_debug.

◆ event_qt5_main_loop_run()

static void event_qt5_main_loop_run ( void  )
static

References dbg, lvl_debug, and navit_app.

◆ event_qt5_new()

static struct event_priv* event_qt5_new ( struct event_methods meth)
static

References event_qt5_methods, and qt5_timer.

Referenced by qt5_event_init().

◆ event_qt5_remove_idle()

static void event_qt5_remove_idle ( struct event_idle ev)
static

◆ event_qt5_remove_timeout()

static void event_qt5_remove_timeout ( struct event_timeout to)
static

◆ event_qt5_remove_watch()

static void event_qt5_remove_watch ( struct event_watch ev)
static

◆ qt5_event_init()

void qt5_event_init ( void  )

References event_qt5_new().

Referenced by plugin_init().

Variable Documentation

◆ event_qt5_methods

struct event_methods event_qt5_methods
static
Initial value:
= {
}
static void event_qt5_main_loop_quit(void)
Definition: event_qt5.cpp:100
static struct event_idle * event_qt5_add_idle(int priority, struct callback *cb)
Definition: event_qt5.cpp:140
static void event_qt5_call_callback(struct callback_list *cb)
Definition: event_qt5.cpp:150
static void event_qt5_remove_watch(struct event_watch *ev)
Definition: event_qt5.cpp:116
static void event_qt5_main_loop_run(void)
Definition: event_qt5.cpp:94
static void event_qt5_remove_idle(struct event_idle *ev)
Definition: event_qt5.cpp:145
static struct event_timeout * event_qt5_add_timeout(int timeout, int multi, struct callback *cb)
Definition: event_qt5.cpp:123
static void event_qt5_remove_timeout(struct event_timeout *to)
Definition: event_qt5.cpp:133
static struct event_watch * event_qt5_add_watch(int fd, enum event_watch_cond cond, struct callback *cb)
Definition: event_qt5.cpp:105

Referenced by event_qt5_new().

◆ qt5_timer