1 /* 2 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) 3 * Copyright (C) 2019 Red Hat, Inc. (www.redhat.com) 4 * 5 * This library is free software: you can redistribute it and/or modify it 6 * under the terms of the GNU Lesser General Public License as published by 7 * the Free Software Foundation. 8 * 9 * This library is distributed in the hope that it will be useful, but 10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License 12 * for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public License 15 * along with this library. If not, see <http://www.gnu.org/licenses/>. 16 * 17 */ 18 19 #if !defined (__LIBECAL_H_INSIDE__) && !defined (LIBECAL_COMPILATION) 20 #error "Only <libecal/libecal.h> should be included directly." 21 #endif 22 23 #ifndef E_CAL_COMPONENT_TEXT_H 24 #define E_CAL_COMPONENT_TEXT_H 25 26 #include <glib-object.h> 27 28 G_BEGIN_DECLS 29 30 /** 31 * ECalComponentText: 32 * 33 * Contains description string and an alternate representation URI 34 * for text properties. Use the functions below to work with it. 35 **/ 36 typedef struct _ECalComponentText ECalComponentText; 37 38 GType e_cal_component_text_get_type (void); 39 ECalComponentText * 40 e_cal_component_text_new (const gchar *value, 41 const gchar *altrep); 42 ECalComponentText * 43 e_cal_component_text_copy (const ECalComponentText *text); 44 void e_cal_component_text_free (gpointer text); /* ECalComponentText * */ 45 const gchar * e_cal_component_text_get_value (const ECalComponentText *text); 46 void e_cal_component_text_set_value (ECalComponentText *text, 47 const gchar *value); 48 const gchar * e_cal_component_text_get_altrep (const ECalComponentText *text); 49 void e_cal_component_text_set_altrep (ECalComponentText *text, 50 const gchar *altrep); 51 52 G_END_DECLS 53 54 #endif /* E_CAL_COMPONENT_TEXT_H */ 55