5.2.23
06/10/2023

[#230] How can I Create a Jingle::Content object by using a Tag instance?
Summary How can I Create a Jingle::Content object by using a Tag instance?
Queue gloox
Queue Version 1.0.10
Type Bug
State Unconfirmed
Priority 1. Low
Owners js (at) camaya (dot) net
Requester leerymatthew (at) gmail (dot) com
Created 04/15/2014 (3343 days ago)
Due
Updated 04/16/2014 (3342 days ago)
Assigned
Resolved

History
04/16/2014 01:35:13 AM leerymatthew (at) gmail (dot) com Comment #5 Reply to this comment
Right, I see.

Do you need the PluginFactory? Or does it not work for you because 
the Content ctor checks for factory == 0?
Oh, I'm sorry! I think I do not express the problem clearly. As you 
say,  it do not works because the Content ctor checks for factory == 0
04/15/2014 10:12:56 AM Jakob Schröter Comment #4 Reply to this comment
Right, I see.

Do you need the PluginFactory? Or does it not work for you because the 
Content ctor checks for factory == 0?
04/15/2014 09:48:39 AM leerymatthew (at) gmail (dot) com Comment #3 Reply to this comment
The Content( const Tag* tag = 0, PluginFactory* factory = 0 ) ctor 
is private because it is intended for internal use only, i.e. to 
parse incoming stanzas.

What is your use case? Why do you have a Tag that you want to use to 
create a Content object?
Firstly, the Content( const Tag* tag = 0, PluginFactory* factory = 0 ) 
ctor is not private now, the PluginFactory() ctor is private.
Secondly, I want to send some strings to remote, so I just pack them 
into a tag object, it's very flexible I think.
04/15/2014 09:27:11 AM Jakob Schröter Comment #2
Priority ⇒ 1. Low
Assigned to Jakob Schröter
Reply to this comment
The Content( const Tag* tag = 0, PluginFactory* factory = 0 ) ctor is 
private because it is intended for internal use only, i.e. to parse 
incoming stanzas.

What is your use case? Why do you have a Tag that you want to use to 
create a Content object?
04/15/2014 09:22:09 AM leerymatthew (at) gmail (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ How can I Create a Jingle::Content object by using a Tag instance?
Queue ⇒ gloox
Reply to this comment
I want to create a Jingle::Content object by calling Content( const 
Tag* tag = 0, PluginFactory* factory = 0 ),  but the PluginFactory's 
constructor is private. How should I do this?