Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

mlview-name-value-pair.h

Go to the documentation of this file.
00001 /*This file is part of MlView
00002  *
00003  *MlView is free software; you can redistribute it and/or modify it under the terms of 
00004  *the GNU General Public License as published by the Free Software Foundation; either version 2, 
00005  *or (at your option) any later version.
00006  *
00007  *MlView is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
00008  *without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00009  *See the GNU General Public License for more details.
00010  *
00011  *You should have received a copy of the GNU General Public License along with MlView; 
00012  *see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00013  *
00014 *
00015 *Copyright 2001 dodji seketeli
00016 */
00017 
00023 #ifndef __MLVIEW_NAME_VALUE_PAIR_H__
00024 #define __MLVIEW_NAME_VALUE_PAIR_H__
00025 #include <gnome.h>
00026 
00027 #ifdef __cplusplus
00028 extern "C"{
00029 #endif /*__cplusplus*/
00030 
00031 #define GTK_TYPE_MLVIEW_NAME_VALUE_PAIR (mlview_name_value_pair_get_type())
00032 #define MLVIEW_NAME_VALUE_PAIR(object) (GTK_CHECK_CAST((object),GTK_TYPE_MLVIEW_NAME_VALUE_PAIR,MlViewNameValuePair))
00033 #define MLVIEW_NAME_VALUE_PAIR_CLASS(klass) (GTK_CHECK_CLASS_CAST(klass),GTK_TYPE_MLVIEW_NAME_VALUE_PAIR,MlViewNameValuePairClass)
00034 #define IS_MLVIEW_NAME_VALUE_PAIR(object) (GTK_CHECK_TYPE((object),GTK_TYPE_MLVIEW_NAME_VALUE_PAIR))
00035 #define IS_MLVIEW_NAME_VALUE_PAIR_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass),GTK_TYPE_MLVIEW_NAME_VALUE_PAIR))
00036         typedef struct _MlViewNameValuePair MlViewNameValuePair ;
00037         typedef struct _MlViewNameValuePairClass MlViewNameValuePairClass ;
00038   
00039         struct _MlViewNameValuePair{
00040                 GtkObject parent_object ;
00041                 gchar * name ;
00042                 gchar *value ;
00043         };
00044   
00045         struct _MlViewNameValuePairClass{
00046                 GtkObjectClass object_class;    
00047         };
00048         /*the public methods*/
00049 #define MLVIEW_NAME_VALUE_PAIR_NAME(nvpair) nvpair->name ;
00050 #define MLVIEW_NAME_VALUE_PAIR_VALUE(nvpair) nvpair->value ;
00051         guint mlview_name_value_pair_get_type(void) ;
00052         GtkObject *mlview_name_value_pair_new(gchar *a_name,gchar *a_value) ;
00053         void mlview_name_value_pair_set_name(MlViewNameValuePair *a_nvpair, gchar *a_name) ;
00054         void mlview_name_value_pair_set_value(MlViewNameValuePair *a_nvpair, gchar *a_value) ;
00055   
00056 #ifdef __cplusplus
00057 }
00058 #endif /*__cplusplus*/
00059 #endif /*__MLVIEW_NAME_VALUE_PAIR_H__*/

Generated on Sat Jul 6 09:57:33 2002 for Gnome-MlView by doxygen1.2.16