diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-10-26 05:25:35 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-10-26 05:25:35 +0000 |
commit | dbeb703e133db47a744bec62a7c990f7ef0750d5 (patch) | |
tree | 35f5c062a4fdcfb2f52ef7028dd1cef803606375 /pjlib/src/pj/os_symbian.h | |
parent | 5ed4dadd94be8e20c9b33f89772c135d992473d2 (diff) |
Ticket #403: Ability to specify RConnection instance etc in PJLIB Symbian
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1525 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/os_symbian.h')
-rw-r--r-- | pjlib/src/pj/os_symbian.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/pjlib/src/pj/os_symbian.h b/pjlib/src/pj/os_symbian.h index 5fabdc6e..2b14ecd6 100644 --- a/pjlib/src/pj/os_symbian.h +++ b/pjlib/src/pj/os_symbian.h @@ -20,6 +20,7 @@ #define __OS_SYMBIAN_H__ #include <pj/sock.h> +#include <pj/os.h> #include <pj/string.h> #include <e32base.h> @@ -195,6 +196,11 @@ public: static PjSymbianOS *Instance(); // + // Set parameters + // + void SetParameters(pj_symbianos_params *params); + + // // Initialize. // TInt Initialize(); @@ -212,9 +218,15 @@ public: // Get RSocketServ instance to be used by all sockets. RSocketServ &SocketServ() { - return socketServ_; + return appSocketServ_ ? *appSocketServ_ : socketServ_; } + // Get RConnection instance, if any. + RConnection *Connection() + { + return appConnection_; + } + // Convert TInetAddr to pj_sockaddr_in static inline void Addr2pj(const TInetAddr & sym_addr, pj_sockaddr_in &pj_addr) @@ -243,7 +255,7 @@ public: // Get RHostResolver instance RHostResolver & GetResolver() { - return hostResolver_; + return appHostResolver_ ? *appHostResolver_ : hostResolver_; } @@ -296,6 +308,11 @@ private: CPjTimeoutTimer *selectTimeoutTimer_; + // App parameters + RSocketServ *appSocketServ_; + RConnection *appConnection_; + RHostResolver *appHostResolver_; + private: PjSymbianOS(); }; |