⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _chat_sdp_attribute_parser_8h-source.html

📁 一个聊天的软件
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<a name="l00127"></a><a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#d91fb2caba5aa70d2081682f7ec5ebd8">00127</a>             <a class="code" href="class_t_chat_sdp_attribute_parser.html#26743b8b65ea09aa12de6db8d3f820d2">TNodeCommand</a> <a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#d91fb2caba5aa70d2081682f7ec5ebd8">iCommand</a>;<a name="l00128"></a>00128 <span class="comment"></span><a name="l00129"></a>00129 <span class="comment">            /** </span><a name="l00130"></a>00130 <span class="comment">            * iType the expected type </span><a name="l00131"></a>00131 <span class="comment">            */</span><a name="l00132"></a><a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#e00ef68ac7b08f725700d08a246e6b1f">00132</a>             TSdpElementType <a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#e00ef68ac7b08f725700d08a246e6b1f">iType</a>;<a name="l00133"></a>00133 <span class="comment"></span><a name="l00134"></a>00134 <span class="comment">            /** </span><a name="l00135"></a>00135 <span class="comment">            * iValue the expected value for ECheckValue,the value of aKey</span><a name="l00136"></a>00136 <span class="comment">            * passed to the observer for EReadValue </span><a name="l00137"></a>00137 <span class="comment">            */</span><a name="l00138"></a><a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#919018c9944f9ff9d2dda2bb136ad40a">00138</a>             TInt <a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#919018c9944f9ff9d2dda2bb136ad40a">iValue</a>;    <a name="l00139"></a>00139         };<a name="l00140"></a>00140 <a name="l00141"></a>00141 <span class="comment"></span><a name="l00142"></a>00142 <span class="comment">        /**</span><a name="l00143"></a>00143 <span class="comment">        * TChatSdpAttributeParser</span><a name="l00144"></a>00144 <span class="comment">        * Construct a TChatSdpAttributeParser</span><a name="l00145"></a>00145 <span class="comment">        * @param aNodeList the list of expected nodes </span><a name="l00146"></a>00146 <span class="comment">        * @param aObserver an observer to read specified node values</span><a name="l00147"></a>00147 <span class="comment">        */</span><a name="l00148"></a>00148         <a class="code" href="class_t_chat_sdp_attribute_parser.html#74cfd209bafb0bd78f5cb065aeac3013">TChatSdpAttributeParser</a>( <a name="l00149"></a>00149             RArray&lt;TChatSdpAttributeParser::TChatSdpAttributeNode&gt;&amp; aNodeList,<a name="l00150"></a>00150             <a class="code" href="class_m_chat_sdp_attribute_notifier.html">MChatSdpAttributeNotifier</a>&amp; aObserver );<a name="l00151"></a>00151 <span class="comment"></span><a name="l00152"></a>00152 <span class="comment">                /**</span><a name="l00153"></a>00153 <span class="comment">        * ~TChatSdpAttributeParser</span><a name="l00154"></a>00154 <span class="comment">        * Destructor</span><a name="l00155"></a>00155 <span class="comment">        */</span><a name="l00156"></a>00156         <span class="keyword">virtual</span> <a class="code" href="class_t_chat_sdp_attribute_parser.html#7b9e184cdc48bd25f070d3f0afdda1d3">~TChatSdpAttributeParser</a>();<a name="l00157"></a>00157 <span class="comment"></span><a name="l00158"></a>00158 <span class="comment">        /**</span><a name="l00159"></a>00159 <span class="comment">        * HasFinished</span><a name="l00160"></a>00160 <span class="comment">        * Check if parsing processed the whole list</span><a name="l00161"></a>00161 <span class="comment">        * @return true is the index refers to the EFinished node</span><a name="l00162"></a>00162 <span class="comment">        */</span><a name="l00163"></a>00163         TBool <a class="code" href="class_t_chat_sdp_attribute_parser.html#ba5408005cbe1bf273e78972661ec9d5">HasFinished</a>() <span class="keyword">const</span>;<a name="l00164"></a>00164 <a name="l00165"></a>00165     <span class="keyword">public</span>: <span class="comment">// from MSdpAttributeValueVisitor</span><a name="l00166"></a>00166 <span class="comment"></span><a name="l00167"></a>00167 <span class="comment">        /**</span><a name="l00168"></a>00168 <span class="comment">        * VisitAttributeValueL</span><a name="l00169"></a>00169 <span class="comment">        * Process a data element</span><a name="l00170"></a>00170 <span class="comment">        * @param aValue the data element </span><a name="l00171"></a>00171 <span class="comment">        * @param aType the type of the data element</span><a name="l00172"></a>00172 <span class="comment">        */</span><a name="l00173"></a>00173         <span class="keywordtype">void</span> <a class="code" href="class_t_chat_sdp_attribute_parser.html#1b70d77b7dc10935f08574fc1ec3e9ed">VisitAttributeValueL</a>( CSdpAttrValue&amp; aValue, <a name="l00174"></a>00174             TSdpElementType aType );<a name="l00175"></a>00175 <span class="comment"></span><a name="l00176"></a>00176 <span class="comment">        /**</span><a name="l00177"></a>00177 <span class="comment">        * StartListL</span><a name="l00178"></a>00178 <span class="comment">        * Process the start of a data element list</span><a name="l00179"></a>00179 <span class="comment">        * @param aList the data element list </span><a name="l00180"></a>00180 <span class="comment">        */</span><a name="l00181"></a>00181         <span class="keywordtype">void</span> <a class="code" href="class_t_chat_sdp_attribute_parser.html#4b7b6774453ca1580c2f0aebc4002ffe">StartListL</a>( CSdpAttrValueList&amp; aList );<a name="l00182"></a>00182 <span class="comment"></span><a name="l00183"></a>00183 <span class="comment">        /**</span><a name="l00184"></a>00184 <span class="comment">        * EndListL</span><a name="l00185"></a>00185 <span class="comment">        * Process the end of a data element list</span><a name="l00186"></a>00186 <span class="comment">        */</span><a name="l00187"></a>00187         <span class="keywordtype">void</span> <a class="code" href="class_t_chat_sdp_attribute_parser.html#40a01b5f18f581c7b8e9c1907b8bdba1">EndListL</a>();<a name="l00188"></a>00188 <a name="l00189"></a>00189     <span class="keyword">private</span>:    <span class="comment">// Functions from base classes</span><a name="l00190"></a>00190 <span class="comment"></span><a name="l00191"></a>00191 <span class="comment">        /**</span><a name="l00192"></a>00192 <span class="comment">        * CheckTypeL</span><a name="l00193"></a>00193 <span class="comment">        * Check the type of the current node is the same as </span><a name="l00194"></a>00194 <span class="comment">        * the specified type.</span><a name="l00195"></a>00195 <span class="comment">        * @param aElementType the type of the current data element</span><a name="l00196"></a>00196 <span class="comment">        */</span><a name="l00197"></a>00197         <span class="keywordtype">void</span> <a class="code" href="class_t_chat_sdp_attribute_parser.html#f4272d2abd5aed5a16b71115a76a0c5a">CheckTypeL</a>( TSdpElementType aElementType ) <span class="keyword">const</span>;<a name="l00198"></a>00198 <span class="comment"></span><a name="l00199"></a>00199 <span class="comment">        /**</span><a name="l00200"></a>00200 <span class="comment">        * CheckValueL</span><a name="l00201"></a>00201 <span class="comment">        * Check the value of the current node is the same as the specified value</span><a name="l00202"></a>00202 <span class="comment">        * @param aValue the value of the current data element.</span><a name="l00203"></a>00203 <span class="comment">        */</span><a name="l00204"></a>00204         <span class="keywordtype">void</span> <a class="code" href="class_t_chat_sdp_attribute_parser.html#0ea935565972e69a5dc8dd49268b0b39">CheckValueL</a>( CSdpAttrValue&amp; aValue ) <span class="keyword">const</span>;<a name="l00205"></a>00205 <span class="comment"></span><a name="l00206"></a>00206 <span class="comment">        /**</span><a name="l00207"></a>00207 <span class="comment">        * ReadValueL</span><a name="l00208"></a>00208 <span class="comment">        * Pass the data element value to the observer</span><a name="l00209"></a>00209 <span class="comment">        * @param aValue the value of the current data element.</span><a name="l00210"></a>00210 <span class="comment">        */</span><a name="l00211"></a>00211         <span class="keywordtype">void</span> <a class="code" href="class_t_chat_sdp_attribute_parser.html#61bda7e6ece5da3a9e7f094cbc8c9225">ReadValueL</a>( CSdpAttrValue&amp; aValue ) <span class="keyword">const</span>;<a name="l00212"></a>00212 <span class="comment"></span><a name="l00213"></a>00213 <span class="comment">        /**</span><a name="l00214"></a>00214 <span class="comment">        * AdvanceL</span><a name="l00215"></a>00215 <span class="comment">        * Advance to the next node. Leaves with KErrEof </span><a name="l00216"></a>00216 <span class="comment">        * if at the finished node.</span><a name="l00217"></a>00217 <span class="comment">        */</span><a name="l00218"></a>00218         <span class="keywordtype">void</span> <a class="code" href="class_t_chat_sdp_attribute_parser.html#528c8830ba4af2fd5ef6ff1ebd2efe9f">AdvanceL</a>();<a name="l00219"></a>00219 <a name="l00220"></a>00220     <span class="keyword">private</span>:    <span class="comment">// data</span><a name="l00221"></a>00221 <span class="comment"></span><a name="l00222"></a>00222 <span class="comment">        /** </span><a name="l00223"></a>00223 <span class="comment">        * iObserver the observer to read values </span><a name="l00224"></a>00224 <span class="comment">        */</span><a name="l00225"></a><a class="code" href="class_t_chat_sdp_attribute_parser.html#5598d19cc10719afd28055422087a200">00225</a>         <a class="code" href="class_m_chat_sdp_attribute_notifier.html">MChatSdpAttributeNotifier</a>&amp; <a class="code" href="class_t_chat_sdp_attribute_parser.html#5598d19cc10719afd28055422087a200">iObserver</a>;<a name="l00226"></a>00226 <span class="comment"></span><a name="l00227"></a>00227 <span class="comment">        /** </span><a name="l00228"></a>00228 <span class="comment">        * iNodeList a list defining the expected </span><a name="l00229"></a>00229 <span class="comment">        * structure of the value </span><a name="l00230"></a>00230 <span class="comment">        */</span><a name="l00231"></a><a class="code" href="class_t_chat_sdp_attribute_parser.html#4319c6fe895a80606b244ec1c6bbf994">00231</a>         RArray&lt;TChatSdpAttributeParser::TChatSdpAttributeNode&gt;&amp; <a class="code" href="class_t_chat_sdp_attribute_parser.html#4319c6fe895a80606b244ec1c6bbf994">iNodeList</a>;<a name="l00232"></a>00232     <span class="comment"></span><a name="l00233"></a>00233 <span class="comment">        /** </span><a name="l00234"></a>00234 <span class="comment">        * iCurrentNodeIndex the index of the current node in iNodeList </span><a name="l00235"></a>00235 <span class="comment">        */</span><a name="l00236"></a><a class="code" href="class_t_chat_sdp_attribute_parser.html#ef70e47ade28a45d750e36e35f2bea06">00236</a>         TInt <a class="code" href="class_t_chat_sdp_attribute_parser.html#ef70e47ade28a45d750e36e35f2bea06">iCurrentNodeIndex</a>;<a name="l00237"></a>00237         <span class="comment"></span><a name="l00238"></a>00238 <span class="comment">        /** </span><a name="l00239"></a>00239 <span class="comment">        * iCurrentNode the current node </span><a name="l00240"></a>00240 <span class="comment">        */</span><a name="l00241"></a><a class="code" href="class_t_chat_sdp_attribute_parser.html#06a26af66f62382ad861a56a88e22a2b">00241</a>         <a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html">TChatSdpAttributeNode</a> <a class="code" href="class_t_chat_sdp_attribute_parser.html#06a26af66f62382ad861a56a88e22a2b">iCurrentNode</a>;<a name="l00242"></a>00242     };<a name="l00243"></a>00243 <a name="l00244"></a>00244 <a name="l00245"></a>00245 <a name="l00246"></a>00246 <span class="preprocessor">#endif // CHATSDPATTRIBUTEPARSER_H</span><a name="l00247"></a>00247 <span class="preprocessor"></span><a name="l00248"></a>00248 <span class="comment">// End of File</span></pre></div><hr><table x-use-null-cells		style="x-cell-content-align: top;				width: 100%;				border-spacing: 0px;				border-spacing: 0px;"		cellspacing=0		width=100%>  <col style="width: 50%;">  <col style="width: 50%;">  <tr style="x-cell-content-align: top;"	valign=top>  <td style="width: 50%;			padding-right: 10px;			padding-left: 10px;			border-right-style: None;			border-left-style: None;			border-top-style: None;			border-bottom-style: None;"	width=50%>  <p style="font-family: Arial;"><small style="font-size: smaller;">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -