/[zanavi_public1]/navit/navit/bookmarks.h
ZANavi

Contents of /navit/navit/bookmarks.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 28 21:19:04 2011 UTC (8 years, 2 months ago) by zoff99
File MIME type: text/plain
File size: 2598 byte(s)
import files
1 /**
2 * Navit, a modular navigation system.
3 * Copyright (C) 2005-2010 Navit Team
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * version 2 as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20 #ifndef NAVIT_BOOKMARKS_H
21 #define NAVIT_BOOKMARKS_H
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 /* prototypes */
28 struct bookmarks;
29 struct bookmarks *bookmarks_new(struct attr *parent, struct attr **attrs, struct transformation *trans);
30 void bookmarks_destroy(struct bookmarks *this_);
31 void bookmarks_add_callback(struct bookmarks *this_, struct callback *cb);
32
33 int bookmarks_add_bookmark(struct bookmarks *this_, struct pcoord *c, const char *description);
34 int bookmarks_cut_bookmark(struct bookmarks *this_, const char *label);
35 int bookmarks_copy_bookmark(struct bookmarks *this_, const char *label);
36 int bookmarks_paste_bookmark(struct bookmarks *this_);
37 int bookmarks_rename_bookmark(struct bookmarks *this_, const char *oldName, const char* newName);
38 int bookmarks_delete_bookmark(struct bookmarks *this_, const char *label);
39
40 struct map* bookmarks_get_map(struct bookmarks *this_);
41 enum projection bookmarks_get_projection(struct bookmarks *this_);
42
43 void bookmarks_move_root(struct bookmarks *this_);
44 void bookmarks_move_up(struct bookmarks *this_);
45 int bookmarks_move_down(struct bookmarks *this_,const char* name);
46
47 struct item* bookmarks_get_item(struct bookmarks* this_);
48 void bookmarks_item_rewind(struct bookmarks* this_);
49 const char* bookmarks_item_cwd(struct bookmarks* this_);
50
51 char* bookmarks_get_user_data_directory(gboolean create);
52 char* bookmarks_get_destination_file(gboolean create);
53 void bookmarks_set_center_from_file(struct bookmarks *this_, char *file);
54 char* bookmarks_get_center_file(gboolean create);
55 void bookmarks_write_center_to_file(struct bookmarks *this_, char *file);
56 void bookmarks_append_coord(struct bookmarks *this_, char *file, struct pcoord *c, int count, const char *type, const char *description, GHashTable *h, int limit);
57 /* end of prototypes */
58
59 #ifdef __cplusplus
60 }
61 #endif
62
63 #endif /* NAVIT_BOOKMARKS_H */

   
Visit the ZANavi Wiki