source: trunk/third/evolution/shell/e-local-folder.h @ 16787

Revision 16787, 2.7 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16786, 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-local-folder.h
3 *
4 * Copyright (C) 2000, 2001 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
21 */
22
23#ifndef _E_LOCAL_FOLDER_H_
24#define _E_LOCAL_FOLDER_H_
25
26#include <gtk/gtkobject.h>
27
28#include "e-folder.h"
29
30#ifdef __cplusplus
31extern "C" {
32#pragma }
33#endif /* __cplusplus */
34
35#define E_TYPE_LOCAL_FOLDER             (e_local_folder_get_type ())
36#define E_LOCAL_FOLDER(obj)             (GTK_CHECK_CAST ((obj), E_TYPE_LOCAL_FOLDER, ELocalFolder))
37#define E_LOCAL_FOLDER_CLASS(klass)     (GTK_CHECK_CLASS_CAST ((klass), E_TYPE_LOCAL_FOLDER, ELocalFolderClass))
38#define E_IS_LOCAL_FOLDER(obj)          (GTK_CHECK_TYPE ((obj), E_TYPE_LOCAL_FOLDER))
39#define E_IS_LOCAL_FOLDER_CLASS(klass)  (GTK_CHECK_CLASS_TYPE ((obj), E_TYPE_LOCAL_FOLDER))
40
41#define E_LOCAL_FOLDER_METADATA_FILE_NAME     "folder-metadata.xml"
42#define E_LOCAL_FOLDER_METADATA_FILE_NAME_LEN 19
43
44typedef struct _ELocalFolder        ELocalFolder;
45typedef struct _ELocalFolderClass   ELocalFolderClass;
46typedef struct _ELocalFolderPrivate ELocalFolderPrivate;
47
48struct _ELocalFolder {
49        EFolder parent;
50
51        ELocalFolderPrivate *priv;
52};
53
54struct _ELocalFolderClass {
55        EFolderClass parent_class;
56};
57
58
59GtkType   e_local_folder_get_type       (void);
60void      e_local_folder_construct      (ELocalFolder  *local_folder,
61                                         const char    *name,
62                                         const char    *type,
63                                         const char    *description);
64EFolder  *e_local_folder_new            (const char    *name,
65                                         const char    *type,
66                                         const char    *description);
67EFolder  *e_local_folder_new_from_path  (const char    *physical_path);
68gboolean  e_local_folder_save           (ELocalFolder  *local_folder);
69
70void      e_local_folder_add_i18n_info  (ELocalFolder  *local_folder,
71                                         const char    *language_id,
72                                         const char    *name,
73                                         const char    *description);
74gboolean  e_local_folder_get_i18n_info  (ELocalFolder  *local_folder,
75                                         const char    *language_id,
76                                         const char   **language_id_return,
77                                         const char   **name_return,
78                                         const char   **description_return);
79
80#ifdef __cplusplus
81}
82#endif /* __cplusplus */
83
84#endif /* __E_LOCAL_FOLDER_H__ */
Note: See TracBrowser for help on using the repository browser.