removed 'never-worked' blogger shit
[k8lowj.git] / src / draftstore.h
blobe907691bda8979e0ecd8215af2f6b5dc71d2697b
1 /* logjam - a GTK client for LiveJournal.
2 * Copyright (C) 2000-2003 Evan Martin <evan@livejournal.com>
4 * vim: tabstop=4 shiftwidth=4 noexpandtab :
5 */
7 #ifndef DRAFTSTORE_H
8 #define DRAFTSTORE_H
10 #include "liblj/livejournal.h"
11 #include "account.h"
13 typedef struct _DraftStore DraftStore;
15 typedef void (*DraftStoreHeaderFunc)(DraftStore *, LJEntry *, gpointer);
17 DraftStore* draft_store_new(JamAccount *acc);
18 void draft_store_free(DraftStore *ds);
20 gboolean draft_store_each_header(DraftStore *ds,
21 LJEntry *entry,
22 DraftStoreHeaderFunc func,
23 gpointer data);
25 LJEntry* draft_store_get_entry (DraftStore *ds, int itemid, GError **err);
26 gboolean draft_store_put_entry (DraftStore *ds, LJEntry *entry, GError **err);
27 gboolean draft_store_remove_entry(DraftStore *ds, int itemid, GError **err);
28 int draft_store_find_itemid (DraftStore *ds);
29 gboolean draft_store_flush (DraftStore *ds, GError **err);
31 #ifdef HAVE_GTK
32 LJEntry* draft_store_ui_select (DraftStore *ds, GtkWindow *parent);
33 #endif
35 #endif /* DRAFTSTORE_H */