~midori/midori/trunk

« back to all changes in this revision

Viewing changes to midori/midori-bookmarks-db.h

  • Committer: André Auzi
  • Date: 2013-08-05 12:50:34 UTC
  • mto: This revision was merged to the branch mainline in revision 6388.
  • Revision ID: aauzi@free.fr-20130805125034-tyywj27asg4egh3b
prepare to KatzeItem derivation for update-item signals
as a result, all db operations are centralized in midori-bookmarks-db 

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 See the file COPYING for the full license text.
11
11
*/
12
12
 
13
 
#ifndef __MIDORI_BOOKMARKS_H__
14
 
#define __MIDORI_BOOKMARKS_H__ 1
 
13
#ifndef __MIDORI_BOOKMARKS_DB_H__
 
14
#define __MIDORI_BOOKMARKS_DB_H__ 1
15
15
 
16
16
#include <sqlite3.h>
17
17
#include <katze/katze.h>
18
18
 
19
 
void
20
 
midori_bookmarks_add_item_cb (KatzeArray* array,
21
 
                              KatzeItem*  item,
22
 
                              sqlite3*    db);
23
 
 
24
 
void
25
 
midori_bookmarks_remove_item_cb (KatzeArray* array,
26
 
                                 KatzeItem*  item,
27
 
                                 sqlite3*    db);
28
 
 
29
19
KatzeArray*
30
20
midori_bookmarks_new (char** errmsg);
31
21
 
33
23
midori_bookmarks_on_quit (KatzeArray* array);
34
24
 
35
25
void
36
 
midori_bookmarks_import (const gchar* filename,
37
 
                         sqlite3*     db);
38
 
 
39
 
#endif /* !__MIDORI_BOOKMARKS_H__ */
 
26
midori_array_update_item (KatzeArray* bookmarks, KatzeItem* item);
 
27
 
 
28
void
 
29
midori_bookmarks_import_array (KatzeArray* bookmarks,
 
30
                               KatzeArray* array,
 
31
                               gint64      parentid);
 
32
 
 
33
KatzeArray*
 
34
midori_array_query_recursive (KatzeArray*  bookmarks,
 
35
                              const gchar* fields,
 
36
                              const gchar* condition,
 
37
                              const gchar* value,
 
38
                              gboolean     recursive);
 
39
 
 
40
gint64
 
41
midori_array_count_recursive (KatzeArray*  bookmarks,
 
42
                              const gchar*        condition,
 
43
                              const gchar*        value,
 
44
                              KatzeItem*          folder,
 
45
                              gboolean            recursive);
 
46
 
 
47
#endif /* !__MIDORI_BOOKMARKS_DB_H__ */
40
48