source: trunk/third/evolution/shell/e-component-info.h @ 18142

Revision 18142, 2.0 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18141, which included commits to RCS files with non-trunk default branches.
Line 
1/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2/* e-component-info.h - Load/save information about Evolution components.
3 *
4 * Copyright (C) 2002 Ximian, Inc.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of version 2 of the GNU General Public
8 * License as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public
16 * License along with this program; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
19 *
20 * Author: Ettore Perazzoli <ettore@ximian.com>
21 */
22
23#ifndef E_COMPONENT_INFO_H
24#define E_COMPONENT_INFO_H
25
26#include <glib.h>
27
28struct _EComponentInfoFolderType {
29        char *name;
30        char *icon_file_name;
31        char *display_name;
32        char *description;
33
34        GSList *accepted_dnd_types; /* <char *> */
35        GSList *exported_dnd_types; /* <char *> */
36
37        unsigned int is_user_creatable : 1;
38};
39typedef struct _EComponentInfoFolderType EComponentInfoFolderType;
40
41struct _EComponentInfoUserCreatableItemType {
42        char *id;
43        char *description;
44        char *icon_file_name;
45
46        char *menu_description;
47        char *menu_shortcut;
48};
49typedef struct _EComponentInfoUserCreatableItemType EComponentInfoUserCreatableItemType;
50
51struct _EComponentInfo {
52        char *id;
53        char *description;
54        char *icon_file_name;
55
56        GSList *folder_types;                   /* <EComponentInfoFolderType> */
57        GSList *uri_schemas;                    /* <char *> */
58        GSList *user_creatable_item_types;      /* <EComponentInfoUserCreatableItemType> */
59};
60typedef struct _EComponentInfo EComponentInfo;
61
62
63EComponentInfo *e_component_info_load  (const char     *file_name);
64void            e_component_info_free  (EComponentInfo *info);
65
66#endif /* E_COMPONENT_INFO_H */
Note: See TracBrowser for help on using the repository browser.