31 #ifndef GNC_EMPLOYEE_H_
32 #define GNC_EMPLOYEE_H_
40 #define GNC_ID_EMPLOYEE "gncEmployee"
43 #define GNC_TYPE_EMPLOYEE (gnc_employee_get_type ())
44 #define GNC_EMPLOYEE(o) \
45 (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_EMPLOYEE, GncEmployee))
46 #define GNC_EMPLOYEE_CLASS(k) \
47 (G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_EMPLOYEE, GncEmployeeClass))
48 #define GNC_IS_EMPLOYEE(o) \
49 (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_EMPLOYEE))
50 #define GNC_IS_EMPLOYEE_CLASS(k) \
51 (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_EMPLOYEE))
52 #define GNC_EMPLOYEE_GET_CLASS(o) \
53 (G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_EMPLOYEE, GncEmployeeClass))
54 GType gnc_employee_get_type(
void);
67 void gncEmployeeSetID (
GncEmployee *employee,
const char *
id);
68 void gncEmployeeSetUsername (
GncEmployee *employee,
const char *username);
74 void gncEmployeeSetName (
GncEmployee *employee,
const char *name);
75 void gncEmployeeSetLanguage (
GncEmployee *employee,
const char *language);
76 void gncEmployeeSetAcl (
GncEmployee *employee,
const char *acl);
80 void gncEmployeeSetActive (
GncEmployee *employee, gboolean active);
89 const char * gncEmployeeGetID (
const GncEmployee *employee);
90 const char * gncEmployeeGetUsername (
const GncEmployee *employee);
96 const char * gncEmployeeGetName (
const GncEmployee *employee);
98 const char * gncEmployeeGetLanguage (
const GncEmployee *employee);
99 const char * gncEmployeeGetAcl (
const GncEmployee *employee);
103 gboolean gncEmployeeGetActive (
const GncEmployee *employee);
120 #define EMPLOYEE_ID "id"
121 #define EMPLOYEE_USERNAME "username"
122 #define EMPLOYEE_NAME "name"
123 #define EMPLOYEE_ADDR "addr"
124 #define EMPLOYEE_LANGUAGE "native language"
125 #define EMPLOYEE_ACL "acl"
126 #define EMPLOYEE_WORKDAY "workday"
127 #define EMPLOYEE_RATE "rate"
128 #define EMPLOYEE_CC "credit_card_account"
131 #define gncEmployeeGetGUID(E) qof_entity_get_guid(QOF_INSTANCE(E))
132 #define gncEmployeeGetBook(E) qof_instance_get_book(QOF_INSTANCE(E))
133 #define gncEmployeeRetGUID(E) (E ? *(qof_entity_get_guid(QOF_INSTANCE(E))) : *(guid_null()))
134 #define gncEmployeeLookupDirect(G,B) gncEmployeeLookup((B),&(G))
138 gboolean gncEmployeeIsDirty (
const GncEmployee *employee);
#define QOF_BOOK_RETURN_ENTITY(book, guid, e_type, c_type)
Encapsulates all the information about a dataset manipulated by QOF. This is the top-most structure u...
Account handling public routines.
gboolean gncEmployeeEqual(const GncEmployee *e1, const GncEmployee *e2)