2017-02-01 18:20:48 +01:00
|
|
|
#ifndef MDIARY_H
|
|
|
|
#define MDIARY_H
|
|
|
|
|
2017-02-04 13:37:56 +01:00
|
|
|
#include <glib.h>
|
|
|
|
#include <gtk/gtk.h>
|
2017-02-04 16:12:46 +01:00
|
|
|
#include <stdlib.h>
|
2017-02-04 13:37:56 +01:00
|
|
|
|
|
|
|
enum {
|
|
|
|
COL_TITLE = 0, /* Title of the entry */
|
|
|
|
COL_DATE_TEXT, /* Textual representation of the date (auto generated) */
|
|
|
|
COL_TAGS_TEXT, /* Textual representation of the tags (auto generated) */
|
|
|
|
COL_TIMESTAMP, /* GDateTime of the entry */
|
|
|
|
COL_TAGLIST, /* GList<gchar *> of the tags */
|
2017-02-04 17:01:09 +01:00
|
|
|
COL_SUMMARY, /* Summary of the entry */
|
2017-02-04 13:37:56 +01:00
|
|
|
COL_TEXT, /* Raw text from the file */
|
|
|
|
COL_COUNT
|
|
|
|
};
|
|
|
|
|
|
|
|
void mdiary_scan_to_store(gchar *base_dir,
|
|
|
|
GtkListStore *entryListStore);
|
|
|
|
void mdiary_add_entry_to_store(GtkListStore *entryListStore,
|
|
|
|
gchar *title,
|
|
|
|
GDateTime *datetime,
|
|
|
|
GList *tags,
|
2017-02-04 17:01:09 +01:00
|
|
|
gchar *summary,
|
2017-02-04 13:37:56 +01:00
|
|
|
gchar *text);
|
2017-02-04 16:12:46 +01:00
|
|
|
GDateTime *mdiary_get_date_from_string_ext(gchar *string, gchar *prefix, gchar *suffix);
|
|
|
|
GDateTime *mdiary_get_date_from_string(gchar *string);
|
|
|
|
|
2017-02-01 18:20:48 +01:00
|
|
|
#endif /* MDIARY_H */
|