![]() |
![]() |
![]() |
libRAL Reference Manual | ![]() |
---|
RubricaCsvRubricaCsv — |
#define RUBRICA_CSV_TYPE #define RUBRICA_CSV (obj) #define RUBRICA_CSV_CLASS (klass) #define IS_RUBRICA_CSV (obj) #define IS_RUBRICA_CSV_CLASS (klass) #define RUBRICA_CSV_GET_CLASS (obj) RubricaCsvPrivate; GType rubrica_csv_get_type (void); RubricaCsv* rubrica_csv_new (void); void rubrica_csv_free (RubricaCsv *csv); gint rubrica_csv_open_file (RubricaCsv *csv, gchar *file); void rubrica_csv_read_previous_record (RubricaCsv *csv);
RubricaCsv* rubrica_csv_new (void);
create a new RubricaCsv
Returns : | a RubricaCsv* |
void rubrica_csv_free (RubricaCsv *csv);
free the RubricaCsv object
csv : |
a RubricaCsv |
gint rubrica_csv_open_file (RubricaCsv *csv, gchar *file);
Read a csv file. When a csv file is open a "file_opened" signal is emitted, with an error code on file status. Each time a csv's record is decoded, a "card_decoded" signal is emitted and a RubricaPersonalCard will be sent to the user callback function. The "addressbook_decoded" signal is emitted when csv file if successfully read.
csv : |
RubricaCsv |
file : |
the file's name |
Returns : | a gint, FILE_OPEN_FAIL or FILE_IMPORT_SUCCESS
|
<< RubricaContact | RubricaAbook >> |