/usr/include/gpe/todo-db.h is in libtododb-dev 0.11-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | #ifndef TODODB_H
#define TODODB_H
#include <glib.h>
/**
* item_state:
* @NOT_STARTED: Indicates a task which isn't started.
* @IN_PROGRESS: Task currently in progress.
* @COMPLETED: Task is marked as completed.
* @ABANDONED: Indicates an abandoned task.
*
* Type to describe the progress status of a todo item.
*/
typedef enum
{
NOT_STARTED,
IN_PROGRESS,
COMPLETED,
ABANDONED
} item_state;
/**
* todo_item:
* @id: Unique id.
* @pos: Position marker.
* @time: Timestamp holding due date.
* @what: Item title.
* @summary: Item description.
* @todoid: ID for vtodo ex-/importation.
* @state: Item status (see #item_state).
* @was_complete:
* @categories: List of categories the item belongs to.
* @priority: Priority information.
*
* Data type describing a todo item including description and current status.
*/
struct todo_item
{
int id, pos;
time_t time;
const char *what;
const char *summary;
const char *todoid;
item_state state;
gboolean was_complete;
GSList *categories;
guint priority;
};
/**
* PRIORITY_HIGH:
*
* Indicates an item with high priority.
*/
/**
* PRIORITY_STANDARD:
*
* Indicates an item with default priority.
*/
/**
* PRIORITY_LOW:
*
* Indicates a low priority item.
*/
#define PRIORITY_HIGH 9
#define PRIORITY_STANDARD 5
#define PRIORITY_LOW 0
extern struct todo_item *todo_db_new_item (void);
extern gboolean todo_db_push_item (struct todo_item *i);
extern void todo_db_delete_item (struct todo_item *i);
extern void todo_db_destroy_item (struct todo_item *i);
extern GSList *todo_db_get_items_list(void);
extern int todo_db_start (void);
extern void todo_db_stop (void);
extern int todo_db_refresh (void);
/** Find the item with uid UID returning it or returning NULL if none
is found. */
extern struct todo_item *todo_db_find_item_by_id (guint uid);
#endif
|