1 /** \file
2 * Inkscape::IO::Resource - simple resource API
3 *
4 * Copyright 2006 MenTaLguY <mental@rydia.net>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * See the file COPYING for details.
12 *
13 */
15 #ifndef SEEN_INKSCAPE_IO_RESOURCE_H
16 #define SEEN_INKSCAPE_IO_RESOURCE_H
18 #include "util/share.h"
20 namespace Inkscape {
22 namespace IO {
24 namespace Resource {
26 enum Type {
27 APPICONS,
28 EXTENSIONS,
29 GRADIENTS,
30 ICONS,
31 KEYS,
32 MARKERS,
33 PALETTES,
34 PATTERNS,
35 PLUGINS,
36 SCREENS,
37 TEMPLATES,
38 TUTORIALS,
39 UI
40 };
42 enum Domain {
43 SYSTEM,
44 USER
45 };
47 Util::ptr_shared<char> get_path(Domain domain, Type type,
48 char const *filename=NULL);
50 }
52 }
54 }
56 #endif
57 /*
58 Local Variables:
59 mode:c++
60 c-file-style:"stroustrup"
61 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
62 indent-tabs-mode:nil
63 fill-column:99
64 End:
65 */
66 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :