navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
vehicleProxy.h
Go to the documentation of this file.
1 #ifndef NAVIT_GUI_QML_VEHICLEPROXY_H
2 #define NAVIT_GUI_QML_VEHICLEPROXY_H
3 
4 class NGQProxyVehicle : public NGQProxy {
5  Q_OBJECT;
6 
7 public:
8  NGQProxyVehicle(struct gui_priv* object, QObject* parent) : NGQProxy(object,parent) { };
9 
10 public slots:
11 
12 protected:
13  int getAttrFunc(enum attr_type type, struct attr* attr, struct attr_iter* iter) { return vehicle_get_attr(this->object->currVehicle, type, attr, iter); }
14  int setAttrFunc(struct attr* attr) {return vehicle_set_attr(this->object->currVehicle,attr); }
15  struct attr_iter* getIterFunc() { return vehicle_attr_iter_new(); };
17 
18 private:
19 
20 };
21 
22 #include "vehicleProxy.moc"
23 
24 #endif /* NAVIT_GUI_QML_VEHICLEPROXY_H */
attr_type
Definition: attr.h:34
int setAttrFunc(struct attr *attr)
Definition: vehicleProxy.h:14
NGQProxyVehicle(struct gui_priv *object, QObject *parent)
Definition: vehicleProxy.h:8
tuple iter
Definition: eval.py:8
Definition: gpx2navit_txt.h:51
int vehicle_get_attr(struct vehicle *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)
Definition: vehicle.c:215
int getAttrFunc(enum attr_type type, struct attr *attr, struct attr_iter *iter)
Definition: vehicleProxy.h:13
struct vehicle * currVehicle
Definition: gui_qml.cpp:42
Definition: graphics_win32.h:52
struct attr_iter * getIterFunc()
Definition: vehicleProxy.h:15
Definition: config_.c:48
int vehicle_set_attr(struct vehicle *this_, struct attr *attr)
Definition: vehicle.c:238
Definition: vehicleProxy.h:4
Definition: attr.h:156
void dropIterFunc(struct attr_iter *iter)
Definition: vehicleProxy.h:16
struct attr_iter * vehicle_attr_iter_new(void)
Definition: vehicle.c:187
void vehicle_attr_iter_destroy(struct attr_iter *iter)
Definition: vehicle.c:198
struct gui_priv * object
Definition: proxy.h:89
char type[3]
Definition: garmin_img.c:130
Definition: proxy.h:21