libergtk/include/erGtkEntryFilter.h File Reference

ereader gtk library - filters for erGtkEntry object ipv4 filter and integer filter More...

#include <gtk/gtk.h>
#include <glib.h>

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  ipAddress_t { ipv4Complete_e = 0, ipv4Incomplete_e, ipv4Error_e }

Functions

ipAddress_t ipv4_filter_check_address (const gchar *text)
void ipv4_filter_init (GtkEntry *entry)
void integer_filter_init (GtkEntry *entry)


Detailed Description

ereader gtk library - filters for erGtkEntry object ipv4 filter and integer filter

Copyright (C) 2007 iRex Technologies B.V. All rights reserved.

Definition in file erGtkEntryFilter.h.


Enumeration Type Documentation

Enumerator:
ipv4Complete_e 
ipv4Incomplete_e 
ipv4Error_e 

Definition at line 33 of file erGtkEntryFilter.h.

00034 {
00035     ipv4Complete_e = 0,
00036     ipv4Incomplete_e,
00037     ipv4Error_e
00038 }ipAddress_t;


Function Documentation

void integer_filter_init ( GtkEntry *  entry  ) 

Definition at line 264 of file erGtkEntryFilter.c.

00265 {
00266     g_signal_connect (G_OBJECT (entry), "insert-text",
00267                     G_CALLBACK (insert_integer_filter), NULL);
00268 }

Here is the call graph for this function:

ipAddress_t ipv4_filter_check_address ( const gchar *  text  ) 

Definition at line 132 of file erGtkEntryFilter.c.

00133 {
00134     if (!text)
00135     {
00136         return ipv4Incomplete_e;
00137     }
00138 
00139     if (is_ipv4(text))
00140     {
00141         return ipv4Complete_e;
00142     }
00143 
00144     if (is_ipv4_incomplete(text))
00145     {
00146         return ipv4Incomplete_e;
00147     }
00148     
00149     return ipv4Error_e;
00150 }

Here is the call graph for this function:

void ipv4_filter_init ( GtkEntry *  entry  ) 

Definition at line 216 of file erGtkEntryFilter.c.

00217 {
00218     g_signal_connect (G_OBJECT (entry), "insert-text",
00219                     G_CALLBACK (insert_filter), NULL);
00220 
00221     g_signal_connect (G_OBJECT (entry), "delete-text",
00222                     G_CALLBACK (delete_filter), NULL);
00223 
00224 }

Here is the call graph for this function:


Generated on Sun Dec 14 17:12:32 2008 by  doxygen 1.5.6