Back to index

unity  6.0.0
test_service_model.h
Go to the documentation of this file.
00001 #ifndef _SERVICE_MODEL_H_
00002 #define _SERVICE_MODEL_H_
00003 
00004 #include <dee.h>
00005 
00006 G_BEGIN_DECLS
00007 
00008 #define SERVICE_TYPE_MODEL (service_model_get_type ())
00009 
00010 #define SERVICE_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
00011   SERVICE_TYPE_MODEL, ServiceModel))
00012 
00013 #define SERVICE_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
00014   SERVICE_TYPE_MODEL, ServiceModelClass))
00015 
00016 #define SERVICE_IS_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
00017   SERVICE_TYPE_MODEL))
00018 
00019 #define SERVICE_IS_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\
00020   SERVICE_TYPE_MODEL))
00021 
00022 #define ServiceModel_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\
00023   SERVICE_TYPE_MODEL, ServiceModelClass))
00024 
00025 typedef struct _ServiceModel        ServiceModel;
00026 typedef struct _ServiceModelClass   ServiceModelClass;
00027 
00028 struct _ServiceModel
00029 {
00030   GObject parent;
00031 
00032   DeeModel* model_;
00033   DeeModel* results_model_;
00034   DeeModel* categories_model_;
00035 };
00036 
00037 struct _ServiceModelClass
00038 {
00039   GObjectClass parent_class;
00040 };
00041 
00042 GType service_model_get_type(void) G_GNUC_CONST;
00043 
00044 ServiceModel* service_model_new(void);
00045 
00046 G_END_DECLS
00047 
00048 #endif /* _SERVICE_MODEL_H_ */