/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ /* * GData Client * Copyright (C) Philip Withnall 2009–2010 * * GData Client is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * GData Client 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with GData Client. If not, see . */ #ifndef GDATA_GD_ORGANIZATION_H #define GDATA_GD_ORGANIZATION_H #include #include #include #include G_BEGIN_DECLS /** * GDATA_GD_ORGANIZATION_WORK: * * The relation type URI for a work organization. * * Since: 0.7.0 */ #define GDATA_GD_ORGANIZATION_WORK "http://schemas.google.com/g/2005#work" /** * GDATA_GD_ORGANIZATION_OTHER: * * The relation type URI for a miscellaneous organization. * * Since: 0.7.0 */ #define GDATA_GD_ORGANIZATION_OTHER "http://schemas.google.com/g/2005#other" #define GDATA_TYPE_GD_ORGANIZATION (gdata_gd_organization_get_type ()) #define GDATA_GD_ORGANIZATION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDATA_TYPE_GD_ORGANIZATION, GDataGDOrganization)) #define GDATA_GD_ORGANIZATION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GDATA_TYPE_GD_ORGANIZATION, GDataGDOrganizationClass)) #define GDATA_IS_GD_ORGANIZATION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDATA_TYPE_GD_ORGANIZATION)) #define GDATA_IS_GD_ORGANIZATION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GDATA_TYPE_GD_ORGANIZATION)) #define GDATA_GD_ORGANIZATION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDATA_TYPE_GD_ORGANIZATION, GDataGDOrganizationClass)) typedef struct _GDataGDOrganizationPrivate GDataGDOrganizationPrivate; /** * GDataGDOrganization: * * All the fields in the #GDataGDOrganization structure are private and should never be accessed directly. * * Since: 0.2.0 */ typedef struct { GDataParsable parent; GDataGDOrganizationPrivate *priv; } GDataGDOrganization; /** * GDataGDOrganizationClass: * * All the fields in the #GDataGDOrganizationClass structure are private and should never be accessed directly. * * Since: 0.4.0 */ typedef struct { /*< private >*/ GDataParsableClass parent; /*< private >*/ /* Padding for future expansion */ void (*_g_reserved0) (void); void (*_g_reserved1) (void); } GDataGDOrganizationClass; GType gdata_gd_organization_get_type (void) G_GNUC_CONST; GDataGDOrganization *gdata_gd_organization_new (const gchar *name, const gchar *title, const gchar *relation_type, const gchar *label, gboolean is_primary) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC; const gchar *gdata_gd_organization_get_name (GDataGDOrganization *self) G_GNUC_PURE; void gdata_gd_organization_set_name (GDataGDOrganization *self, const gchar *name); const gchar *gdata_gd_organization_get_title (GDataGDOrganization *self) G_GNUC_PURE; void gdata_gd_organization_set_title (GDataGDOrganization *self, const gchar *title); const gchar *gdata_gd_organization_get_relation_type (GDataGDOrganization *self) G_GNUC_PURE; void gdata_gd_organization_set_relation_type (GDataGDOrganization *self, const gchar *relation_type); const gchar *gdata_gd_organization_get_label (GDataGDOrganization *self) G_GNUC_PURE; void gdata_gd_organization_set_label (GDataGDOrganization *self, const gchar *label); gboolean gdata_gd_organization_is_primary (GDataGDOrganization *self) G_GNUC_PURE; void gdata_gd_organization_set_is_primary (GDataGDOrganization *self, gboolean is_primary); const gchar *gdata_gd_organization_get_department (GDataGDOrganization *self) G_GNUC_PURE; void gdata_gd_organization_set_department (GDataGDOrganization *self, const gchar *department); const gchar *gdata_gd_organization_get_job_description (GDataGDOrganization *self) G_GNUC_PURE; void gdata_gd_organization_set_job_description (GDataGDOrganization *self, const gchar *job_description); const gchar *gdata_gd_organization_get_symbol (GDataGDOrganization *self) G_GNUC_PURE; void gdata_gd_organization_set_symbol (GDataGDOrganization *self, const gchar *symbol); GDataGDWhere *gdata_gd_organization_get_location (GDataGDOrganization *self) G_GNUC_PURE; void gdata_gd_organization_set_location (GDataGDOrganization *self, GDataGDWhere *location); G_END_DECLS #endif /* !GDATA_GD_ORGANIZATION_H */