57 #ifndef GNC_ADDRESS_H_ 58 #define GNC_ADDRESS_H_ 67 #define GNC_ADDRESS_MODULE_NAME "gncAddress" 68 #define GNC_ID_ADDRESS GNC_ADDRESS_MODULE_NAME 88 #define GNC_TYPE_ADDRESS (gnc_address_get_type ()) 89 #define GNC_ADDRESS(o) \ 90 (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_ADDRESS, GncAddress)) 91 #define GNC_ADDRESS_CLASS(k) \ 92 (G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_ADDRESS, GncAddressClass)) 93 #define GNC_IS_ADDRESS(o) \ 94 (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_ADDRESS)) 95 #define GNC_IS_ADDRESS_CLASS(k) \ 96 (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_ADDRESS)) 97 #define GNC_ADDRESS_GET_CLASS(o) \ 98 (G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_ADDRESS, GncAddressClass)) 99 GType gnc_address_get_type(
void);
113 void gncAddressSetName (
GncAddress *addr,
const char *name);
114 void gncAddressSetAddr1 (
GncAddress *addr,
const char *addr1);
115 void gncAddressSetAddr2 (
GncAddress *addr,
const char *addr2);
116 void gncAddressSetAddr3 (
GncAddress *addr,
const char *addr3);
117 void gncAddressSetAddr4 (
GncAddress *addr,
const char *addr4);
118 void gncAddressSetPhone (
GncAddress *addr,
const char *phone);
119 void gncAddressSetFax (
GncAddress *addr,
const char *fax);
120 void gncAddressSetEmail (
GncAddress *addr,
const char *email);
121 void gncAddressClearDirty (
GncAddress *address);
127 const char * gncAddressGetName (
const GncAddress *addr);
128 const char * gncAddressGetAddr1 (
const GncAddress *addr);
129 const char * gncAddressGetAddr2 (
const GncAddress *addr);
130 const char * gncAddressGetAddr3 (
const GncAddress *addr);
131 const char * gncAddressGetAddr4 (
const GncAddress *addr);
132 const char * gncAddressGetPhone (
const GncAddress *addr);
133 const char * gncAddressGetFax (
const GncAddress *addr);
134 const char * gncAddressGetEmail (
const GncAddress *addr);
137 gboolean gncAddressIsDirty (
const GncAddress *addr);
152 #define ADDRESS_NAME "name" 153 #define ADDRESS_ONE "number" 154 #define ADDRESS_TWO "street" 155 #define ADDRESS_THREE "locality" 156 #define ADDRESS_FOUR "city" 157 #define ADDRESS_PHONE "phone" 158 #define ADDRESS_FAX "fax" 159 #define ADDRESS_EMAIL "email" 160 #define ADDRESS_OWNER "owner"
int gncAddressCompare(const GncAddress *a, const GncAddress *b)
compare two addresses
– Business Helper Functions
gboolean gncAddressEqual(const GncAddress *a, const GncAddress *b)
Deeply compare two addresses.