/* postal-address-details.c generated by valac 0.34.0.60-52f79, the Vala compiler
 * generated from postal-address-details.vala, do not modify */

/*
 * Copyright (C) 2010 Collabora Ltd.
 * Copyright (C) 2011 Philip Withnall
 *
 * This library 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.
 *
 * This library 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 this library.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Authors:
 *       Marco Barisione <marco.barisione@collabora.co.uk>
 *       Raul Gutierrez Segales <raul.gutierrez.segales@collabora.co.uk>
 *       Philip Withnall <philip@tecnocode.co.uk>
 */

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.h>
#include <gee.h>
#include <gio/gio.h>


#define FOLKS_TYPE_POSTAL_ADDRESS (folks_postal_address_get_type ())
#define FOLKS_POSTAL_ADDRESS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLKS_TYPE_POSTAL_ADDRESS, FolksPostalAddress))
#define FOLKS_POSTAL_ADDRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FOLKS_TYPE_POSTAL_ADDRESS, FolksPostalAddressClass))
#define FOLKS_IS_POSTAL_ADDRESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FOLKS_TYPE_POSTAL_ADDRESS))
#define FOLKS_IS_POSTAL_ADDRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FOLKS_TYPE_POSTAL_ADDRESS))
#define FOLKS_POSTAL_ADDRESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FOLKS_TYPE_POSTAL_ADDRESS, FolksPostalAddressClass))

typedef struct _FolksPostalAddress FolksPostalAddress;
typedef struct _FolksPostalAddressClass FolksPostalAddressClass;
typedef struct _FolksPostalAddressPrivate FolksPostalAddressPrivate;
#define _g_free0(var) (var = (g_free (var), NULL))

#define FOLKS_TYPE_ABSTRACT_FIELD_DETAILS (folks_abstract_field_details_get_type ())
#define FOLKS_ABSTRACT_FIELD_DETAILS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLKS_TYPE_ABSTRACT_FIELD_DETAILS, FolksAbstractFieldDetails))
#define FOLKS_ABSTRACT_FIELD_DETAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FOLKS_TYPE_ABSTRACT_FIELD_DETAILS, FolksAbstractFieldDetailsClass))
#define FOLKS_IS_ABSTRACT_FIELD_DETAILS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FOLKS_TYPE_ABSTRACT_FIELD_DETAILS))
#define FOLKS_IS_ABSTRACT_FIELD_DETAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FOLKS_TYPE_ABSTRACT_FIELD_DETAILS))
#define FOLKS_ABSTRACT_FIELD_DETAILS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FOLKS_TYPE_ABSTRACT_FIELD_DETAILS, FolksAbstractFieldDetailsClass))

typedef struct _FolksAbstractFieldDetails FolksAbstractFieldDetails;
typedef struct _FolksAbstractFieldDetailsClass FolksAbstractFieldDetailsClass;
typedef struct _FolksAbstractFieldDetailsPrivate FolksAbstractFieldDetailsPrivate;

#define FOLKS_TYPE_POSTAL_ADDRESS_FIELD_DETAILS (folks_postal_address_field_details_get_type ())
#define FOLKS_POSTAL_ADDRESS_FIELD_DETAILS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLKS_TYPE_POSTAL_ADDRESS_FIELD_DETAILS, FolksPostalAddressFieldDetails))
#define FOLKS_POSTAL_ADDRESS_FIELD_DETAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FOLKS_TYPE_POSTAL_ADDRESS_FIELD_DETAILS, FolksPostalAddressFieldDetailsClass))
#define FOLKS_IS_POSTAL_ADDRESS_FIELD_DETAILS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FOLKS_TYPE_POSTAL_ADDRESS_FIELD_DETAILS))
#define FOLKS_IS_POSTAL_ADDRESS_FIELD_DETAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FOLKS_TYPE_POSTAL_ADDRESS_FIELD_DETAILS))
#define FOLKS_POSTAL_ADDRESS_FIELD_DETAILS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FOLKS_TYPE_POSTAL_ADDRESS_FIELD_DETAILS, FolksPostalAddressFieldDetailsClass))

typedef struct _FolksPostalAddressFieldDetails FolksPostalAddressFieldDetails;
typedef struct _FolksPostalAddressFieldDetailsClass FolksPostalAddressFieldDetailsClass;
typedef struct _FolksPostalAddressFieldDetailsPrivate FolksPostalAddressFieldDetailsPrivate;

#define FOLKS_TYPE_POSTAL_ADDRESS_DETAILS (folks_postal_address_details_get_type ())
#define FOLKS_POSTAL_ADDRESS_DETAILS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLKS_TYPE_POSTAL_ADDRESS_DETAILS, FolksPostalAddressDetails))
#define FOLKS_IS_POSTAL_ADDRESS_DETAILS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FOLKS_TYPE_POSTAL_ADDRESS_DETAILS))
#define FOLKS_POSTAL_ADDRESS_DETAILS_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), FOLKS_TYPE_POSTAL_ADDRESS_DETAILS, FolksPostalAddressDetailsIface))

typedef struct _FolksPostalAddressDetails FolksPostalAddressDetails;
typedef struct _FolksPostalAddressDetailsIface FolksPostalAddressDetailsIface;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _FolksPostalAddressDetailsChangePostalAddressesData FolksPostalAddressDetailsChangePostalAddressesData;

struct _FolksPostalAddress {
	GObject parent_instance;
	FolksPostalAddressPrivate * priv;
};

struct _FolksPostalAddressClass {
	GObjectClass parent_class;
};

struct _FolksPostalAddressPrivate {
	gchar* _po_box;
	gchar* _extension;
	gchar* _street;
	gchar* _locality;
	gchar* _region;
	gchar* _postal_code;
	gchar* _country;
	gchar* _address_format;
	gchar* _uid;
};

struct _FolksAbstractFieldDetails {
	GObject parent_instance;
	FolksAbstractFieldDetailsPrivate * priv;
};

struct _FolksAbstractFieldDetailsClass {
	GObjectClass parent_class;
	gboolean (*equal) (FolksAbstractFieldDetails* self, FolksAbstractFieldDetails* that);
	gboolean (*parameters_equal) (FolksAbstractFieldDetails* self, FolksAbstractFieldDetails* that);
	gboolean (*values_equal) (FolksAbstractFieldDetails* self, FolksAbstractFieldDetails* that);
	guint (*hash) (FolksAbstractFieldDetails* self);
	gconstpointer (*get_value) (FolksAbstractFieldDetails* self);
	void (*set_value) (FolksAbstractFieldDetails* self, gconstpointer value);
	const gchar* (*get_id) (FolksAbstractFieldDetails* self);
	void (*set_id) (FolksAbstractFieldDetails* self, const gchar* value);
	GeeMultiMap* (*get_parameters) (FolksAbstractFieldDetails* self);
	void (*set_parameters) (FolksAbstractFieldDetails* self, GeeMultiMap* value);
};

struct _FolksPostalAddressFieldDetails {
	FolksAbstractFieldDetails parent_instance;
	FolksPostalAddressFieldDetailsPrivate * priv;
};

struct _FolksPostalAddressFieldDetailsClass {
	FolksAbstractFieldDetailsClass parent_class;
};

struct _FolksPostalAddressFieldDetailsPrivate {
	gchar* _id;
};

typedef enum  {
	FOLKS_PROPERTY_ERROR_NOT_WRITEABLE,
	FOLKS_PROPERTY_ERROR_INVALID_VALUE,
	FOLKS_PROPERTY_ERROR_UNKNOWN_ERROR,
	FOLKS_PROPERTY_ERROR_UNAVAILABLE
} FolksPropertyError;
#define FOLKS_PROPERTY_ERROR folks_property_error_quark ()
struct _FolksPostalAddressDetailsIface {
	GTypeInterface parent_iface;
	void (*change_postal_addresses) (FolksPostalAddressDetails* self, GeeSet* postal_addresses, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*change_postal_addresses_finish) (FolksPostalAddressDetails* self, GAsyncResult* _res_, GError** error);
	GeeSet* (*get_postal_addresses) (FolksPostalAddressDetails* self);
	void (*set_postal_addresses) (FolksPostalAddressDetails* self, GeeSet* value);
};

struct _FolksPostalAddressDetailsChangePostalAddressesData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	FolksPostalAddressDetails* self;
	GeeSet* postal_addresses;
	const gchar* _tmp0_;
	GError* _tmp1_;
	GError * _inner_error_;
};


static gpointer folks_postal_address_parent_class = NULL;
static gpointer folks_postal_address_field_details_parent_class = NULL;

