Hi, >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On >Behalf Of ext Jim Thomas >Sent: Wednesday, July 02, 2008 4:58 PM >To: sofia-sip-devel@lists.sourceforge.net >Subject: [Sofia-sip-devel] Sofia-SIP conceptual model with >regard to hmagic > >I am experimenting with Sofia-SIP and like it very much. >I am currently carrying a 'call' structure around via the >nua_hmagic_t hmagic pointer. It works well. >However, it looks like this same hmagic pointer may also be >used in some non-call situations such as registration. >In anticipation of a C++ object model, I am trying to think >about what to name a base class to be conveyed via the hmagic >pointer, where derived classes will have names suitable to >their specialization. >I suspect one derived class will be 'Call', but I don't know >enough yet about Sofia SIP to anticipate proper terminology >for the base class and other derived classes alongside Call. >Any suggestions? I would like to name these things in a way >that aligns well with the Sofia-SIP conceptual model and any >existing naming conventions.
In the Telepathy-SofiaSIP trunk refactored a few months ago, I use a "NUA event target" base class which encapsulates a NUA handle and converts callback events for that handle into GObject signal emissions. The classes for call, registration maintenance, etc. inherit from that base class and handle some of the signals. A close approach in C++ could be to have the base class convert events into virtual method calls, or use a C++ signal/slot framework. HTH, Mikhail ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel