summaryrefslogtreecommitdiff
path: root/qml_2proxy_8h_source.html
blob: 476e6d1b8fb68367e0cae76312a94ecc2aad5503 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>navit: gui/qml/proxy.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">navit
   &#160;<span id="projectnumber">0.5.3-trunk</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('qml_2proxy_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">proxy.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="qml_2proxy_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef NAVIT_GUI_QML_PROXY_H</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define NAVIT_GUI_QML_PROXY_H</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno"><a class="line" href="classNGQStandardItemModel.html">    4</a></span>&#160;<span class="keyword">class </span><a class="code" href="classNGQStandardItemModel.html">NGQStandardItemModel</a>  : <span class="keyword">public</span> QStandardItemModel {</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00006"></a><span class="lineno"><a class="line" href="classNGQStandardItemModel.html#a06e32ca2fd3cf48353adc1372a62776e">    6</a></span>&#160;        <a class="code" href="classNGQStandardItemModel.html#a06e32ca2fd3cf48353adc1372a62776e">NGQStandardItemModel</a>(QObject* <a class="code" href="structparent.html">parent</a>) : QStandardItemModel(parent) {</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;                <span class="comment">//Populate role list</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;                <a class="code" href="classNGQStandardItemModel.html#a51cd24ba8de4386829cbb10391142d43">roleNames</a>.insert(<a class="code" href="classNGQStandardItemModel.html#aa24a4f0461295cf063a43f505c079eaea9bb3c10d2c2e1b7becc7be961d74e00b">NGQStandardItemModel::ItemId</a>, <span class="stringliteral">&quot;itemId&quot;</span>);</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;                <a class="code" href="classNGQStandardItemModel.html#a51cd24ba8de4386829cbb10391142d43">roleNames</a>.insert(<a class="code" href="classNGQStandardItemModel.html#aa24a4f0461295cf063a43f505c079eaea0fcb976d16fd4f16bf271097a21ffbac">NGQStandardItemModel::ItemName</a>, <span class="stringliteral">&quot;itemName&quot;</span>);</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;                <a class="code" href="classNGQStandardItemModel.html#a51cd24ba8de4386829cbb10391142d43">roleNames</a>.insert(<a class="code" href="classNGQStandardItemModel.html#aa24a4f0461295cf063a43f505c079eaea4563a7cb33892fe6a07ee85700517575">NGQStandardItemModel::ItemIcon</a>, <span class="stringliteral">&quot;itemIcon&quot;</span>);</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;                <a class="code" href="classNGQStandardItemModel.html#a51cd24ba8de4386829cbb10391142d43">roleNames</a>.insert(<a class="code" href="classNGQStandardItemModel.html#aa24a4f0461295cf063a43f505c079eaea05b6dc8499a00b790e1726012c89c4a2">NGQStandardItemModel::ItemPath</a>, <span class="stringliteral">&quot;itemPath&quot;</span>);</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;                <a class="code" href="classNGQStandardItemModel.html#a51cd24ba8de4386829cbb10391142d43">roleNames</a>.insert(<a class="code" href="classNGQStandardItemModel.html#aa24a4f0461295cf063a43f505c079eaea17ac3d4990e19dbb3f2d28fba8e5c88d">NGQStandardItemModel::ItemValue</a>, <span class="stringliteral">&quot;itemValue&quot;</span>);</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;                this-&gt;setRoleNames(<a class="code" href="classNGQStandardItemModel.html#a51cd24ba8de4386829cbb10391142d43">roleNames</a>);</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;        }</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classNGQStandardItemModel.html#aa24a4f0461295cf063a43f505c079eae">   16</a></span>&#160;        <span class="keyword">enum</span> <a class="code" href="classNGQStandardItemModel.html#aa24a4f0461295cf063a43f505c079eae">listRoles</a> {<a class="code" href="classNGQStandardItemModel.html#aa24a4f0461295cf063a43f505c079eaea9bb3c10d2c2e1b7becc7be961d74e00b">ItemId</a>=Qt::UserRole+1,<a class="code" href="classNGQStandardItemModel.html#aa24a4f0461295cf063a43f505c079eaea0fcb976d16fd4f16bf271097a21ffbac">ItemName</a>=Qt::UserRole+2,<a class="code" href="classNGQStandardItemModel.html#aa24a4f0461295cf063a43f505c079eaea4563a7cb33892fe6a07ee85700517575">ItemIcon</a>=Qt::UserRole+3,<a class="code" href="classNGQStandardItemModel.html#aa24a4f0461295cf063a43f505c079eaea05b6dc8499a00b790e1726012c89c4a2">ItemPath</a>=Qt::UserRole+4,<a class="code" href="classNGQStandardItemModel.html#aa24a4f0461295cf063a43f505c079eaea17ac3d4990e19dbb3f2d28fba8e5c88d">ItemValue</a>=Qt::UserRole+5};</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="classNGQStandardItemModel.html#a51cd24ba8de4386829cbb10391142d43">   18</a></span>&#160;        QHash&lt;int, QByteArray&gt; <a class="code" href="classNGQStandardItemModel.html#a51cd24ba8de4386829cbb10391142d43">roleNames</a>;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;};</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="classNGQProxy.html">   21</a></span>&#160;<span class="keyword">class </span><a class="code" href="classNGQProxy.html">NGQProxy</a> : <span class="keyword">public</span> QObject {</div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="classNGQProxy.html#a5c7550f127a909ac315d1755a122be85">   22</a></span>&#160;        Q_OBJECT;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        Q_PROPERTY(<span class="keywordtype">int</span> itemId READ itemId  NOTIFY itemIdSignal);</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classNGQProxy.html#a93512e0b84ee0d7780144ad240b80cfa">   26</a></span>&#160;    <a class="code" href="classNGQProxy.html#a93512e0b84ee0d7780144ad240b80cfa">NGQProxy</a>(<span class="keyword">struct</span> <a class="code" href="structgui__priv.html">gui_priv</a>* this_,QObject *<a class="code" href="structparent.html">parent</a>) : QObject(parent) {</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;        this-&gt;<span class="keywordtype">object</span>=this_;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    }</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;signals:</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        <span class="keywordtype">void</span> itemIdSignal(<span class="keywordtype">int</span> itemId);</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">public</span> slots:</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        <span class="comment">//Attribute read/write</span></div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classNGQProxy.html#a8a206dcf7e6ec7a124039059ed30f504">   35</a></span>&#160;        QString <a class="code" href="classNGQProxy.html#a8a206dcf7e6ec7a124039059ed30f504">getAttr</a>(<span class="keyword">const</span> QString &amp;<a class="code" href="structattr__name.html">attr_name</a>) {</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;                QString ret;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;                <span class="keyword">struct </span><a class="code" href="structattr.html">attr</a> attr;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;                getAttrFunc(<a class="code" href="attr_8c.html#aff0b5c6622268fda223cee4d1e8a26aa">attr_from_name</a>(attr_name.toStdString().c_str()), &amp;attr, NULL);</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="attr_8h.html#a587859842cdbc81262100a1432347247">ATTR_IS_INT</a>(attr.<a class="code" href="structattr.html#acbbeecb9ce16c2d7973d0bd2ff544457">type</a>)) {</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;                        ret.setNum(attr.<a class="code" href="structattr.html#a682d33096ece5ad806426918c15c4b10">u</a>.<a class="code" href="structattr.html#aebf8c468883c8a41033b97c2ae91003b">num</a>);</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;                }</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="attr_8h.html#a57ae0a1b52971a24fd057c115d5e16d3">ATTR_IS_DOUBLE</a>(attr.<a class="code" href="structattr.html#acbbeecb9ce16c2d7973d0bd2ff544457">type</a>)) {</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;                        ret.setNum(*attr.<a class="code" href="structattr.html#a682d33096ece5ad806426918c15c4b10">u</a>.<a class="code" href="structattr.html#a76048cf7f2de123ea5250cf82f32702b">numd</a>);</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;                }</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="attr_8h.html#addf0afce3170b1ed29581dd93add8965">ATTR_IS_STRING</a>(attr.<a class="code" href="structattr.html#acbbeecb9ce16c2d7973d0bd2ff544457">type</a>)) {</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;                        ret=attr.<a class="code" href="structattr.html#a682d33096ece5ad806426918c15c4b10">u</a>.<a class="code" href="structattr.html#a2a2a2da11501e5c4b5464938c91b87e9">str</a>;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;                }</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;                <span class="keywordflow">if</span> (attr.<a class="code" href="structattr.html#acbbeecb9ce16c2d7973d0bd2ff544457">type</a>==attr_layout) {</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;                        ret=attr.<a class="code" href="structattr.html#a682d33096ece5ad806426918c15c4b10">u</a>.<a class="code" href="structattr.html#a678240cd70634267cfa84eeb0f4c9ad1">layout</a>-&gt;<a class="code" href="structlayout.html#a8f5f53154c58359b95fe431e56b6138e">name</a>;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;                }</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;                <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        }</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classNGQProxy.html#a4f2f965af4665d58f73d2421e93cb685">   54</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classNGQProxy.html#a4f2f965af4665d58f73d2421e93cb685">setAttr</a>(<span class="keyword">const</span> QString &amp;<a class="code" href="structattr__name.html">attr_name</a>, <span class="keyword">const</span> QString &amp;attr_string) {</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;                        <span class="keyword">struct </span><a class="code" href="structattr.html">attr</a> attr_value;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;                        <span class="keywordtype">double</span> *helper;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;                        <a class="code" href="debug_8h.html#aba3c0ccefe6daa8941b173073268729e">dbg</a>(<a class="code" href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25aa4a22485b46e3407434f1093e42867d4">lvl_debug</a>,<span class="stringliteral">&quot;Setting %s to %s&quot;</span>,attr_name.toStdString().c_str(),attr_string.toStdString().c_str());</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;                        getAttrFunc(<a class="code" href="attr_8c.html#aff0b5c6622268fda223cee4d1e8a26aa">attr_from_name</a>(attr_name.toStdString().c_str()), &amp;attr_value, NULL);</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;                        <span class="keywordflow">if</span> (<a class="code" href="attr_8h.html#a587859842cdbc81262100a1432347247">ATTR_IS_INT</a>(attr_value.<a class="code" href="structattr.html#acbbeecb9ce16c2d7973d0bd2ff544457">type</a>)) {</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;                                <span class="comment">//Special handling for &quot;true&quot;/&quot;false&quot;</span></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;                                <span class="keywordflow">if</span> (attr_string==<span class="stringliteral">&quot;true&quot;</span>) {</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;                                        attr_value.<a class="code" href="structattr.html#a682d33096ece5ad806426918c15c4b10">u</a>.<a class="code" href="structattr.html#aebf8c468883c8a41033b97c2ae91003b">num</a>=1;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;                                } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (attr_string==<span class="stringliteral">&quot;false&quot;</span>) {</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;                                        attr_value.<a class="code" href="structattr.html#a682d33096ece5ad806426918c15c4b10">u</a>.<a class="code" href="structattr.html#aebf8c468883c8a41033b97c2ae91003b">num</a>=0;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;                                } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;                                        attr_value.<a class="code" href="structattr.html#a682d33096ece5ad806426918c15c4b10">u</a>.<a class="code" href="structattr.html#aebf8c468883c8a41033b97c2ae91003b">num</a>=attr_string.toInt();</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;                                }</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;                        }</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;                        <span class="keywordflow">if</span> (<a class="code" href="attr_8h.html#a57ae0a1b52971a24fd057c115d5e16d3">ATTR_IS_DOUBLE</a>(attr_value.<a class="code" href="structattr.html#acbbeecb9ce16c2d7973d0bd2ff544457">type</a>)) {</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;                                helper = g_new0(<span class="keywordtype">double</span>,1);</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;                                *helper=attr_string.toDouble();</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;                                attr_value.<a class="code" href="structattr.html#a682d33096ece5ad806426918c15c4b10">u</a>.<a class="code" href="structattr.html#a76048cf7f2de123ea5250cf82f32702b">numd</a>=helper;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;                        }</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;                        <span class="keywordflow">if</span> (<a class="code" href="attr_8h.html#addf0afce3170b1ed29581dd93add8965">ATTR_IS_STRING</a>(attr_value.<a class="code" href="structattr.html#acbbeecb9ce16c2d7973d0bd2ff544457">type</a>)) {</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;                                attr_value.<a class="code" href="structattr.html#a682d33096ece5ad806426918c15c4b10">u</a>.<a class="code" href="structattr.html#a2a2a2da11501e5c4b5464938c91b87e9">str</a>=(<span class="keywordtype">char</span>*)attr_string.toStdString().c_str();</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;                        }</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;                        setAttrFunc(&amp;attr_value);</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;                        <span class="keywordflow">return</span>;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        }</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classNGQProxy.html#a0a0de2089b347ceaed93c2aa8c7b478d">   85</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="classNGQProxy.html#a0a0de2089b347ceaed93c2aa8c7b478d">itemId</a>() {</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;                <span class="keywordflow">return</span> _itemId;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        }</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classNGQProxy.html#a8e17c7db191f944de47852362dabb9c0">   89</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structgui__priv.html">gui_priv</a>* <a class="code" href="classNGQProxy.html#a8e17c7db191f944de47852362dabb9c0">object</a>;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classNGQProxy.html#ad68e20758e8e1643839f21c356c29ead">   91</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="classNGQProxy.html#ad68e20758e8e1643839f21c356c29ead">_itemId</a>;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">int</span> setAttrFunc(<span class="keyword">struct</span> <a class="code" href="structattr.html">attr</a> *<a class="code" href="structattr.html">attr</a>)=0;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">int</span> getAttrFunc(<span class="keyword">enum</span> <a class="code" href="attr_8h.html#a9a9ab3c12bda86add06f89976f36f98c">attr_type</a> <a class="code" href="garmin__img_8c.html#a8f7b0321b1954f07b747aeb1e311814e">type</a>, <span class="keyword">struct</span> <a class="code" href="structattr.html">attr</a> *<a class="code" href="structattr.html">attr</a>, <span class="keyword">struct</span> <a class="code" href="structattr__iter.html">attr_iter</a> *iter)=0;</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classNGQProxy.html#a0d48a195d412c50421b58cb48af6d2ca">   95</a></span>&#160;        <span class="keyword">virtual</span> <span class="keyword">struct </span><a class="code" href="structattr__iter.html">attr_iter</a>* <a class="code" href="classNGQProxy.html#a0d48a195d412c50421b58cb48af6d2ca">getIterFunc</a>() { <span class="keywordflow">return</span> NULL; };</div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="classNGQProxy.html#ae60a38654ff66ff1aca88d90ed2d4f24">   96</a></span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classNGQProxy.html#ae60a38654ff66ff1aca88d90ed2d4f24">dropIterFunc</a>(<span class="keyword">struct</span> <a class="code" href="structattr__iter.html">attr_iter</a>*) { <span class="keywordflow">return</span>; };</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classNGQProxy.html#af2c01e02fcbefc0b78ae2a4896a7d2b5">   98</a></span>&#160;        QDomElement <a class="code" href="classNGQProxy.html#af2c01e02fcbefc0b78ae2a4896a7d2b5">_fieldValueHelper</a>(QDomDocument doc, QString field,QString <a class="code" href="datawindow_8c.html#ab10bc3dfea7bd427cb6cbf318eb80c1e">value</a>) {</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;                        QDomElement fieldTag=doc.createElement(field);</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;                        QDomText valueText=doc.createTextNode(value);</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;                        fieldTag.appendChild(valueText);</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;                        <span class="keywordflow">return</span> fieldTag;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        }</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;};</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="preprocessor">#include &quot;proxy.moc&quot;</span></div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* NAVIT_GUI_QML_PROXY_H */</span><span class="preprocessor"></span></div><div class="ttc" id="attr_8h_html_a9a9ab3c12bda86add06f89976f36f98c"><div class="ttname"><a href="attr_8h.html#a9a9ab3c12bda86add06f89976f36f98c">attr_type</a></div><div class="ttdeci">attr_type</div><div class="ttdef"><b>Definition:</b> attr.h:34</div></div>
