Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 637cf4b2d824870083c0ced7cd6a354e > files > 6

streamtuner-devel-0.99.99-14mdv2009.1.i586.rpm

/*
 * Copyright (c) 2002, 2003, 2004 Jean-Yves Lefort
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. Neither the name of Jean-Yves Lefort nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
 * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
 * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */

#ifndef _ST_HANDLER_FIELD_API_H
#define _ST_HANDLER_FIELD_API_H

#include <glib-object.h>

G_BEGIN_DECLS

typedef struct _STHandlerField STHandlerField;
typedef struct _STHandlerFieldPrivate STHandlerFieldPrivate;

struct _STHandlerField
{
  int				id;
  STHandlerFieldPrivate		*priv;
};

typedef enum
{
  ST_HANDLER_FIELD_VISIBLE		= 1 << 0,
  ST_HANDLER_FIELD_EDITABLE		= 1 << 1,
  ST_HANDLER_FIELD_VOLATILE		= 1 << 2,
  ST_HANDLER_FIELD_NO_DEDICATED_COLUMN	= 1 << 3,
  ST_HANDLER_FIELD_START_HIDDEN		= 1 << 4
} STHandlerFieldFlags;

STHandlerField	*st_handler_field_new		(int                  id,
						 const char           *label,
						 GType                type,
						 STHandlerFieldFlags  flags);

const char		*st_handler_field_get_label  (STHandlerField  *field);
GType			st_handler_field_get_type    (STHandlerField  *field);
STHandlerFieldFlags	st_handler_field_get_flags   (STHandlerField  *field);

void        st_handler_field_set_description	(STHandlerField	*field,
						 const char	*description);
const char  *st_handler_field_get_description	(STHandlerField	*field);

G_END_DECLS

#endif /* _ST_HANDLER_FIELD_API_H */