Hello again
i would like if there be some settings for component to enable automatic
appending "from=component.xxx.yyy" parameter to all stanzas. Source
would be same as that we connected in with. That is because components
are connected in different way and servers does not do source managing
for them. They have to specify from atribute themselves always. It would
be nice if for stanzas without from attribute gloox will add it itself,
or it can be told to.
Also i want ask how memory management works with tags? When i do New
Tag("x") for example, then i add to it new Tag("y") asi children. How
should i free its memory? should i free both y and x, only x as y will
be freed by x destructor, or nothing? I tried to free Tag i created and
it crashed. It there general guide for good memory management to follow
in gloox?
Last note i have about data forms. Would it be possible making next
constructor for DataFormField(const std::string &var, const std::string
&label = "", enum type = TYPE_FIELD_TEXT_SINGLE) ?
You know it is weird when i must have always three lines for every
field. If there would be also overloaded operator=(const std::string
&s), i could make field with
DataFormField f("jid", "Jabber ID");
f="someone@xxxxxxxxxxxxx";
very easy form. Form fields also look like how they would be offered to
user a little, so if you have more, you recognize sooner which one is this.
Also i am missing a little addField method in DataForm. It would be
simplier without need for extra list variable and setFields after that.
keep excelent work,
good night
--
Petr Menšík
Radní Sdružení Tišnet
--
gloox-dev mailing list
to unsubscribe:
send a message with subject 'unsubscribe gloox-dev' to minimalist@xxxxxxxxxx