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

Where is ktcpsocket.h?

Tags: None
(comma "," separated)
Wim
Registered Member
Posts
5
Karma
0

Where is ktcpsocket.h?

Fri Sep 11, 2009 5:01 am
Having spent some time learning Qt, I am now just starting to learn about the KDE libraries, and I already came upon a problem.

I am using Kubuntu 9.04, and I just can't figure out which of the dev packages contains the ktcpsocket header. The KTcpSocket class is part of the KDE Core library, but the kdelibs5-dev package doesn't include the files for this class.

Maybe it is a packaging problem, but I thought to try asking here first.

Any help is appreciated.

Wim
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Where is ktcpsocket.h?

Fri Sep 11, 2009 7:00 am
kdelibs5-dev sounds like the correct package to contain ktcpsocket.h. Please report a bug at Launchpad, as this header has been correctly installed on my Trunk system. You can obtain a copy of ktcpsocket.h from KDE SVN.

http://websvn.kde.org/branches/KDE/4.3/kdelibs/


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Wim
Registered Member
Posts
5
Karma
0

Re: Where is ktcpsocket.h?

Fri Sep 11, 2009 8:20 am
Thanks, I'll submit the bug report.
Wim
Registered Member
Posts
5
Karma
0

Re: Where is ktcpsocket.h?

Thu Sep 24, 2009 2:34 am
Well, I posted a bug report at launchpad, but the reply I got was that "KTcpSocket was only released with KDE 4.3 or higher."

Since Kubuntu 9.04 uses KDE 4.1, that class is not part of kdelibs.

So then my question becomes: how can I know if the code for a class that is listed in the API docs has not been enabled in the release version?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Where is ktcpsocket.h?

Thu Sep 24, 2009 7:11 am
You need to access the version appropriate API docs for your release. These are available from api.kde.org, although KDE 4.1 is getting old now.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Wim
Registered Member
Posts
5
Karma
0

Re: Where is ktcpsocket.h?

Thu Sep 24, 2009 8:23 am
I understand that. Here is the link with the KTcpSocket documentation for KDE 4.1.

http://api.kde.org/4.1-api/kdelibs-apid ... ocket.html

There is also KTcpSocket class documentation in 4.0 and 4.2. You can check by yourself.

The API docs show that KTcpSocket is part of KDE 4.0, 4.1, and 4.2. However, kdelibs5-dev package of Kubuntu 9.04 for KDE 4.2 (not 4.1, my mistake), does not include the class files because KTcpSocket was not part of the release version.

I am confused.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Where is ktcpsocket.h?

Thu Sep 24, 2009 9:06 am
This appears to be a bug in the API documentation generation. It is correct that ktcpsocket.h was not installed until KDE 4.3. As the symbols are already being exported, you can simply copy the ktcpsocket.h file into your source tree.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Wim
Registered Member
Posts
5
Karma
0

Re: Where is ktcpsocket.h?

Thu Sep 24, 2009 11:33 am
Thanks for the clarification.

Should I file a bug report somewhere? Is it possible that other classes are affected?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Where is ktcpsocket.h?

Fri Sep 25, 2009 5:25 am
Yes, it is possible that other classes are affected. Please report a bug to bugs.kde.org.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
SeaJey
Registered Member
Posts
166
Karma
0
OS

Re: Where is ktcpsocket.h?

Fri Sep 25, 2009 8:20 am
Since Kubuntu 9.04 uses KDE 4.1, that class is not part of kdelibs.


Kubuntu 9.04 by default uses KDE 4.2.2
Resent versions are accessible from backports repository btw.


kubuntu 10.04 AMD64 - KDE 4.4
AMD - radeonHD - M-Audio revolution 5.1


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]