GType folks_postal_address_get_type (void) G_GNUC_CONST;
#define FOLKS_POSTAL_ADDRESS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), FOLKS_TYPE_POSTAL_ADDRESS, FolksPostalAddressPrivate))
enum  {
	FOLKS_POSTAL_ADDRESS_DUMMY_PROPERTY,
	FOLKS_POSTAL_ADDRESS_PO_BOX,
	FOLKS_POSTAL_ADDRESS_EXTENSION,
	FOLKS_POSTAL_ADDRESS_STREET,
	FOLKS_POSTAL_ADDRESS_LOCALITY,
	FOLKS_POSTAL_ADDRESS_REGION,
	FOLKS_POSTAL_ADDRESS_POSTAL_CODE,
	FOLKS_POSTAL_ADDRESS_COUNTRY,
	FOLKS_POSTAL_ADDRESS_ADDRESS_FORMAT,
	FOLKS_POSTAL_ADDRESS_UID
};
FolksPostalAddress* folks_postal_address_new (const gchar* po_box, const gchar* extension, const gchar* street, const gchar* locality, const gchar* region, const gchar* postal_code, const gchar* country, const gchar* address_format, const gchar* uid);
FolksPostalAddress* folks_postal_address_construct (GType object_type, const gchar* po_box, const gchar* extension, const gchar* street, const gchar* locality, const gchar* region, const gchar* postal_code, const gchar* country, const gchar* address_format, const gchar* uid);
gboolean folks_postal_address_is_empty (FolksPostalAddress* self);
const gchar* folks_postal_address_get_po_box (FolksPostalAddress* self);
const gchar* folks_postal_address_get_extension (FolksPostalAddress* self);
const gchar* folks_postal_address_get_street (FolksPostalAddress* self);
const gchar* folks_postal_address_get_locality (FolksPostalAddress* self);
const gchar* folks_postal_address_get_region (FolksPostalAddress* self);
const gchar* folks_postal_address_get_postal_code (FolksPostalAddress* self);
const gchar* folks_postal_address_get_country (FolksPostalAddress* self);
const gchar* folks_postal_address_get_address_format (FolksPostalAddress* self);
gboolean folks_postal_address_equal (FolksPostalAddress* self, FolksPostalAddress* with);
gchar* folks_postal_address_to_string (FolksPostalAddress* self);
void folks_postal_address_set_po_box (FolksPostalAddress* self, const gchar* value);
void folks_postal_address_set_extension (FolksPostalAddress* self, const gchar* value);
void folks_postal_address_set_street (FolksPostalAddress* self, const gchar* value);
void folks_postal_address_set_locality (FolksPostalAddress* self, const gchar* value);
void folks_postal_address_set_region (FolksPostalAddress* self, const gchar* value);
void folks_postal_address_set_postal_code (FolksPostalAddress* self, const gchar* value);
void folks_postal_address_set_country (FolksPostalAddress* self, const gchar* value);
void folks_postal_address_set_address_format (FolksPostalAddress* self, const gchar* value);
const gchar* folks_postal_address_get_uid (FolksPostalAddress* self) G_GNUC_DEPRECATED;
void folks_postal_address_set_uid (FolksPostalAddress* self, const gchar* value) G_GNUC_DEPRECATED;
static void folks_postal_address_finalize (GObject* obj);
static void _vala_folks_postal_address_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_folks_postal_address_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
GType folks_abstract_field_details_get_type (void) G_GNUC_CONST;
GType folks_postal_address_field_details_get_type (void) G_GNUC_CONST;
#define FOLKS_POSTAL_ADDRESS_FIELD_DETAILS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), FOLKS_TYPE_POSTAL_ADDRESS_FIELD_DETAILS, FolksPostalAddressFieldDetailsPrivate))
enum  {
	FOLKS_POSTAL_ADDRESS_FIELD_DETAILS_DUMMY_PROPERTY,
	FOLKS_POSTAL_ADDRESS_FIELD_DETAILS_ID
};
FolksPostalAddressFieldDetails* folks_postal_address_field_details_new (FolksPostalAddress* value, GeeMultiMap* parameters);
FolksPostalAddressFieldDetails* folks_postal_address_field_details_construct (GType object_type, FolksPostalAddress* value, GeeMultiMap* parameters);
static gboolean folks_postal_address_field_details_real_equal (FolksAbstractFieldDetails* base, FolksAbstractFieldDetails* that);
gboolean folks_abstract_field_details_parameters_equal (FolksAbstractFieldDetails* self, FolksAbstractFieldDetails* that);
gconstpointer folks_abstract_field_details_get_value (FolksAbstractFieldDetails* self);
static guint folks_postal_address_field_details_real_hash (FolksAbstractFieldDetails* base);
static GObject * folks_postal_address_field_details_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static void _folks_postal_address_field_details___lambda4_ (FolksPostalAddressFieldDetails* self, GObject* s, GParamSpec* p);
const gchar* folks_abstract_field_details_get_id (FolksAbstractFieldDetails* self);
void folks_abstract_field_details_set_id (FolksAbstractFieldDetails* self, const gchar* value);
static void __folks_postal_address_field_details___lambda4__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void folks_postal_address_field_details_finalize (GObject* obj);
static void _vala_folks_postal_address_field_details_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_folks_postal_address_field_details_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
GQuark folks_property_error_quark (void);
GType folks_postal_address_details_get_type (void) G_GNUC_CONST;
static void folks_postal_address_details_real_change_postal_addresses_data_free (gpointer _data);
static void folks_postal_address_details_real_change_postal_addresses (FolksPostalAddressDetails* self, GeeSet* postal_addresses, GAsyncReadyCallback _callback_, gpointer _user_data_);
void folks_postal_address_details_change_postal_addresses (FolksPostalAddressDetails* self, GeeSet* postal_addresses, GAsyncReadyCallback _callback_, gpointer _user_data_);
void folks_postal_address_details_change_postal_addresses_finish (FolksPostalAddressDetails* self, GAsyncResult* _res_, GError** error);
static gboolean folks_postal_address_details_real_change_postal_addresses_co (FolksPostalAddressDetailsChangePostalAddressesData* _data_);
GeeSet* folks_postal_address_details_get_postal_addresses (FolksPostalAddressDetails* self);
void folks_postal_address_details_set_postal_addresses (FolksPostalAddressDetails* self, GeeSet* value);


/**
   * Create a PostalAddress.
   *
   * You can pass ``null`` if a component is not set.
   *
   * @param po_box the PO Box
   * @param extension the address extension
   * @param street the street name and number
   * @param locality the locality (city, town or village) name
   * @param region the region (state or province) name
   * @param postal_code the postal code
   * @param country the country name
   * @param address_format the address format
   * @param uid external UID for the address instance
   * @since 0.5.1
   */
FolksPostalAddress* folks_postal_address_construct (GType object_type, const gchar* po_box, const gchar* extension, const gchar* street, const gchar* locality, const gchar* region, const gchar* postal_code, const gchar* country, const gchar* address_format, const gchar* uid) {
	FolksPostalAddress * self = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
#line 165 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp0_ = po_box;
#line 165 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp1_ = extension;
#line 165 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp2_ = street;
#line 165 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp3_ = locality;
#line 165 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp4_ = region;
#line 165 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp5_ = postal_code;
#line 165 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp6_ = country;
#line 165 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp7_ = address_format;
#line 165 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp8_ = uid;
#line 165 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self = (FolksPostalAddress*) g_object_new (object_type, "po-box", _tmp0_, "extension", _tmp1_, "street", _tmp2_, "locality", _tmp3_, "region", _tmp4_, "postal-code", _tmp5_, "country", _tmp6_, "address-format", _tmp7_, "uid", _tmp8_, NULL);
#line 161 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return self;
#line 286 "postal-address-details.c"
}


FolksPostalAddress* folks_postal_address_new (const gchar* po_box, const gchar* extension, const gchar* street, const gchar* locality, const gchar* region, const gchar* postal_code, const gchar* country, const gchar* address_format, const gchar* uid) {
#line 161 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return folks_postal_address_construct (FOLKS_TYPE_POSTAL_ADDRESS, po_box, extension, street, locality, region, postal_code, country, address_format, uid);
#line 293 "postal-address-details.c"
}


/**
   * Whether none of the components is set.
   *
   * @return ``true`` if all the components are the empty string, ``false``
   * otherwise.
   *
   * @since 0.6.7
   */
gboolean folks_postal_address_is_empty (FolksPostalAddress* self) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	gboolean _tmp5_ = FALSE;
	gboolean _tmp6_ = FALSE;
	const gchar* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
#line 184 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 186 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp7_ = folks_postal_address_get_po_box (self);
#line 186 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp8_ = _tmp7_;
#line 186 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (g_strcmp0 (_tmp8_, "") == 0) {
#line 324 "postal-address-details.c"
		const gchar* _tmp9_ = NULL;
		const gchar* _tmp10_ = NULL;
#line 187 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp9_ = folks_postal_address_get_extension (self);
#line 187 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp10_ = _tmp9_;
#line 187 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp6_ = g_strcmp0 (_tmp10_, "") == 0;
#line 333 "postal-address-details.c"
	} else {
#line 186 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp6_ = FALSE;
#line 337 "postal-address-details.c"
	}
#line 186 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp6_) {
#line 341 "postal-address-details.c"
		const gchar* _tmp11_ = NULL;
		const gchar* _tmp12_ = NULL;
#line 188 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp11_ = folks_postal_address_get_street (self);
#line 188 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp12_ = _tmp11_;
#line 188 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp5_ = g_strcmp0 (_tmp12_, "") == 0;
#line 350 "postal-address-details.c"
	} else {
#line 186 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp5_ = FALSE;
#line 354 "postal-address-details.c"
	}
#line 186 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp5_) {
#line 358 "postal-address-details.c"
		const gchar* _tmp13_ = NULL;
		const gchar* _tmp14_ = NULL;
#line 189 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp13_ = folks_postal_address_get_locality (self);
#line 189 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp14_ = _tmp13_;
#line 189 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp4_ = g_strcmp0 (_tmp14_, "") == 0;
#line 367 "postal-address-details.c"
	} else {
#line 186 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp4_ = FALSE;
#line 371 "postal-address-details.c"
	}
#line 186 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp4_) {
#line 375 "postal-address-details.c"
		const gchar* _tmp15_ = NULL;
		const gchar* _tmp16_ = NULL;
#line 190 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp15_ = folks_postal_address_get_region (self);
#line 190 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp16_ = _tmp15_;
#line 190 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp3_ = g_strcmp0 (_tmp16_, "") == 0;
#line 384 "postal-address-details.c"
	} else {
#line 186 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp3_ = FALSE;
#line 388 "postal-address-details.c"
	}
#line 186 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp3_) {
#line 392 "postal-address-details.c"
		const gchar* _tmp17_ = NULL;
		const gchar* _tmp18_ = NULL;
#line 191 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp17_ = folks_postal_address_get_postal_code (self);
#line 191 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp18_ = _tmp17_;
#line 191 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp2_ = g_strcmp0 (_tmp18_, "") == 0;
#line 401 "postal-address-details.c"
	} else {
#line 186 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp2_ = FALSE;
#line 405 "postal-address-details.c"
	}
#line 186 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp2_) {
#line 409 "postal-address-details.c"
		const gchar* _tmp19_ = NULL;
		const gchar* _tmp20_ = NULL;
#line 192 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp19_ = folks_postal_address_get_country (self);
#line 192 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp20_ = _tmp19_;
#line 192 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp1_ = g_strcmp0 (_tmp20_, "") == 0;
#line 418 "postal-address-details.c"
	} else {
#line 186 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp1_ = FALSE;
#line 422 "postal-address-details.c"
	}
#line 186 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp1_) {
#line 426 "postal-address-details.c"
		const gchar* _tmp21_ = NULL;
		const gchar* _tmp22_ = NULL;
#line 193 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp21_ = folks_postal_address_get_address_format (self);
#line 193 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp22_ = _tmp21_;
#line 193 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = g_strcmp0 (_tmp22_, "") == 0;
#line 435 "postal-address-details.c"
	} else {
#line 186 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = FALSE;
#line 439 "postal-address-details.c"
	}
#line 186 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	result = _tmp0_;
#line 186 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return result;
#line 445 "postal-address-details.c"
}


/**
   * Compare if two postal addresses are equal. Addresses are equal if all their
   * components are equal (where ``null`` compares equal only with ``null``) and
   * they have the same set of types (or both have no types).
   *
   * This does not factor in the {@link PostalAddress.uid}.
   *
   * @param with another postal address to compare with
   * @return ``true`` if the addresses are equal, ``false`` otherwise
   */
gboolean folks_postal_address_equal (FolksPostalAddress* self, FolksPostalAddress* with) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	gboolean _tmp5_ = FALSE;
	gboolean _tmp6_ = FALSE;
	const gchar* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	FolksPostalAddress* _tmp9_ = NULL;
	const gchar* _tmp10_ = NULL;
	const gchar* _tmp11_ = NULL;
#line 206 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 206 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_val_if_fail (with != NULL, FALSE);
#line 208 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp7_ = folks_postal_address_get_po_box (self);
#line 208 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp8_ = _tmp7_;
#line 208 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp9_ = with;
#line 208 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp10_ = folks_postal_address_get_po_box (_tmp9_);
#line 208 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp11_ = _tmp10_;
#line 208 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (g_strcmp0 (_tmp8_, _tmp11_) != 0) {
#line 208 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp6_ = TRUE;
#line 491 "postal-address-details.c"
	} else {
		const gchar* _tmp12_ = NULL;
		const gchar* _tmp13_ = NULL;
		FolksPostalAddress* _tmp14_ = NULL;
		const gchar* _tmp15_ = NULL;
		const gchar* _tmp16_ = NULL;
#line 209 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp12_ = folks_postal_address_get_extension (self);
#line 209 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp13_ = _tmp12_;
#line 209 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp14_ = with;
#line 209 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp15_ = folks_postal_address_get_extension (_tmp14_);
#line 209 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp16_ = _tmp15_;
#line 209 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp6_ = g_strcmp0 (_tmp13_, _tmp16_) != 0;
#line 510 "postal-address-details.c"
	}
#line 208 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp6_) {
#line 208 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp5_ = TRUE;
#line 516 "postal-address-details.c"
	} else {
		const gchar* _tmp17_ = NULL;
		const gchar* _tmp18_ = NULL;
		FolksPostalAddress* _tmp19_ = NULL;
		const gchar* _tmp20_ = NULL;
		const gchar* _tmp21_ = NULL;
#line 210 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp17_ = folks_postal_address_get_street (self);
#line 210 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp18_ = _tmp17_;
#line 210 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp19_ = with;
#line 210 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp20_ = folks_postal_address_get_street (_tmp19_);
#line 210 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp21_ = _tmp20_;
#line 210 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp5_ = g_strcmp0 (_tmp18_, _tmp21_) != 0;
#line 535 "postal-address-details.c"
	}
#line 208 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp5_) {
#line 208 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp4_ = TRUE;
#line 541 "postal-address-details.c"
	} else {
		const gchar* _tmp22_ = NULL;
		const gchar* _tmp23_ = NULL;
		FolksPostalAddress* _tmp24_ = NULL;
		const gchar* _tmp25_ = NULL;
		const gchar* _tmp26_ = NULL;
#line 211 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp22_ = folks_postal_address_get_locality (self);
#line 211 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp23_ = _tmp22_;
#line 211 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp24_ = with;
#line 211 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp25_ = folks_postal_address_get_locality (_tmp24_);
#line 211 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp26_ = _tmp25_;
#line 211 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp4_ = g_strcmp0 (_tmp23_, _tmp26_) != 0;
#line 560 "postal-address-details.c"
	}
#line 208 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp4_) {
#line 208 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp3_ = TRUE;
#line 566 "postal-address-details.c"
	} else {
		const gchar* _tmp27_ = NULL;
		const gchar* _tmp28_ = NULL;
		FolksPostalAddress* _tmp29_ = NULL;
		const gchar* _tmp30_ = NULL;
		const gchar* _tmp31_ = NULL;
#line 212 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp27_ = folks_postal_address_get_region (self);
#line 212 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp28_ = _tmp27_;
#line 212 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp29_ = with;
#line 212 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp30_ = folks_postal_address_get_region (_tmp29_);
#line 212 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp31_ = _tmp30_;
#line 212 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp3_ = g_strcmp0 (_tmp28_, _tmp31_) != 0;
#line 585 "postal-address-details.c"
	}
#line 208 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp3_) {
#line 208 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp2_ = TRUE;
#line 591 "postal-address-details.c"
	} else {
		const gchar* _tmp32_ = NULL;
		const gchar* _tmp33_ = NULL;
		FolksPostalAddress* _tmp34_ = NULL;
		const gchar* _tmp35_ = NULL;
		const gchar* _tmp36_ = NULL;
#line 213 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp32_ = folks_postal_address_get_postal_code (self);
#line 213 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp33_ = _tmp32_;
#line 213 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp34_ = with;
#line 213 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp35_ = folks_postal_address_get_postal_code (_tmp34_);
#line 213 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp36_ = _tmp35_;
#line 213 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp2_ = g_strcmp0 (_tmp33_, _tmp36_) != 0;
#line 610 "postal-address-details.c"
	}
