/* gda-enums.h * * Copyright (C) 2003 - 2006 Vivien Malerba * * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #ifndef __GDA_ENUMS__ #define __GDA_ENUMS__ /* status of a value */ typedef enum { GDA_VALUE_ATTR_IS_NULL = 1 << 0, /* READ | WRITE */ GDA_VALUE_ATTR_CAN_BE_NULL = 1 << 1, /* READ | WRITE */ GDA_VALUE_ATTR_IS_DEFAULT = 1 << 2, /* READ | WRITE */ GDA_VALUE_ATTR_CAN_BE_DEFAULT = 1 << 3, /* READ | WRITE */ GDA_VALUE_ATTR_IS_UNCHANGED = 1 << 4, /* READ | WRITE */ GDA_VALUE_ATTR_ACTIONS_SHOWN = 1 << 5, /* READ | WRITE */ GDA_VALUE_ATTR_DATA_NON_VALID = 1 << 6, /* READ */ GDA_VALUE_ATTR_HAS_VALUE_ORIG = 1 << 7, /* READ */ GDA_VALUE_ATTR_NO_MODIF = 1 << 8, /* READ | WRITE */ } GdaValueAttribute; /* different possible types for a GdaGraph object */ typedef enum { GDA_GRAPH_DB_RELATIONS, GDA_GRAPH_QUERY_JOINS, GDA_GRAPH_MODELLING /* for future extensions */ } GdaGraphType; typedef enum { GDA_ENTITY_FIELD_VISIBLE = 1 << 0, GDA_ENTITY_FIELD_INVISIBLE = 1 << 1, GDA_ENTITY_FIELD_ANY = GDA_ENTITY_FIELD_VISIBLE | GDA_ENTITY_FIELD_INVISIBLE } GdaEntityFieldState; #endif