<div class="ttc" id="classNGQStandardItemModel_html_aa24a4f0461295cf063a43f505c079eaea17ac3d4990e19dbb3f2d28fba8e5c88d"><div class="ttname"><a href="classNGQStandardItemModel.html#aa24a4f0461295cf063a43f505c079eaea17ac3d4990e19dbb3f2d28fba8e5c88d">NGQStandardItemModel::ItemValue</a></div><div class="ttdef"><b>Definition:</b> proxy.h:16</div></div>
<div class="ttc" id="structparent_html"><div class="ttname"><a href="structparent.html">parent</a></div><div class="ttdef"><b>Definition:</b> gpx2navit_txt.h:51</div></div>
<div class="ttc" id="structattr__name_html"><div class="ttname"><a href="structattr__name.html">attr_name</a></div><div class="ttdef"><b>Definition:</b> attr.c:47</div></div>
<div class="ttc" id="classNGQProxy_html_ad68e20758e8e1643839f21c356c29ead"><div class="ttname"><a href="classNGQProxy.html#ad68e20758e8e1643839f21c356c29ead">NGQProxy::_itemId</a></div><div class="ttdeci">int _itemId</div><div class="ttdef"><b>Definition:</b> proxy.h:91</div></div>
<div class="ttc" id="classNGQStandardItemModel_html"><div class="ttname"><a href="classNGQStandardItemModel.html">NGQStandardItemModel</a></div><div class="ttdef"><b>Definition:</b> proxy.h:4</div></div>
<div class="ttc" id="classNGQStandardItemModel_html_aa24a4f0461295cf063a43f505c079eaea9bb3c10d2c2e1b7becc7be961d74e00b"><div class="ttname"><a href="classNGQStandardItemModel.html#aa24a4f0461295cf063a43f505c079eaea9bb3c10d2c2e1b7becc7be961d74e00b">NGQStandardItemModel::ItemId</a></div><div class="ttdef"><b>Definition:</b> proxy.h:16</div></div>
<div class="ttc" id="classNGQStandardItemModel_html_a06e32ca2fd3cf48353adc1372a62776e"><div class="ttname"><a href="classNGQStandardItemModel.html#a06e32ca2fd3cf48353adc1372a62776e">NGQStandardItemModel::NGQStandardItemModel</a></div><div class="ttdeci">NGQStandardItemModel(QObject *parent)</div><div class="ttdef"><b>Definition:</b> proxy.h:6</div></div>
<div class="ttc" id="classNGQProxy_html_a8a206dcf7e6ec7a124039059ed30f504"><div class="ttname"><a href="classNGQProxy.html#a8a206dcf7e6ec7a124039059ed30f504">NGQProxy::getAttr</a></div><div class="ttdeci">QString getAttr(const QString &amp;attr_name)</div><div class="ttdef"><b>Definition:</b> proxy.h:35</div></div>
<div class="ttc" id="classNGQProxy_html_ae60a38654ff66ff1aca88d90ed2d4f24"><div class="ttname"><a href="classNGQProxy.html#ae60a38654ff66ff1aca88d90ed2d4f24">NGQProxy::dropIterFunc</a></div><div class="ttdeci">virtual void dropIterFunc(struct attr_iter *)</div><div class="ttdef"><b>Definition:</b> proxy.h:96</div></div>
<div class="ttc" id="datawindow_8c_html_ab10bc3dfea7bd427cb6cbf318eb80c1e"><div class="ttname"><a href="datawindow_8c.html#ab10bc3dfea7bd427cb6cbf318eb80c1e">value</a></div><div class="ttdeci">static GValue value</div><div class="ttdef"><b>Definition:</b> datawindow.c:42</div></div>
<div class="ttc" id="structgui__priv_html"><div class="ttname"><a href="structgui__priv.html">gui_priv</a></div><div class="ttdef"><b>Definition:</b> graphics_win32.h:52</div></div>
<div class="ttc" id="classNGQProxy_html_af2c01e02fcbefc0b78ae2a4896a7d2b5"><div class="ttname"><a href="classNGQProxy.html#af2c01e02fcbefc0b78ae2a4896a7d2b5">NGQProxy::_fieldValueHelper</a></div><div class="ttdeci">QDomElement _fieldValueHelper(QDomDocument doc, QString field, QString value)</div><div class="ttdef"><b>Definition:</b> proxy.h:98</div></div>
<div class="ttc" id="debug_8h_html_aba3c0ccefe6daa8941b173073268729e"><div class="ttname"><a href="debug_8h.html#aba3c0ccefe6daa8941b173073268729e">dbg</a></div><div class="ttdeci">#define dbg(level,...)</div><div class="ttdef"><b>Definition:</b> debug.h:59</div></div>
<div class="ttc" id="classNGQProxy_html_a93512e0b84ee0d7780144ad240b80cfa"><div class="ttname"><a href="classNGQProxy.html#a93512e0b84ee0d7780144ad240b80cfa">NGQProxy::NGQProxy</a></div><div class="ttdeci">NGQProxy(struct gui_priv *this_, QObject *parent)</div><div class="ttdef"><b>Definition:</b> proxy.h:26</div></div>
<div class="ttc" id="debug_8h_html_a3ce13c42b29fe2a7552478859b7f3c25aa4a22485b46e3407434f1093e42867d4"><div class="ttname"><a href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25aa4a22485b46e3407434f1093e42867d4">lvl_debug</a></div><div class="ttdef"><b>Definition:</b> debug.h:52</div></div>
<div class="ttc" id="attr_8h_html_addf0afce3170b1ed29581dd93add8965"><div class="ttname"><a href="attr_8h.html#addf0afce3170b1ed29581dd93add8965">ATTR_IS_STRING</a></div><div class="ttdeci">#define ATTR_IS_STRING(x)</div><div class="ttdef"><b>Definition:</b> attr.h:140</div></div>
<div class="ttc" id="structattr__iter_html"><div class="ttname"><a href="structattr__iter.html">attr_iter</a></div><div class="ttdef"><b>Definition:</b> config_.c:47</div></div>
<div class="ttc" id="structattr_html_a682d33096ece5ad806426918c15c4b10"><div class="ttname"><a href="structattr.html#a682d33096ece5ad806426918c15c4b10">attr::u</a></div><div class="ttdeci">union attr::@0 u</div></div>
<div class="ttc" id="structattr_html_aebf8c468883c8a41033b97c2ae91003b"><div class="ttname"><a href="structattr.html#aebf8c468883c8a41033b97c2ae91003b">attr::num</a></div><div class="ttdeci">long num</div><div class="ttdef"><b>Definition:</b> attr.h:162</div></div>
<div class="ttc" id="classNGQStandardItemModel_html_aa24a4f0461295cf063a43f505c079eae"><div class="ttname"><a href="classNGQStandardItemModel.html#aa24a4f0461295cf063a43f505c079eae">NGQStandardItemModel::listRoles</a></div><div class="ttdeci">listRoles</div><div class="ttdef"><b>Definition:</b> proxy.h:16</div></div>
<div class="ttc" id="structattr_html"><div class="ttname"><a href="structattr.html">attr</a></div><div class="ttdef"><b>Definition:</b> attr.h:157</div></div>
<div class="ttc" id="structattr_html_acbbeecb9ce16c2d7973d0bd2ff544457"><div class="ttname"><a href="structattr.html#acbbeecb9ce16c2d7973d0bd2ff544457">attr::type</a></div><div class="ttdeci">enum attr_type type</div><div class="ttdef"><b>Definition:</b> attr.h:158</div></div>
<div class="ttc" id="attr_8h_html_a587859842cdbc81262100a1432347247"><div class="ttname"><a href="attr_8h.html#a587859842cdbc81262100a1432347247">ATTR_IS_INT</a></div><div class="ttdeci">#define ATTR_IS_INT(x)</div><div class="ttdef"><b>Definition:</b> attr.h:138</div></div>
<div class="ttc" id="structattr_html_a2a2a2da11501e5c4b5464938c91b87e9"><div class="ttname"><a href="structattr.html#a2a2a2da11501e5c4b5464938c91b87e9">attr::str</a></div><div class="ttdeci">char * str</div><div class="ttdef"><b>Definition:</b> attr.h:160</div></div>
<div class="ttc" id="structattr_html_a76048cf7f2de123ea5250cf82f32702b"><div class="ttname"><a href="structattr.html#a76048cf7f2de123ea5250cf82f32702b">attr::numd</a></div><div class="ttdeci">double * numd</div><div class="ttdef"><b>Definition:</b> attr.h:166</div></div>
<div class="ttc" id="classNGQStandardItemModel_html_aa24a4f0461295cf063a43f505c079eaea05b6dc8499a00b790e1726012c89c4a2"><div class="ttname"><a href="classNGQStandardItemModel.html#aa24a4f0461295cf063a43f505c079eaea05b6dc8499a00b790e1726012c89c4a2">NGQStandardItemModel::ItemPath</a></div><div class="ttdef"><b>Definition:</b> proxy.h:16</div></div>
<div class="ttc" id="classNGQStandardItemModel_html_aa24a4f0461295cf063a43f505c079eaea0fcb976d16fd4f16bf271097a21ffbac"><div class="ttname"><a href="classNGQStandardItemModel.html#aa24a4f0461295cf063a43f505c079eaea0fcb976d16fd4f16bf271097a21ffbac">NGQStandardItemModel::ItemName</a></div><div class="ttdef"><b>Definition:</b> proxy.h:16</div></div>
<div class="ttc" id="classNGQProxy_html_a4f2f965af4665d58f73d2421e93cb685"><div class="ttname"><a href="classNGQProxy.html#a4f2f965af4665d58f73d2421e93cb685">NGQProxy::setAttr</a></div><div class="ttdeci">void setAttr(const QString &amp;attr_name, const QString &amp;attr_string)</div><div class="ttdef"><b>Definition:</b> proxy.h:54</div></div>
<div class="ttc" id="structattr_html_a678240cd70634267cfa84eeb0f4c9ad1"><div class="ttname"><a href="structattr.html#a678240cd70634267cfa84eeb0f4c9ad1">attr::layout</a></div><div class="ttdeci">struct layout * layout</div><div class="ttdef"><b>Definition:</b> attr.h:173</div></div>
<div class="ttc" id="classNGQStandardItemModel_html_a51cd24ba8de4386829cbb10391142d43"><div class="ttname"><a href="classNGQStandardItemModel.html#a51cd24ba8de4386829cbb10391142d43">NGQStandardItemModel::roleNames</a></div><div class="ttdeci">QHash&lt; int, QByteArray &gt; roleNames</div><div class="ttdef"><b>Definition:</b> proxy.h:18</div></div>
<div class="ttc" id="classNGQProxy_html_a8e17c7db191f944de47852362dabb9c0"><div class="ttname"><a href="classNGQProxy.html#a8e17c7db191f944de47852362dabb9c0">NGQProxy::object</a></div><div class="ttdeci">struct gui_priv * object</div><div class="ttdef"><b>Definition:</b> proxy.h:89</div></div>
<div class="ttc" id="classNGQStandardItemModel_html_aa24a4f0461295cf063a43f505c079eaea4563a7cb33892fe6a07ee85700517575"><div class="ttname"><a href="classNGQStandardItemModel.html#aa24a4f0461295cf063a43f505c079eaea4563a7cb33892fe6a07ee85700517575">NGQStandardItemModel::ItemIcon</a></div><div class="ttdef"><b>Definition:</b> proxy.h:16</div></div>
<div class="ttc" id="garmin__img_8c_html_a8f7b0321b1954f07b747aeb1e311814e"><div class="ttname"><a href="garmin__img_8c.html#a8f7b0321b1954f07b747aeb1e311814e">type</a></div><div class="ttdeci">char type[3]</div><div class="ttdef"><b>Definition:</b> garmin_img.c:123</div></div>
<div class="ttc" id="classNGQProxy_html_a0a0de2089b347ceaed93c2aa8c7b478d"><div class="ttname"><a href="classNGQProxy.html#a0a0de2089b347ceaed93c2aa8c7b478d">NGQProxy::itemId</a></div><div class="ttdeci">int itemId()</div><div class="ttdef"><b>Definition:</b> proxy.h:85</div></div>
<div class="ttc" id="classNGQProxy_html"><div class="ttname"><a href="classNGQProxy.html">NGQProxy</a></div><div class="ttdef"><b>Definition:</b> proxy.h:21</div></div>
<div class="ttc" id="classNGQProxy_html_a0d48a195d412c50421b58cb48af6d2ca"><div class="ttname"><a href="classNGQProxy.html#a0d48a195d412c50421b58cb48af6d2ca">NGQProxy::getIterFunc</a></div><div class="ttdeci">virtual struct attr_iter * getIterFunc()</div><div class="ttdef"><b>Definition:</b> proxy.h:95</div></div>
<div class="ttc" id="attr_8h_html_a57ae0a1b52971a24fd057c115d5e16d3"><div class="ttname"><a href="attr_8h.html#a57ae0a1b52971a24fd057c115d5e16d3">ATTR_IS_DOUBLE</a></div><div class="ttdeci">#define ATTR_IS_DOUBLE(x)</div><div class="ttdef"><b>Definition:</b> attr.h:139</div></div>
<div class="ttc" id="attr_8c_html_aff0b5c6622268fda223cee4d1e8a26aa"><div class="ttname"><a href="attr_8c.html#aff0b5c6622268fda223cee4d1e8a26aa">attr_from_name</a></div><div class="ttdeci">enum attr_type attr_from_name(const char *name)</div><div class="ttdoc">Converts a string to an attr_type. </div><div class="ttdef"><b>Definition:</b> attr.c:91</div></div>
<div class="ttc" id="structlayout_html_a8f5f53154c58359b95fe431e56b6138e"><div class="ttname"><a href="structlayout.html#a8f5f53154c58359b95fe431e56b6138e">layout::name</a></div><div class="ttdeci">char * name</div><div class="ttdef"><b>Definition:</b> layout.h:98</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_11bc0974ce736ce9a6fadebbeb7a8314.html">gui</a></li><li class="navelem"><a class="el" href="dir_8022f260cb33bb0f12ace4cf11c510e1.html">qml</a></li><li class="navelem"><a class="el" href="qml_2proxy_8h.html">proxy.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>