1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4; coding: utf-8 -*- */
/* dir-node.h
*
* Copyright (C) 2010 Sébastien Granjoux
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef _DIR_NODE_H_
#define _DIR_NODE_H_
#include <glib-object.h>
#include <libanjuta/anjuta-project.h>
G_BEGIN_DECLS
#define ANJUTA_TYPE_DIR_ROOT_NODE (anjuta_dir_root_node_get_type ())
#define ANJUTA_DIR_ROOT_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ANJUTA_TYPE_DIR_ROOT_NODE, AnjutaDirRootNode))
typedef struct _AnjutaDirGroupNode AnjutaDirRootNode;
typedef struct _AnjutaDirGroupNodeClass AnjutaDirRootNodeClass;
GType anjuta_dir_root_node_get_type (void) G_GNUC_CONST;
#define ANJUTA_TYPE_DIR_GROUP_NODE (anjuta_dir_group_node_get_type ())
#define ANJUTA_DIR_GROUP_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ANJUTA_TYPE_DIR_GROUP_NODE, AnjutaDirGroupNode))
typedef struct _AnjutaDirGroupNode AnjutaDirGroupNode;
typedef struct _AnjutaDirGroupNodeClass AnjutaDirGroupNodeClass;
GType anjuta_dir_group_node_get_type (void) G_GNUC_CONST;
#define ANJUTA_TYPE_DIR_OBJECT_NODE (anjuta_dir_object_node_get_type ())
#define ANJUTA_DIR_OBJECT_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ANJUTA_TYPE_DIR_OBJECT_NODE, AnjutaDirObjectNode))
typedef struct _AnjutaDirObjectNode AnjutaDirObjectNode;
GType anjuta_dir_object_node_get_type (void) G_GNUC_CONST;
#define ANJUTA_TYPE_DIR_SOURCE_NODE (anjuta_dir_source_node_get_type ())
#define ANJUTA_DIR_SOURCE_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ANJUTA_TYPE_DIR_SOURCE_NODE, AnjutaDirSourceNode))
typedef struct _AnjutaDirSourceNode AnjutaDirSourceNode;
GType anjuta_dir_source_node_get_type (void) G_GNUC_CONST;
struct _AnjutaDirGroupNode {
AnjutaProjectNode base;
GFileMonitor *monitor;
GObject *emitter;
};
struct _AnjutaDirGroupNodeClass {
AnjutaProjectNodeClass parent_class;
};
AnjutaProjectNode *dir_group_node_new (GFile *file, GObject *emitter);
gboolean dir_group_node_set_file (AnjutaDirGroupNode *group, GFile *new_file, GObject *emitter);
AnjutaProjectNode *dir_object_node_new (GFile *file);
AnjutaProjectNode *dir_source_node_new (GFile *file);
G_END_DECLS
#endif /* _DIR_NODE_H_ */
|