#line 208 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp2_) {
#line 208 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp1_ = TRUE;
#line 616 "postal-address-details.c"
	} else {
		const gchar* _tmp37_ = NULL;
		const gchar* _tmp38_ = NULL;
		FolksPostalAddress* _tmp39_ = NULL;
		const gchar* _tmp40_ = NULL;
		const gchar* _tmp41_ = NULL;
#line 214 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp37_ = folks_postal_address_get_country (self);
#line 214 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp38_ = _tmp37_;
#line 214 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp39_ = with;
#line 214 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp40_ = folks_postal_address_get_country (_tmp39_);
#line 214 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp41_ = _tmp40_;
#line 214 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp1_ = g_strcmp0 (_tmp38_, _tmp41_) != 0;
#line 635 "postal-address-details.c"
	}
#line 208 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp1_) {
#line 208 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = TRUE;
#line 641 "postal-address-details.c"
	} else {
		const gchar* _tmp42_ = NULL;
		const gchar* _tmp43_ = NULL;
		FolksPostalAddress* _tmp44_ = NULL;
		const gchar* _tmp45_ = NULL;
		const gchar* _tmp46_ = NULL;
#line 215 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp42_ = folks_postal_address_get_address_format (self);
#line 215 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp43_ = _tmp42_;
#line 215 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp44_ = with;
#line 215 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp45_ = folks_postal_address_get_address_format (_tmp44_);
#line 215 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp46_ = _tmp45_;
#line 215 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = g_strcmp0 (_tmp43_, _tmp46_) != 0;
#line 660 "postal-address-details.c"
	}
#line 208 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp0_) {
#line 216 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		result = FALSE;
#line 216 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		return result;
#line 668 "postal-address-details.c"
	}
#line 218 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	result = TRUE;
#line 218 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return result;
#line 674 "postal-address-details.c"
}


/**
   * Get a formatted version of the address. The format is localised, and by
   * default is comma-separated.
   *
   * @return a formatted address.
   *
   * @since 0.4.0
   */
gchar* folks_postal_address_to_string (FolksPostalAddress* self) {
	gchar* result = NULL;
	gchar* str = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	const gchar* _tmp10_ = NULL;
	const gchar* _tmp11_ = NULL;
	const gchar* _tmp12_ = NULL;
	const gchar* _tmp13_ = NULL;
	const gchar* _tmp14_ = NULL;
	const gchar* _tmp15_ = NULL;
	gchar* _tmp16_ = NULL;
#line 229 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 231 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp0_ = _ ("%s, %s, %s, %s, %s, %s, %s");
#line 231 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 231 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	str = _tmp1_;
#line 232 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp2_ = folks_postal_address_get_po_box (self);
#line 232 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp3_ = _tmp2_;
#line 232 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp4_ = folks_postal_address_get_extension (self);
#line 232 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp5_ = _tmp4_;
#line 232 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp6_ = folks_postal_address_get_street (self);
#line 232 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp7_ = _tmp6_;
#line 232 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp8_ = folks_postal_address_get_locality (self);
#line 232 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp9_ = _tmp8_;
#line 232 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp10_ = folks_postal_address_get_region (self);
#line 232 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp11_ = _tmp10_;
#line 232 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp12_ = folks_postal_address_get_postal_code (self);
#line 232 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp13_ = _tmp12_;
#line 232 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp14_ = folks_postal_address_get_country (self);
#line 232 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp15_ = _tmp14_;
#line 232 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp16_ = g_strdup_printf (str, _tmp3_, _tmp5_, _tmp7_, _tmp9_, _tmp11_, _tmp13_, _tmp15_);
#line 232 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	result = _tmp16_;
#line 232 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (str);
#line 232 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return result;
#line 750 "postal-address-details.c"
}


const gchar* folks_postal_address_get_po_box (FolksPostalAddress* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 43 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 43 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp0_ = self->priv->_po_box;
#line 43 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	result = _tmp0_;
#line 43 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return result;
#line 765 "postal-address-details.c"
}


void folks_postal_address_set_po_box (FolksPostalAddress* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp3_ = NULL;
#line 44 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_if_fail (self != NULL);
#line 44 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp1_ = value;
#line 44 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp1_ != NULL) {
#line 779 "postal-address-details.c"
		const gchar* _tmp2_ = NULL;
#line 44 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp2_ = value;
#line 44 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = _tmp2_;
#line 785 "postal-address-details.c"
	} else {
#line 44 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = "";
#line 789 "postal-address-details.c"
	}
#line 44 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp3_ = g_strdup (_tmp0_);
#line 44 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (self->priv->_po_box);
#line 44 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv->_po_box = _tmp3_;
#line 44 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_notify ((GObject *) self, "po-box");
#line 799 "postal-address-details.c"
}


const gchar* folks_postal_address_get_extension (FolksPostalAddress* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 55 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 55 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp0_ = self->priv->_extension;
#line 55 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	result = _tmp0_;
#line 55 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return result;
#line 814 "postal-address-details.c"
}


void folks_postal_address_set_extension (FolksPostalAddress* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp3_ = NULL;
#line 56 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_if_fail (self != NULL);
#line 56 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp1_ = value;
#line 56 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp1_ != NULL) {
#line 828 "postal-address-details.c"
		const gchar* _tmp2_ = NULL;
#line 56 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp2_ = value;
#line 56 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = _tmp2_;
#line 834 "postal-address-details.c"
	} else {
#line 56 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = "";
#line 838 "postal-address-details.c"
	}
#line 56 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp3_ = g_strdup (_tmp0_);
#line 56 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (self->priv->_extension);
#line 56 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv->_extension = _tmp3_;
#line 56 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_notify ((GObject *) self, "extension");
#line 848 "postal-address-details.c"
}


const gchar* folks_postal_address_get_street (FolksPostalAddress* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 69 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 69 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp0_ = self->priv->_street;
#line 69 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	result = _tmp0_;
#line 69 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return result;
#line 863 "postal-address-details.c"
}


void folks_postal_address_set_street (FolksPostalAddress* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp3_ = NULL;
#line 70 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_if_fail (self != NULL);
#line 70 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp1_ = value;
#line 70 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp1_ != NULL) {
#line 877 "postal-address-details.c"
		const gchar* _tmp2_ = NULL;
#line 70 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp2_ = value;
#line 70 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = _tmp2_;
#line 883 "postal-address-details.c"
	} else {
#line 70 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = "";
#line 887 "postal-address-details.c"
	}
#line 70 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp3_ = g_strdup (_tmp0_);
#line 70 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (self->priv->_street);
#line 70 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv->_street = _tmp3_;
#line 70 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_notify ((GObject *) self, "street");
#line 897 "postal-address-details.c"
}


const gchar* folks_postal_address_get_locality (FolksPostalAddress* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 81 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 81 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp0_ = self->priv->_locality;
#line 81 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	result = _tmp0_;
#line 81 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return result;
#line 912 "postal-address-details.c"
}


void folks_postal_address_set_locality (FolksPostalAddress* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp3_ = NULL;
#line 82 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_if_fail (self != NULL);
#line 82 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp1_ = value;
#line 82 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp1_ != NULL) {
#line 926 "postal-address-details.c"
		const gchar* _tmp2_ = NULL;
#line 82 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp2_ = value;
#line 82 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = _tmp2_;
#line 932 "postal-address-details.c"
	} else {
#line 82 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = "";
#line 936 "postal-address-details.c"
	}
#line 82 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp3_ = g_strdup (_tmp0_);
#line 82 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (self->priv->_locality);
#line 82 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv->_locality = _tmp3_;
#line 82 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_notify ((GObject *) self, "locality");
#line 946 "postal-address-details.c"
}


const gchar* folks_postal_address_get_region (FolksPostalAddress* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 93 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 93 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp0_ = self->priv->_region;
#line 93 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	result = _tmp0_;
#line 93 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return result;
#line 961 "postal-address-details.c"
}


void folks_postal_address_set_region (FolksPostalAddress* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp3_ = NULL;
#line 94 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_if_fail (self != NULL);
#line 94 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp1_ = value;
#line 94 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp1_ != NULL) {
#line 975 "postal-address-details.c"
		const gchar* _tmp2_ = NULL;
#line 94 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp2_ = value;
#line 94 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = _tmp2_;
#line 981 "postal-address-details.c"
	} else {
#line 94 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = "";
#line 985 "postal-address-details.c"
	}
#line 94 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp3_ = g_strdup (_tmp0_);
#line 94 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (self->priv->_region);
#line 94 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv->_region = _tmp3_;
#line 94 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_notify ((GObject *) self, "region");
#line 995 "postal-address-details.c"
}


