klavaro  3.13
About: Klavaro is a touch typing tutor program.
  Fossies Dox: klavaro-3.13.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

top10.c File Reference
#include <stdio.h>
#include <string.h>
#include <locale.h>
#include <time.h>
#include <math.h>
#include <sys/stat.h>
#include <glib.h>
#include <glib/gstdio.h>
#include <gtk/gtk.h>
#include <curl/curl.h>
#include <curl/easy.h>
#include "auxiliar.h"
#include "main.h"
#include "translation.h"
#include "top10.h"
Include dependency graph for top10.c:

Go to the source code of this file.

Macros

#define NOBODY   "xxx"
 

Functions

void top10_init ()
 
void top10_message (gchar *msg)
 
void top10_clean_stat (gint i, gboolean locally)
 
void top10_init_stats (gboolean locally)
 
void top10_insert_stat (Statistics *stat, gint i, gboolean locally)
 
gboolean top10_compare_insert_stat (Statistics *stat, gboolean locally)
 
void top10_delete_stat (gint i, gboolean locally)
 
gfloat top10_calc_score (Statistics *stat)
 
gboolean top10_validate_stat (Statistics *stat)
 
gchar * top10_get_score_file (gboolean locally, gint lang)
 
static gboolean top10_merge_stats_from_file (gchar *file)
 
gboolean top10_read_stats_from_file (gboolean locally, gchar *file)
 
void top10_read_stats (gboolean locally, gint lang)
 
void top10_write_stats (gboolean locally, gint lang)
 
void top10_show_stat (Statistics *stat)
 
void top10_show_stats (gboolean locally)
 
gboolean top10_global_update (gpointer data)
 
gboolean top10_global_publish (gpointer data)
 

Variables

Statistics top10_local [10]
 
Statistics top10_global [10]
 
GKeyFile * keyfile = NULL
 

Macro Definition Documentation

◆ NOBODY

#define NOBODY   "xxx"

Definition at line 148 of file top10.c.

Function Documentation

◆ top10_calc_score()

gfloat top10_calc_score ( Statistics stat)

Definition at line 261 of file top10.c.

References STATISTICS::accur, STATISTICS::fluid, score, and STATISTICS::velo.

Referenced by top10_validate_stat(), and tutor_calc_stats().

◆ top10_clean_stat()

◆ top10_compare_insert_stat()

gboolean top10_compare_insert_stat ( Statistics stat,
gboolean  locally 
)

◆ top10_delete_stat()

void top10_delete_stat ( gint  i,
gboolean  locally 
)

Definition at line 244 of file top10.c.

References i, j, top10_clean_stat(), top10_global, and top10_local.

Referenced by top10_compare_insert_stat().

◆ top10_get_score_file()

gchar* top10_get_score_file ( gboolean  locally,
gint  lang 
)

◆ top10_global_publish()

gboolean top10_global_publish ( gpointer  data)

◆ top10_global_update()

gboolean top10_global_update ( gpointer  data)

◆ top10_init()

void top10_init ( void  )

Functions

Definition at line 51 of file top10.c.

References _, get_wg(), i, and list.

Referenced by main_window_init().

◆ top10_init_stats()

void top10_init_stats ( gboolean  locally)

Definition at line 173 of file top10.c.

References i, and top10_clean_stat().

Referenced by top10_read_stats().

◆ top10_insert_stat()

void top10_insert_stat ( Statistics stat,
gint  i,
gboolean  locally 
)

Definition at line 182 of file top10.c.

References i, j, top10_global, and top10_local.

Referenced by top10_compare_insert_stat().

◆ top10_merge_stats_from_file()

◆ top10_message()

◆ top10_read_stats()

void top10_read_stats ( gboolean  locally,
gint  lang 
)

◆ top10_read_stats_from_file()

gboolean top10_read_stats_from_file ( gboolean  locally,
gchar *  file 
)

◆ top10_show_stat()

◆ top10_show_stats()

◆ top10_validate_stat()

gboolean top10_validate_stat ( Statistics stat)

Definition at line 270 of file top10.c.

References STATISTICS::fluid, STATISTICS::score, top10_calc_score(), and STATISTICS::velo.

Referenced by tutor_calc_stats().

◆ top10_write_stats()

void top10_write_stats ( gboolean  locally,
gint  lang 
)

Variable Documentation

◆ keyfile

GKeyFile* keyfile = NULL

Definition at line 44 of file top10.c.

◆ top10_global

◆ top10_local