1 /* Copyright (c) 2006, Nokia Corporation
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * * Neither the name of the Nokia Corporation nor the names of its
14 * contributors may be used to endorse or promote products derived from
15 * this software without specific prior written permission.
17 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
18 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
19 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
20 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
21 k * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
24 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
25 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
26 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 #ifndef __MODEST_HILDON_INCLUDES__
30 #define __MODEST_HILDON_INCLUDES__
37 #ifdef MODEST_HAVE_OSSO_HELP
38 #include <osso-helplib.h>
40 #ifdef MODEST_HAVE_HILDON_HELP
41 #include <hildon/hildon-help.h>
42 #endif /*MODEST_HAVE_HILDON_HELP*/
43 #endif /*MODEST_HAVE_OSSO_HELP*/
46 #ifdef MODEST_HAVE_OSSO_MIME
47 #include <osso-mime.h>
50 #ifdef MODEST_HAVE_HILDON_MIME
51 #include <hildon-mime.h>
52 #include <hildon-uri.h>
53 #endif /*MODEST_HAVE_HILDON_MIME*/
54 #endif /*MODEST_HAVE_OSSO_MIME*/
57 #ifdef MODEST_HAVE_HILDON_NOTIFY
58 #include <hildon/hildon-notification.h>
59 #endif /*MODEST_HILDON_NOTIFY*/
62 #ifdef MODEST_HAVE_HILDON0_WIDGETS
63 #include <hildon-widgets/hildon-color-selector.h>
64 #include <hildon-widgets/hildon-color-button.h>
65 #include <hildon-widgets/hildon-banner.h>
66 #include <hildon-widgets/hildon-caption.h>
67 #include <hildon-widgets/hildon-number-editor.h>
68 #include <hildon-widgets/hildon-note.h>
69 #include <hildon-widgets/hildon-file-chooser-dialog.h>
70 #include <hildon-widgets/hildon-font-selection-dialog.h>
71 #include <hildon-widgets/hildon-find-toolbar.h>
72 #include <hildon-widgets/hildon-sort-dialog.h>
76 #ifdef MODEST_HAVE_HILDON1_WIDGETS
77 #include <hildon/hildon-helper.h>
78 #include <hildon/hildon-file-chooser-dialog.h>
79 #include <hildon/hildon-color-chooser.h>
80 #include <hildon/hildon-banner.h>
81 #include <hildon/hildon-color-button.h>
82 #include <hildon/hildon-note.h>
83 #include <hildon/hildon-color-button.h>
84 #include <hildon/hildon-font-selection-dialog.h>
85 #include <hildon/hildon-caption.h>
86 #include <hildon/hildon-find-toolbar.h>
87 #include <hildon/hildon-sort-dialog.h>
88 #include <hildon/hildon-number-editor.h>
90 #endif /*__MODEST_HAVE_HILDON1_WIDGETS*/
91 #endif /*__MODEST_HAVE_HILDON0_WIDGETS_*/
94 /* backward compatibility... */
95 #ifdef MODEST_HAVE_OSSO_MIME
96 #define hildon_mime_open_file_with_mime_type osso_mime_open_file_with_mime_type
97 #define hildon_mime_open_file osso_mime_open_file
99 #define HildonURIAction OssoURIAction
100 #define hildon_uri_get_scheme_from_uri osso_uri_get_scheme_from_uri
101 #define hildon_uri_get_actions osso_uri_get_actions
102 #define hildon_uri_action_get_translation osso_uri_action_get_translation
103 #define hildon_uri_is_default_action osso_uri_is_default_action
104 #define hildon_uri_free_actions osso_uri_free_actions
107 #define hildon_uri_action_get_service osso_uri_action_get_name
108 #define hildon_uri_open osso_uri_open
110 #define hildon_mime_get_icon_names osso_mime_get_icon_names
112 #endif /*MODEST_HAVE_OSSO_MIME*/
115 #endif /*__MODEST_HILDON_INCLUDES__*/