const gchar* folks_postal_address_get_postal_code (FolksPostalAddress* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 105 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 105 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp0_ = self->priv->_postal_code;
#line 105 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	result = _tmp0_;
#line 105 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return result;
#line 1010 "postal-address-details.c"
}


void folks_postal_address_set_postal_code (FolksPostalAddress* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp3_ = NULL;
#line 106 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_if_fail (self != NULL);
#line 106 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp1_ = value;
#line 106 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp1_ != NULL) {
#line 1024 "postal-address-details.c"
		const gchar* _tmp2_ = NULL;
#line 106 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp2_ = value;
#line 106 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = _tmp2_;
#line 1030 "postal-address-details.c"
	} else {
#line 106 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = "";
#line 1034 "postal-address-details.c"
	}
#line 106 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp3_ = g_strdup (_tmp0_);
#line 106 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (self->priv->_postal_code);
#line 106 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv->_postal_code = _tmp3_;
#line 106 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_notify ((GObject *) self, "postal-code");
#line 1044 "postal-address-details.c"
}


const gchar* folks_postal_address_get_country (FolksPostalAddress* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 117 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 117 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp0_ = self->priv->_country;
#line 117 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	result = _tmp0_;
#line 117 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return result;
#line 1059 "postal-address-details.c"
}


void folks_postal_address_set_country (FolksPostalAddress* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp3_ = NULL;
#line 118 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_if_fail (self != NULL);
#line 118 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp1_ = value;
#line 118 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp1_ != NULL) {
#line 1073 "postal-address-details.c"
		const gchar* _tmp2_ = NULL;
#line 118 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp2_ = value;
#line 118 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = _tmp2_;
#line 1079 "postal-address-details.c"
	} else {
#line 118 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = "";
#line 1083 "postal-address-details.c"
	}
#line 118 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp3_ = g_strdup (_tmp0_);
#line 118 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (self->priv->_country);
#line 118 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv->_country = _tmp3_;
#line 118 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_notify ((GObject *) self, "country");
#line 1093 "postal-address-details.c"
}


const gchar* folks_postal_address_get_address_format (FolksPostalAddress* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 130 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 130 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp0_ = self->priv->_address_format;
#line 130 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	result = _tmp0_;
#line 130 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return result;
#line 1108 "postal-address-details.c"
}


void folks_postal_address_set_address_format (FolksPostalAddress* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp3_ = NULL;
#line 131 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_if_fail (self != NULL);
#line 131 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp1_ = value;
#line 131 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp1_ != NULL) {
#line 1122 "postal-address-details.c"
		const gchar* _tmp2_ = NULL;
#line 131 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp2_ = value;
#line 131 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = _tmp2_;
#line 1128 "postal-address-details.c"
	} else {
#line 131 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = "";
#line 1132 "postal-address-details.c"
	}
#line 131 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp3_ = g_strdup (_tmp0_);
#line 131 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (self->priv->_address_format);
#line 131 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv->_address_format = _tmp3_;
#line 131 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_notify ((GObject *) self, "address-format");
#line 1142 "postal-address-details.c"
}


const gchar* folks_postal_address_get_uid (FolksPostalAddress* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 141 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 141 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp0_ = self->priv->_uid;
#line 141 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	result = _tmp0_;
#line 141 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return result;
#line 1157 "postal-address-details.c"
}


void folks_postal_address_set_uid (FolksPostalAddress* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp3_ = NULL;
#line 142 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_if_fail (self != NULL);
#line 142 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp1_ = value;
#line 142 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp1_ != NULL) {
#line 1171 "postal-address-details.c"
		const gchar* _tmp2_ = NULL;
#line 142 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp2_ = value;
#line 142 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = _tmp2_;
#line 1177 "postal-address-details.c"
	} else {
#line 142 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = "";
#line 1181 "postal-address-details.c"
	}
#line 142 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp3_ = g_strdup (_tmp0_);
#line 142 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (self->priv->_uid);
#line 142 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv->_uid = _tmp3_;
#line 142 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_notify ((GObject *) self, "uid");
#line 1191 "postal-address-details.c"
}


static void folks_postal_address_class_init (FolksPostalAddressClass * klass) {
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	folks_postal_address_parent_class = g_type_class_peek_parent (klass);
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_type_class_add_private (klass, sizeof (FolksPostalAddressPrivate));
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_folks_postal_address_get_property;
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_folks_postal_address_set_property;
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	G_OBJECT_CLASS (klass)->finalize = folks_postal_address_finalize;
#line 1206 "postal-address-details.c"
	/**
	   * The PO Box.
	   *
	   * The PO Box (also known as Postal office box or Postal box).
	   */
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), FOLKS_POSTAL_ADDRESS_PO_BOX, g_param_spec_string ("po-box", "po-box", "po-box", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 1214 "postal-address-details.c"
	/**
	   * The address extension.
	   *
	   * Any additional part of the address, for instance a flat number.
	   */
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), FOLKS_POSTAL_ADDRESS_EXTENSION, g_param_spec_string ("extension", "extension", "extension", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 1222 "postal-address-details.c"
	/**
	   * The street name and number.
	   *
	   * The street name including the optional building number.
	   * The number can be before or after the street name based on the
	   * language and country.
	   */
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), FOLKS_POSTAL_ADDRESS_STREET, g_param_spec_string ("street", "street", "street", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 1232 "postal-address-details.c"
	/**
	   * The locality.
	   *
	   * The locality, for instance the city name.
	   */
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), FOLKS_POSTAL_ADDRESS_LOCALITY, g_param_spec_string ("locality", "locality", "locality", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 1240 "postal-address-details.c"
	/**
	   * The region.
	   *
	   * The region, for instance the name of the state or province.
	   */
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), FOLKS_POSTAL_ADDRESS_REGION, g_param_spec_string ("region", "region", "region", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 1248 "postal-address-details.c"
	/**
	   * The postal code.
	   *
	   * The postal code (also known as post code, postcode or ZIP code).
	   */
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), FOLKS_POSTAL_ADDRESS_POSTAL_CODE, g_param_spec_string ("postal-code", "postal-code", "postal-code", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 1256 "postal-address-details.c"
	/**
	   * The country.
	   *
	   * The name of the country.
	   */
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), FOLKS_POSTAL_ADDRESS_COUNTRY, g_param_spec_string ("country", "country", "country", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 1264 "postal-address-details.c"
	/**
	   * The address format.
	   *
	   * The two letter country code that determines the format or exact
	   * meaning of the other fields.
	   */
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), FOLKS_POSTAL_ADDRESS_ADDRESS_FORMAT, g_param_spec_string ("address-format", "address-format", "address-format", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 1273 "postal-address-details.c"
	/**
	   * The UID of the Postal Address (if any).
	   */
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), FOLKS_POSTAL_ADDRESS_UID, g_param_spec_string ("uid", "uid", "uid", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT | G_PARAM_DEPRECATED));
#line 1279 "postal-address-details.c"
}


static void folks_postal_address_instance_init (FolksPostalAddress * self) {
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv = FOLKS_POSTAL_ADDRESS_GET_PRIVATE (self);
#line 35 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp0_ = g_strdup ("");
#line 35 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv->_po_box = _tmp0_;
#line 47 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp1_ = g_strdup ("");
#line 47 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv->_extension = _tmp1_;
#line 59 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp2_ = g_strdup ("");
#line 59 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv->_street = _tmp2_;
#line 73 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp3_ = g_strdup ("");
#line 73 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv->_locality = _tmp3_;
#line 85 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp4_ = g_strdup ("");
#line 85 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv->_region = _tmp4_;
#line 97 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp5_ = g_strdup ("");
#line 97 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv->_postal_code = _tmp5_;
#line 109 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp6_ = g_strdup ("");
#line 109 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv->_country = _tmp6_;
#line 121 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp7_ = g_strdup ("");
#line 121 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv->_address_format = _tmp7_;
#line 134 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp8_ = g_strdup ("");
#line 134 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv->_uid = _tmp8_;
#line 1331 "postal-address-details.c"
}


static void folks_postal_address_finalize (GObject* obj) {
	FolksPostalAddress * self;
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, FOLKS_TYPE_POSTAL_ADDRESS, FolksPostalAddress);
#line 35 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (self->priv->_po_box);
#line 47 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (self->priv->_extension);
#line 59 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (self->priv->_street);
#line 73 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (self->priv->_locality);
#line 85 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (self->priv->_region);
#line 97 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (self->priv->_postal_code);
#line 109 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (self->priv->_country);
#line 121 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (self->priv->_address_format);
#line 134 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (self->priv->_uid);
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	G_OBJECT_CLASS (folks_postal_address_parent_class)->finalize (obj);
#line 1359 "postal-address-details.c"
}


