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.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  USERS
 
struct  STATISTICS
 

Macros

#define DOWNHOST   "klavaro.sourceforge.io/top10"
 
#define CGI_SERVER   "klavaro.sourceforge.io/cgi-bin/klavaro_rangilo"
 
#define MIN_CHARS_TO_LOG   500
 
#define TIMEOUT   10
 
#define LOW_SPEED_LIMIT   160
 
#define LOW_SPEED_TIME   5
 
#define MAX_NAME_LEN   255
 

Typedefs

typedef struct USERS User
 
typedef struct STATISTICS Statistics
 

Functions

void top10_init (void)
 
void top10_message (gchar *msg)
 
void top10_init_stats (gboolean locally)
 
void top10_clean_stat (gint i, 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)
 
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 *stats)
 
void top10_show_stats (gboolean locally)
 
gboolean top10_global_update (gpointer data)
 
gboolean top10_global_publish (gpointer data)
 

Macro Definition Documentation

◆ CGI_SERVER

#define CGI_SERVER   "klavaro.sourceforge.io/cgi-bin/klavaro_rangilo"

Definition at line 22 of file top10.h.

◆ DOWNHOST

#define DOWNHOST   "klavaro.sourceforge.io/top10"

Contest for fluidness performance

Definition at line 21 of file top10.h.

◆ LOW_SPEED_LIMIT

#define LOW_SPEED_LIMIT   160

Definition at line 26 of file top10.h.

◆ LOW_SPEED_TIME

#define LOW_SPEED_TIME   5

Definition at line 27 of file top10.h.

◆ MAX_NAME_LEN

#define MAX_NAME_LEN   255

Definition at line 38 of file top10.h.

◆ MIN_CHARS_TO_LOG

#define MIN_CHARS_TO_LOG   500

Definition at line 23 of file top10.h.

◆ TIMEOUT

#define TIMEOUT   10

Definition at line 25 of file top10.h.

Typedef Documentation

◆ Statistics

typedef struct STATISTICS Statistics

◆ User

typedef struct USERS User

Structures

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_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 
)