Changeset 2482 for pjproject/branches/1.0/pjlib/src/pj/os_symbian.h
- Timestamp:
- Mar 2, 2009 3:50:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.0/pjlib/src/pj/os_symbian.h
r2394 r2482 314 314 } 315 315 316 // 317 // Return true if the access point connection is up 318 // 319 bool IsConnectionUp() const 320 { 321 return isConnectionUp_; 322 } 323 324 // 325 // Set access point connection status 326 // 327 void SetConnectionStatus(bool up) 328 { 329 isConnectionUp_ = up; 330 } 316 331 317 332 // … … 354 369 355 370 private: 371 bool isConnectionUp_; 372 356 373 bool isSocketServInitialized_; 357 374 RSocketServ socketServ_; … … 375 392 }; 376 393 394 // This macro is used to check the access point connection status and return 395 // failure if the AP connection is down or unusable. See the documentation 396 // of pj_symbianos_set_connection_status() for more info 397 #define PJ_SYMBIAN_CHECK_CONNECTION() \ 398 PJ_SYMBIAN_CHECK_CONNECTION2(PJ_ECANCELLED) 399 400 #define PJ_SYMBIAN_CHECK_CONNECTION2(retval) \ 401 do { \ 402 if (!PjSymbianOS::Instance()->IsConnectionUp()) \ 403 return retval; \ 404 } while (0); 377 405 378 406 #endif /* __OS_SYMBIAN_H__ */
Note: See TracChangeset
for help on using the changeset viewer.