/**
 * Object representing a postal mail address.
 *
 * The components of the address are never ``null``: an empty string
 * indicates that a property is not set.
 */
GType folks_postal_address_get_type (void) {
	static volatile gsize folks_postal_address_type_id__volatile = 0;
	if (g_once_init_enter (&folks_postal_address_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (FolksPostalAddressClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) folks_postal_address_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FolksPostalAddress), 0, (GInstanceInitFunc) folks_postal_address_instance_init, NULL };
		GType folks_postal_address_type_id;
		folks_postal_address_type_id = g_type_register_static (G_TYPE_OBJECT, "FolksPostalAddress", &g_define_type_info, 0);
		g_once_init_leave (&folks_postal_address_type_id__volatile, folks_postal_address_type_id);
	}
	return folks_postal_address_type_id__volatile;
}


static void _vala_folks_postal_address_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	FolksPostalAddress * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, FOLKS_TYPE_POSTAL_ADDRESS, FolksPostalAddress);
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	switch (property_id) {
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case FOLKS_POSTAL_ADDRESS_PO_BOX:
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		g_value_set_string (value, folks_postal_address_get_po_box (self));
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case FOLKS_POSTAL_ADDRESS_EXTENSION:
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		g_value_set_string (value, folks_postal_address_get_extension (self));
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case FOLKS_POSTAL_ADDRESS_STREET:
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		g_value_set_string (value, folks_postal_address_get_street (self));
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case FOLKS_POSTAL_ADDRESS_LOCALITY:
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		g_value_set_string (value, folks_postal_address_get_locality (self));
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case FOLKS_POSTAL_ADDRESS_REGION:
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		g_value_set_string (value, folks_postal_address_get_region (self));
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case FOLKS_POSTAL_ADDRESS_POSTAL_CODE:
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		g_value_set_string (value, folks_postal_address_get_postal_code (self));
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case FOLKS_POSTAL_ADDRESS_COUNTRY:
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		g_value_set_string (value, folks_postal_address_get_country (self));
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case FOLKS_POSTAL_ADDRESS_ADDRESS_FORMAT:
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		g_value_set_string (value, folks_postal_address_get_address_format (self));
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case FOLKS_POSTAL_ADDRESS_UID:
G_GNUC_BEGIN_IGNORE_DEPRECATIONS#line 1436 "postal-address-details.c"
		g_value_set_string (value, folks_postal_address_get_uid (self));
G_GNUC_END_IGNORE_DEPRECATIONS
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 1441 "postal-address-details.c"
		default:
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 1447 "postal-address-details.c"
	}
}


static void _vala_folks_postal_address_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	FolksPostalAddress * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, FOLKS_TYPE_POSTAL_ADDRESS, FolksPostalAddress);
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	switch (property_id) {
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case FOLKS_POSTAL_ADDRESS_PO_BOX:
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		folks_postal_address_set_po_box (self, g_value_get_string (value));
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case FOLKS_POSTAL_ADDRESS_EXTENSION:
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		folks_postal_address_set_extension (self, g_value_get_string (value));
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case FOLKS_POSTAL_ADDRESS_STREET:
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		folks_postal_address_set_street (self, g_value_get_string (value));
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case FOLKS_POSTAL_ADDRESS_LOCALITY:
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		folks_postal_address_set_locality (self, g_value_get_string (value));
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case FOLKS_POSTAL_ADDRESS_REGION:
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		folks_postal_address_set_region (self, g_value_get_string (value));
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case FOLKS_POSTAL_ADDRESS_POSTAL_CODE:
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		folks_postal_address_set_postal_code (self, g_value_get_string (value));
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case FOLKS_POSTAL_ADDRESS_COUNTRY:
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		folks_postal_address_set_country (self, g_value_get_string (value));
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case FOLKS_POSTAL_ADDRESS_ADDRESS_FORMAT:
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		folks_postal_address_set_address_format (self, g_value_get_string (value));
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case FOLKS_POSTAL_ADDRESS_UID:
G_GNUC_BEGIN_IGNORE_DEPRECATIONS#line 1507 "postal-address-details.c"
		folks_postal_address_set_uid (self, g_value_get_string (value));
G_GNUC_END_IGNORE_DEPRECATIONS
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 1512 "postal-address-details.c"
		default:
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 33 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 1518 "postal-address-details.c"
	}
}


/**
   * Create a new PostalAddressFieldDetails.
   *
   * @param value the value of the field, a non-empty {@link PostalAddress}
   * @param parameters initial parameters. See
   * {@link AbstractFieldDetails.parameters}. A ``null`` value is equivalent to
   * an empty map of parameters.
   *
   *
   * @return a new PostalAddressFieldDetails
   *
   * @since 0.6.0
   */
FolksPostalAddressFieldDetails* folks_postal_address_field_details_construct (GType object_type, FolksPostalAddress* value, GeeMultiMap* parameters) {
	FolksPostalAddressFieldDetails * self = NULL;
	FolksPostalAddress* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	FolksPostalAddress* _tmp2_ = NULL;
	GeeMultiMap* _tmp3_ = NULL;
	FolksPostalAddress* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
#line 279 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_val_if_fail (value != NULL, NULL);
#line 282 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp0_ = value;
#line 282 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp1_ = folks_postal_address_is_empty (_tmp0_);
#line 282 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp1_) {
#line 284 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		g_warning ("postal-address-details.vala:284: Empty postal address passed to Postal" \
"AddressFieldDetails.");
#line 1555 "postal-address-details.c"
	}
#line 288 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp2_ = value;
#line 288 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp3_ = parameters;
#line 288 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp4_ = value;
#line 288 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp5_ = folks_postal_address_get_uid (_tmp4_);
#line 288 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp6_ = _tmp5_;
#line 288 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self = (FolksPostalAddressFieldDetails*) g_object_new (object_type, "t_type", FOLKS_TYPE_POSTAL_ADDRESS, "t_dup_func", (GBoxedCopyFunc) g_object_ref, "t_destroy_func", g_object_unref, "value", _tmp2_, "parameters", _tmp3_, "id", _tmp6_, NULL);
#line 279 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return self;
#line 1571 "postal-address-details.c"
}


FolksPostalAddressFieldDetails* folks_postal_address_field_details_new (FolksPostalAddress* value, GeeMultiMap* parameters) {
#line 279 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return folks_postal_address_field_details_construct (FOLKS_TYPE_POSTAL_ADDRESS_FIELD_DETAILS, value, parameters);
#line 1578 "postal-address-details.c"
}


/**
   * {@inheritDoc}
   *
   * @since 0.6.0
   */
static gboolean folks_postal_address_field_details_real_equal (FolksAbstractFieldDetails* base, FolksAbstractFieldDetails* that) {
	FolksPostalAddressFieldDetails * self;
	gboolean result = FALSE;
	FolksAbstractFieldDetails* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gconstpointer _tmp2_ = NULL;
	FolksPostalAddress* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	FolksAbstractFieldDetails* _tmp6_ = NULL;
	gconstpointer _tmp7_ = NULL;
	FolksPostalAddress* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gboolean _tmp11_ = FALSE;
#line 308 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self = (FolksPostalAddressFieldDetails*) base;
#line 308 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_val_if_fail (that != NULL, FALSE);
#line 310 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp0_ = that;
#line 310 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp1_ = FOLKS_ABSTRACT_FIELD_DETAILS_CLASS (folks_postal_address_field_details_parent_class)->parameters_equal (G_TYPE_CHECK_INSTANCE_CAST (self, FOLKS_TYPE_ABSTRACT_FIELD_DETAILS, FolksAbstractFieldDetails), _tmp0_);
#line 310 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (!_tmp1_) {
#line 311 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		result = FALSE;
#line 311 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		return result;
#line 1616 "postal-address-details.c"
	}
#line 314 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp2_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) self);
#line 314 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp3_ = _tmp2_;
#line 314 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp4_ = folks_postal_address_to_string ((FolksPostalAddress*) _tmp3_);
#line 314 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp5_ = _tmp4_;
#line 314 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp6_ = that;
#line 314 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp7_ = folks_abstract_field_details_get_value (_tmp6_);
#line 314 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp8_ = _tmp7_;
#line 314 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp9_ = folks_postal_address_to_string ((FolksPostalAddress*) _tmp8_);
#line 314 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp10_ = _tmp9_;
#line 314 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp11_ = g_strcmp0 (_tmp5_, _tmp10_) == 0;
#line 314 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (_tmp10_);
#line 314 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (_tmp5_);
#line 314 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	result = _tmp11_;
#line 314 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return result;
#line 1646 "postal-address-details.c"
}


/**
   * {@inheritDoc}
   *
   * @since 0.6.0
   */
static guint folks_postal_address_field_details_real_hash (FolksAbstractFieldDetails* base) {
	FolksPostalAddressFieldDetails * self;
	guint result = 0U;
	GHashFunc _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
	FolksPostalAddress* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	guint _tmp5_ = 0U;
	guint _tmp6_ = 0U;
#line 322 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self = (FolksPostalAddressFieldDetails*) base;
#line 325 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp0_ = g_str_hash;
#line 325 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp1_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) self);
#line 325 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp2_ = _tmp1_;
#line 325 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp3_ = folks_postal_address_to_string ((FolksPostalAddress*) _tmp2_);
#line 325 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp4_ = _tmp3_;
#line 325 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp5_ = _tmp0_ (_tmp4_);
#line 325 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp6_ = _tmp5_;
#line 325 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (_tmp4_);
#line 325 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	result = _tmp6_;
#line 325 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return result;
#line 1687 "postal-address-details.c"
}


static const gchar* folks_postal_address_field_details_real_get_id (FolksAbstractFieldDetails* base) {
	const gchar* result;
	FolksPostalAddressFieldDetails* self;
	const gchar* _tmp0_ = NULL;
#line 255 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self = (FolksPostalAddressFieldDetails*) base;
#line 255 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp0_ = self->priv->_id;
#line 255 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	result = _tmp0_;
#line 255 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return result;
#line 1703 "postal-address-details.c"
}


static void folks_postal_address_field_details_real_set_id (FolksAbstractFieldDetails* base, const gchar* value) {
	FolksPostalAddressFieldDetails* self;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	gconstpointer _tmp5_ = NULL;
	FolksPostalAddress* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
#line 256 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self = (FolksPostalAddressFieldDetails*) base;
#line 258 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp1_ = value;
#line 258 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_tmp1_ != NULL) {
#line 1723 "postal-address-details.c"
		const gchar* _tmp2_ = NULL;
#line 258 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp2_ = value;
#line 258 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = _tmp2_;
#line 1729 "postal-address-details.c"
	} else {
#line 258 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp0_ = "";
#line 1733 "postal-address-details.c"
	}
#line 258 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp3_ = g_strdup (_tmp0_);
#line 258 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (self->priv->_id);
#line 258 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv->_id = _tmp3_;
#line 261 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp4_ = self->priv->_id;
#line 261 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp5_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) self);
#line 261 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp6_ = _tmp5_;
#line 261 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp7_ = folks_postal_address_get_uid ((FolksPostalAddress*) _tmp6_);
#line 261 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp8_ = _tmp7_;
#line 261 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (g_strcmp0 (_tmp4_, _tmp8_) != 0) {
#line 1753 "postal-address-details.c"
		gconstpointer _tmp9_ = NULL;
		FolksPostalAddress* _tmp10_ = NULL;
		const gchar* _tmp11_ = NULL;
#line 262 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp9_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) self);
#line 262 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp10_ = _tmp9_;
#line 262 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp11_ = self->priv->_id;
#line 262 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		folks_postal_address_set_uid ((FolksPostalAddress*) _tmp10_, _tmp11_);
#line 1765 "postal-address-details.c"
	}
#line 256 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_notify ((GObject *) self, "id");
#line 1769 "postal-address-details.c"
}


static void _folks_postal_address_field_details___lambda4_ (FolksPostalAddressFieldDetails* self, GObject* s, GParamSpec* p) {
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gconstpointer _tmp2_ = NULL;
	FolksPostalAddress* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
#line 296 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_if_fail (s != NULL);
#line 296 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_if_fail (p != NULL);
#line 298 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp0_ = folks_abstract_field_details_get_id ((FolksAbstractFieldDetails*) self);
#line 298 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp1_ = _tmp0_;
#line 298 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp2_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) self);
#line 298 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp3_ = _tmp2_;
#line 298 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp4_ = folks_postal_address_get_uid ((FolksPostalAddress*) _tmp3_);
#line 298 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp5_ = _tmp4_;
#line 298 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (g_strcmp0 (_tmp1_, _tmp5_) != 0) {
#line 1798 "postal-address-details.c"
		gconstpointer _tmp6_ = NULL;
		FolksPostalAddress* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
#line 299 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp6_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) self);
#line 299 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp7_ = _tmp6_;
#line 299 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp8_ = folks_postal_address_get_uid ((FolksPostalAddress*) _tmp7_);
#line 299 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		_tmp9_ = _tmp8_;
#line 299 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		folks_abstract_field_details_set_id ((FolksAbstractFieldDetails*) self, _tmp9_);
#line 1813 "postal-address-details.c"
	}
}


static void __folks_postal_address_field_details___lambda4__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 296 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_folks_postal_address_field_details___lambda4_ ((FolksPostalAddressFieldDetails*) self, _sender, pspec);
#line 1821 "postal-address-details.c"
}


static GObject * folks_postal_address_field_details_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	FolksPostalAddressFieldDetails * self;
	gconstpointer _tmp0_ = NULL;
	FolksPostalAddress* _tmp1_ = NULL;
#line 293 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	parent_class = G_OBJECT_CLASS (folks_postal_address_field_details_parent_class);
#line 293 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 293 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, FOLKS_TYPE_POSTAL_ADDRESS_FIELD_DETAILS, FolksPostalAddressFieldDetails);
#line 296 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp0_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) self);
#line 296 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp1_ = _tmp0_;
#line 296 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_signal_connect_object ((GObject*) ((FolksPostalAddress*) _tmp1_), "notify::uid", (GCallback) __folks_postal_address_field_details___lambda4__g_object_notify, self, 0);
#line 293 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return obj;
#line 1845 "postal-address-details.c"
}


static void folks_postal_address_field_details_class_init (FolksPostalAddressFieldDetailsClass * klass) {
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	folks_postal_address_field_details_parent_class = g_type_class_peek_parent (klass);
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_type_class_add_private (klass, sizeof (FolksPostalAddressFieldDetailsPrivate));
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	((FolksAbstractFieldDetailsClass *) klass)->equal = folks_postal_address_field_details_real_equal;
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	((FolksAbstractFieldDetailsClass *) klass)->hash = folks_postal_address_field_details_real_hash;
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	FOLKS_ABSTRACT_FIELD_DETAILS_CLASS (klass)->get_id = folks_postal_address_field_details_real_get_id;
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	FOLKS_ABSTRACT_FIELD_DETAILS_CLASS (klass)->set_id = folks_postal_address_field_details_real_set_id;
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_folks_postal_address_field_details_get_property;
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_folks_postal_address_field_details_set_property;
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	G_OBJECT_CLASS (klass)->constructor = folks_postal_address_field_details_constructor;
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	G_OBJECT_CLASS (klass)->finalize = folks_postal_address_field_details_finalize;
#line 1870 "postal-address-details.c"
	/**
	   * {@inheritDoc}
	   */
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), FOLKS_POSTAL_ADDRESS_FIELD_DETAILS_ID, g_param_spec_string ("id", "id", "id", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 1876 "postal-address-details.c"
}


static void folks_postal_address_field_details_instance_init (FolksPostalAddressFieldDetails * self) {
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self->priv = FOLKS_POSTAL_ADDRESS_FIELD_DETAILS_GET_PRIVATE (self);
#line 1883 "postal-address-details.c"
}


static void folks_postal_address_field_details_finalize (GObject* obj) {
	FolksPostalAddressFieldDetails * self;
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, FOLKS_TYPE_POSTAL_ADDRESS_FIELD_DETAILS, FolksPostalAddressFieldDetails);
#line 249 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_free0 (self->priv->_id);
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	G_OBJECT_CLASS (folks_postal_address_field_details_parent_class)->finalize (obj);
#line 1895 "postal-address-details.c"
}


/**
 * Object representing a PostalAddress value that can have some parameters
 * associated with it.
 *
 * See {@link Folks.AbstractFieldDetails} for details on common parameter names
 * and values.
 *
 * @since 0.6.0
 */
GType folks_postal_address_field_details_get_type (void) {
	static volatile gsize folks_postal_address_field_details_type_id__volatile = 0;
	if (g_once_init_enter (&folks_postal_address_field_details_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (FolksPostalAddressFieldDetailsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) folks_postal_address_field_details_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FolksPostalAddressFieldDetails), 0, (GInstanceInitFunc) folks_postal_address_field_details_instance_init, NULL };
		GType folks_postal_address_field_details_type_id;
		folks_postal_address_field_details_type_id = g_type_register_static (FOLKS_TYPE_ABSTRACT_FIELD_DETAILS, "FolksPostalAddressFieldDetails", &g_define_type_info, 0);
		g_once_init_leave (&folks_postal_address_field_details_type_id__volatile, folks_postal_address_field_details_type_id);
	}
	return folks_postal_address_field_details_type_id__volatile;
}


