📄 _address_book_engine_8h-source.html
字号:
<a name="l00218"></a>00218 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_address_book_engine.html#5c88d61ffcf6558d9df3aa9ec9b60a33">EndElementL</a>(<span class="keyword">const</span> TDesC8& aNsUri, <a name="l00219"></a>00219 <span class="keyword">const</span> TDesC8& aLocalName,<a name="l00220"></a>00220 <span class="keyword">const</span> TDesC8& aQName);<a name="l00221"></a>00221 <a name="l00222"></a>00222 <span class="keyword">private</span>: <span class="comment">// Constructor</span><a name="l00223"></a>00223 <span class="comment"></span><a name="l00224"></a>00224 <span class="comment"> /**</span><a name="l00225"></a>00225 <span class="comment"> * C++ default constructor.</span><a name="l00226"></a>00226 <span class="comment"> */</span><a name="l00227"></a>00227 <a class="code" href="class_c_address_book_engine.html#8216643f0db69c602b5e810edec1bdd3">CAddressBookEngine</a>(<a class="code" href="class_m_address_book_engine_observer.html">MAddressBookEngineObserver</a>& aObserver);<a name="l00228"></a>00228 <span class="comment"></span><a name="l00229"></a>00229 <span class="comment"> /**</span><a name="l00230"></a>00230 <span class="comment"> * By default Symbian 2nd phase constructor is private.</span><a name="l00231"></a>00231 <span class="comment"> */</span><a name="l00232"></a>00232 <span class="keywordtype">void</span> <a class="code" href="class_c_address_book_engine.html#9ce34ba0b947863222da3c63d0481044">ConstructL</a>();<a name="l00233"></a>00233 <a name="l00234"></a>00234 <a name="l00235"></a>00235 <span class="comment">// New functions</span><a name="l00236"></a>00236 <span class="comment"></span><a name="l00237"></a>00237 <span class="comment"> /**</span><a name="l00238"></a>00238 <span class="comment"> * Register IdentityProvider and associates Forum Nokia's Addressbook </span><a name="l00239"></a>00239 <span class="comment"> * service to be known to trust in this IDP. Method creates instance</span><a name="l00240"></a>00240 <span class="comment"> * of the CSenServiceManager to achieve this Identity Provider (IDP)</span><a name="l00241"></a>00241 <span class="comment"> * registration. IDP is also registered as Authentication Service (AS)</span><a name="l00242"></a>00242 <span class="comment"> * Description, because in Liberty ID-WSF, they are the same service. </span><a name="l00243"></a>00243 <span class="comment"> * @return status code or -1 if error appears</span><a name="l00244"></a>00244 <span class="comment"> */</span><a name="l00245"></a>00245 TInt <a class="code" href="class_c_address_book_engine.html#27169094a7dab01d3a23984924dc0819">RegisterIdentityProviderL</a>(); <a name="l00246"></a>00246 <a name="l00247"></a>00247 <span class="comment">// Functions from base classes</span><a name="l00248"></a>00248 <span class="comment"></span><a name="l00249"></a>00249 <span class="comment"> /**</span><a name="l00250"></a>00250 <span class="comment"> * From MSenServiceConsumer, handles receiving messages from the SendL()</span><a name="l00251"></a>00251 <span class="comment"> * (CSenServiceConnection)function call </span><a name="l00252"></a>00252 <span class="comment"> * @param aMessage - descriptor on content of receiving Message </span><a name="l00253"></a>00253 <span class="comment"> */</span><a name="l00254"></a>00254 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_address_book_engine.html#6f6aab8e9e405117f0c28455489d2b8a">HandleMessageL</a>(<span class="keyword">const</span> TDesC8& aMessage);<a name="l00255"></a>00255 <span class="comment"></span><a name="l00256"></a>00256 <span class="comment"> /**</span><a name="l00257"></a>00257 <span class="comment"> * From MSenServiceConsumer, handles receiving errors about the connection to be initialized </span><a name="l00258"></a>00258 <span class="comment"> * or from the SendL()(CSenServiceConnection)function call </span><a name="l00259"></a>00259 <span class="comment"> * @param aErrorCode - code of error</span><a name="l00260"></a>00260 <span class="comment"> * @param aError - descriptor on content of receiving Error </span><a name="l00261"></a>00261 <span class="comment"> */</span><a name="l00262"></a>00262 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_address_book_engine.html#d19d90d4095917ffb09489ecd08cb5ad">HandleErrorL</a>(<span class="keyword">const</span> TInt aErrorCode, <a name="l00263"></a>00263 <span class="keyword">const</span> TDesC8& aError);<a name="l00264"></a>00264 <span class="comment"></span><a name="l00265"></a>00265 <span class="comment"> /**</span><a name="l00266"></a>00266 <span class="comment"> * From MSenServiceConsumer, handles receiving status info about the connection</span><a name="l00267"></a>00267 <span class="comment"> * to be initialized. Is called by CSenServiceConnectionImpl::RunL() </span><a name="l00268"></a>00268 <span class="comment"> * that is called by active scheduler from CAddressBookAppUi::HandleCommandL(TInt aCommand) </span><a name="l00269"></a>00269 <span class="comment"> * in case "EAddressBookCmdAppConnect"</span><a name="l00270"></a>00270 <span class="comment"> * @param aStatus - may be </span><a name="l00271"></a>00271 <span class="comment"> * KSenConnectionStatusNew, </span><a name="l00272"></a>00272 <span class="comment"> * KSenConnectionStatusReady,</span><a name="l00273"></a>00273 <span class="comment"> * or STATUS_EXRIRED </span><a name="l00274"></a>00274 <span class="comment"> */</span><a name="l00275"></a>00275 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_address_book_engine.html#0faeae2b736ff345e0f3392bc5ade7e4">SetStatus</a>(<span class="keyword">const</span> TInt aStatus);<a name="l00276"></a>00276 <span class="comment"></span><a name="l00277"></a>00277 <span class="comment"> /**</span><a name="l00278"></a>00278 <span class="comment"> * This helper function resolves the ResourceID from WSF using</span><a name="l00279"></a>00279 <span class="comment"> * ServiceDescriptionL() getter method.</span><a name="l00280"></a>00280 <span class="comment"> * @return pointer to resolved ResourceID element,</span><a name="l00281"></a>00281 <span class="comment"> * which content indicates whether it is</span><a name="l00282"></a>00282 <span class="comment"> * encrypted or not; content of encrypted</span><a name="l00283"></a>00283 <span class="comment"> * ResourceID includes "EncryptedData" </span><a name="l00284"></a>00284 <span class="comment"> * element.</span><a name="l00285"></a>00285 <span class="comment"> */</span><a name="l00286"></a>00286 <span class="keyword">virtual</span> CSenElement* <a class="code" href="class_c_address_book_engine.html#14d7e3cddf3d688054a3b08f070919af">ResolveResourceIdL</a>();<a name="l00287"></a>00287 <a name="l00288"></a>00288 <a name="l00289"></a>00289 <span class="keyword">private</span>: <span class="comment">// Data</span><a name="l00290"></a><a class="code" href="class_c_address_book_engine.html#941a218168fb890451d01114c235c0cc">00290</a> RPointerArray<CAddressBookContact> <a class="code" href="class_c_address_book_engine.html#941a218168fb890451d01114c235c0cc">iContacts</a>;<a name="l00291"></a><a class="code" href="class_c_address_book_engine.html#20b48b0c027e674d1e8d373e2c83cc84">00291</a> TInt <a class="code" href="class_c_address_book_engine.html#20b48b0c027e674d1e8d373e2c83cc84">iConnectionState</a>;<a name="l00292"></a><a class="code" href="class_c_address_book_engine.html#f702971f167e073a81134fd2876d0298">00292</a> CSenServiceConnection* <a class="code" href="class_c_address_book_engine.html#f702971f167e073a81134fd2876d0298">iConnection</a>;<a name="l00293"></a><a class="code" href="class_c_address_book_engine.html#d8033daa9b951c54149345b6871648bb">00293</a> CSenXmlServiceDescription* <a class="code" href="class_c_address_book_engine.html#d8033daa9b951c54149345b6871648bb">iSession</a>;<a name="l00294"></a>00294 <a name="l00295"></a><a class="code" href="class_c_address_book_engine.html#3695bb8e65e087ac6017ea86b6bb6ff5">00295</a> CSenXmlReader* <a class="code" href="class_c_address_book_engine.html#3695bb8e65e087ac6017ea86b6bb6ff5">iXmlReader</a>;<a name="l00296"></a>00296 <a name="l00297"></a><a class="code" href="class_c_address_book_engine.html#5598d19cc10719afd28055422087a200">00297</a> <a class="code" href="class_m_address_book_engine_observer.html">MAddressBookEngineObserver</a>& <a class="code" href="class_c_address_book_engine.html#5598d19cc10719afd28055422087a200">iObserver</a>; <a name="l00298"></a><a class="code" href="class_c_address_book_engine.html#508f9458a5c8d3a3b8f13fd61eeef60f">00298</a> CSenServiceManager* <a class="code" href="class_c_address_book_engine.html#508f9458a5c8d3a3b8f13fd61eeef60f">iManager</a>;<a name="l00299"></a><a class="code" href="class_c_address_book_engine.html#1bf2f8bd2d45c91d07cabdb6d4de7f9b">00299</a> CSenDomFragment* <a class="code" href="class_c_address_book_engine.html#1bf2f8bd2d45c91d07cabdb6d4de7f9b">iFaultDelegate</a>;<a name="l00300"></a><a class="code" href="class_c_address_book_engine.html#b07a7dadac01652ed3d4d68d40d79a15">00300</a> TInt <a class="code" href="class_c_address_book_engine.html#b07a7dadac01652ed3d4d68d40d79a15">iErrorState</a>;<a name="l00301"></a>00301 <a name="l00302"></a>00302 <span class="comment">// turns to ETrue after first successfull init.</span><a name="l00303"></a><a class="code" href="class_c_address_book_engine.html#a9d73e80cc98e504272f4ecd8c3bee07">00303</a> TBool <a class="code" href="class_c_address_book_engine.html#a9d73e80cc98e504272f4ecd8c3bee07">iInitialized</a>;<a name="l00304"></a>00304 };<a name="l00305"></a>00305 <a name="l00306"></a>00306 <span class="preprocessor">#endif // ADDRESSBOOKENGINE_H</span><a name="l00307"></a>00307 <span class="preprocessor"></span><a name="l00308"></a>00308 <span class="comment">// End of File</span><a name="l00309"></a>00309 </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 + -