This forum has been archived. All content is frozen. Please use KDE Discuss instead.

gtalkplasmoid

Tags: None
(comma "," separated)
akooos
Registered Member
Posts
3
Karma
0
OS

gtalkplasmoid

Wed Aug 31, 2011 3:25 pm
Hi

Im trying to make a google talk plasmoid...

Im using the QXmpp library to easily connect to google..

https://code.google.com/p/qxmpp/

And here is my project:

http://gtalkplasmoid.svn.sourceforge.net/viewvc/gtalkplasmoid/GoTalk/

I successfully built the qxmpp as shared library (you have to change in the src.pro CONFIG line to CONFIG += static_and_shared)

Problem is that while the examples of the qxmpp project works great..I could not manage to work in my project e.g the rosterHandling...
I assume that my CMakeLists.txt is wrong(it s not correct as it is now I know)..I can compile , run it, but nothing happens only dns resolving...("looking up talk.google ..." see the QXmppClientLog.log)

QXmpp project uses qmake...please use the current 0.3.0 version

I posted on this forum because I hope that you can help me....


Akos
User avatar
dpalacio
Registered Member
Posts
240
Karma
2
OS

Re: gtalkplasmoid  Topic is solved

Fri Sep 02, 2011 2:53 pm
Your Xmpp client is being destroyed when the GoTalk::init() method finishes. You need to keep it alive as a member variable (i.e. you need to define a (pointer) xmmpClient in the plasmoid class).

(to mods: do not delete please)

Last edited by dpalacio on Fri Sep 02, 2011 3:04 pm, edited 1 time in total.


connect(post, SIGNAL(readSignature()), qapp, SLOT(quit()));
akooos
Registered Member
Posts
3
Karma
0
OS

Re: gtalkplasmoid

Fri Sep 02, 2011 9:07 pm
dpalacio wrote:Your Xmpp client is being destroyed when the GoTalk::init() method finishes. You need to keep it alive as a member variable (i.e. you need to define a (pointer) xmmpClient in the plasmoid class).

(to mods: do not delete please)



awkward...I was copy/paste***...not thinking xd 8)

Thank you, please mods delete this whole post/thread
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS

Re: gtalkplasmoid

Fri Sep 02, 2011 9:26 pm
We normally don't delete posts unless they're spam or a grave violation of our . Marking the topic as solved (as you've done) should be enough.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]