static void _vala_folks_postal_address_field_details_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	FolksPostalAddressFieldDetails * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, FOLKS_TYPE_POSTAL_ADDRESS_FIELD_DETAILS, FolksPostalAddressFieldDetails);
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	switch (property_id) {
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case FOLKS_POSTAL_ADDRESS_FIELD_DETAILS_ID:
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		g_value_set_string (value, folks_abstract_field_details_get_id ((FolksAbstractFieldDetails*) self));
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 1931 "postal-address-details.c"
		default:
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 1937 "postal-address-details.c"
	}
}


static void _vala_folks_postal_address_field_details_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	FolksPostalAddressFieldDetails * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, FOLKS_TYPE_POSTAL_ADDRESS_FIELD_DETAILS, FolksPostalAddressFieldDetails);
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	switch (property_id) {
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case FOLKS_POSTAL_ADDRESS_FIELD_DETAILS_ID:
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		folks_abstract_field_details_set_id ((FolksAbstractFieldDetails*) self, g_value_get_string (value));
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 1953 "postal-address-details.c"
		default:
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 246 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		break;
#line 1959 "postal-address-details.c"
	}
}


static void folks_postal_address_details_real_change_postal_addresses_data_free (gpointer _data) {
	FolksPostalAddressDetailsChangePostalAddressesData* _data_;
	_data_ = _data;
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_object_unref0 (_data_->postal_addresses);
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_object_unref0 (_data_->self);
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_slice_free (FolksPostalAddressDetailsChangePostalAddressesData, _data_);
#line 1973 "postal-address-details.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return self ? g_object_ref (self) : NULL;
#line 1980 "postal-address-details.c"
}


static void folks_postal_address_details_real_change_postal_addresses (FolksPostalAddressDetails* self, GeeSet* postal_addresses, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FolksPostalAddressDetailsChangePostalAddressesData* _data_;
	FolksPostalAddressDetails* _tmp0_ = NULL;
	GeeSet* _tmp1_ = NULL;
	GeeSet* _tmp2_ = NULL;
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_data_ = g_slice_new0 (FolksPostalAddressDetailsChangePostalAddressesData);
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, folks_postal_address_details_real_change_postal_addresses);
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, folks_postal_address_details_real_change_postal_addresses_data_free);
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_data_->self = _tmp0_;
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp1_ = postal_addresses;
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_g_object_unref0 (_data_->postal_addresses);
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_data_->postal_addresses = _tmp2_;
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	folks_postal_address_details_real_change_postal_addresses_co (_data_);
#line 2009 "postal-address-details.c"
}


static void folks_postal_address_details_real_change_postal_addresses_finish (FolksPostalAddressDetails* self, GAsyncResult* _res_, GError** error) {
	FolksPostalAddressDetailsChangePostalAddressesData* _data_;
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		return;
#line 2019 "postal-address-details.c"
	}
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 2023 "postal-address-details.c"
}


/**
   * Change the contact's postal addresses.
   *
   * It's preferred to call this rather than setting
   * {@link PostalAddressDetails.postal_addresses} directly, as this method
   * gives error notification and will only return once the addresses have been
   * written to the relevant backing store (or the operation's failed).
   *
   * @param postal_addresses the set of postal addresses
   * @throws PropertyError if setting the addresses failed
   * @since 0.6.2
   */
static gboolean folks_postal_address_details_real_change_postal_addresses_co (FolksPostalAddressDetailsChangePostalAddressesData* _data_) {
#line 356 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	switch (_data_->_state_) {
#line 356 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		case 0:
#line 2044 "postal-address-details.c"
		goto _state_0;
		default:
#line 356 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		g_assert_not_reached ();
#line 2049 "postal-address-details.c"
	}
	_state_0:
#line 360 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_data_->_tmp0_ = NULL;
#line 360 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_data_->_tmp0_ = _ ("Postal addresses are not writeable on this contact.");
#line 360 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_data_->_tmp1_ = NULL;
#line 360 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_data_->_tmp1_ = g_error_new_literal (FOLKS_PROPERTY_ERROR, FOLKS_PROPERTY_ERROR_NOT_WRITEABLE, _data_->_tmp0_);
#line 360 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	_data_->_inner_error_ = _data_->_tmp1_;
#line 360 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_data_->_inner_error_->domain == FOLKS_PROPERTY_ERROR) {
#line 360 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 360 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		g_error_free (_data_->_inner_error_);
#line 360 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		if (_data_->_state_ == 0) {
#line 360 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2072 "postal-address-details.c"
		} else {
#line 360 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2076 "postal-address-details.c"
		}
#line 360 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		g_object_unref (_data_->_async_result);
#line 360 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		return FALSE;
#line 2082 "postal-address-details.c"
	} else {
#line 360 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 360 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		g_clear_error (&_data_->_inner_error_);
#line 360 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		return FALSE;
#line 2090 "postal-address-details.c"
	}
#line 356 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (_data_->_state_ == 0) {
#line 356 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2096 "postal-address-details.c"
	} else {
#line 356 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2100 "postal-address-details.c"
	}
#line 356 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_object_unref (_data_->_async_result);
#line 356 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return FALSE;
#line 2106 "postal-address-details.c"
}


void folks_postal_address_details_change_postal_addresses (FolksPostalAddressDetails* self, GeeSet* postal_addresses, GAsyncReadyCallback _callback_, gpointer _user_data_) {
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	FOLKS_POSTAL_ADDRESS_DETAILS_GET_INTERFACE (self)->change_postal_addresses (self, postal_addresses, _callback_, _user_data_);
#line 2113 "postal-address-details.c"
}


void folks_postal_address_details_change_postal_addresses_finish (FolksPostalAddressDetails* self, GAsyncResult* _res_, GError** error) {
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	FOLKS_POSTAL_ADDRESS_DETAILS_GET_INTERFACE (self)->change_postal_addresses_finish (self, _res_, error);
#line 2120 "postal-address-details.c"
}


GeeSet* folks_postal_address_details_get_postal_addresses (FolksPostalAddressDetails* self) {
#line 342 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 342 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	return FOLKS_POSTAL_ADDRESS_DETAILS_GET_INTERFACE (self)->get_postal_addresses (self);
#line 2129 "postal-address-details.c"
}


void folks_postal_address_details_set_postal_addresses (FolksPostalAddressDetails* self, GeeSet* value) {
#line 342 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	g_return_if_fail (self != NULL);
#line 342 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	FOLKS_POSTAL_ADDRESS_DETAILS_GET_INTERFACE (self)->set_postal_addresses (self, value);
#line 2138 "postal-address-details.c"
}


static void folks_postal_address_details_base_init (FolksPostalAddressDetailsIface * iface) {
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	static gboolean initialized = FALSE;
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
	if (!initialized) {
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		initialized = TRUE;
#line 2149 "postal-address-details.c"
		/**
		   * The postal addresses of the contact.
		   *
		   * A list of postal addresses associated to the contact.
		   *
		   * @since 0.5.1
		   */
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		g_object_interface_install_property (iface, g_param_spec_object ("postal-addresses", "postal-addresses", "postal-addresses", GEE_TYPE_SET, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		iface->change_postal_addresses = folks_postal_address_details_real_change_postal_addresses;
#line 333 "/home/sadiq/jhbuild/checkout/folks/folks/postal-address-details.vala"
		iface->change_postal_addresses_finish = folks_postal_address_details_real_change_postal_addresses_finish;
#line 2163 "postal-address-details.c"
	}
}


/**
 * Interface for classes that can provide postal addresses, such as
 * {@link Persona} and {@link Individual}.
 */
GType folks_postal_address_details_get_type (void) {
	static volatile gsize folks_postal_address_details_type_id__volatile = 0;
	if (g_once_init_enter (&folks_postal_address_details_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (FolksPostalAddressDetailsIface), (GBaseInitFunc) folks_postal_address_details_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType folks_postal_address_details_type_id;
		folks_postal_address_details_type_id = g_type_register_static (G_TYPE_INTERFACE, "FolksPostalAddressDetails", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (folks_postal_address_details_type_id, G_TYPE_OBJECT);
		g_once_init_leave (&folks_postal_address_details_type_id__volatile, folks_postal_address_details_type_id);
	}
	return folks_postal_address_details_type_id__volatile;
}



