kdecore Library API Documentation

KDE Namespace Reference

Namespace for general KDE functions. More...


Functions

KDECORE_EXPORT unsigned int version ()
KDECORE_EXPORT unsigned int versionMajor ()
KDECORE_EXPORT unsigned int versionMinor ()
KDECORE_EXPORT unsigned int versionRelease ()
KDECORE_EXPORT const char * versionString ()
KDECORE_EXPORT int getaddrinfo (const char *name, const char *service, const struct addrinfo *hint, struct addrinfo **result)
KDECORE_EXPORT void freeaddrinfo (struct addrinfo *ai)
KDECORE_EXPORT char * gai_strerror (int errorcode)
KDECORE_EXPORT int getnameinfo (const struct sockaddr *sa, unsigned int salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags)
KDECORE_EXPORT int inet_pton (int af, const char *cp, void *buf)
KDECORE_EXPORT const char * inet_ntop (int af, const void *cp, char *buf, size_t len)

Variables

const int resolverFlags = KRF_getaddrinfo | KRF_resolver | KRF_afinet6 | KRF_inet_ntop | KRF_inet_pton


Detailed Description

Namespace for general KDE functions.

Function Documentation

KDECORE_EXPORT unsigned int KDE::version  ) 
 

Returns the encoded number of KDE's version, see the KDE_VERSION macro.

In contrary to that macro this function returns the number of the actully installed KDE version, not the number of the KDE version that was installed when the program was compiled.

Returns:
the version number, encoded in a single uint
Since:
3.2

KDECORE_EXPORT unsigned int KDE::versionMajor  ) 
 

Returns the major number of KDE's version, e.g.

3 for KDE 3.1.2.

Returns:
the major version number
Since:
3.1

KDECORE_EXPORT unsigned int KDE::versionMinor  ) 
 

Returns the minor number of KDE's version, e.g.

1 for KDE 3.1.2.

Returns:
the minor version number
Since:
3.1

KDECORE_EXPORT unsigned int KDE::versionRelease  ) 
 

Returns the release of KDE's version, e.g.

2 for KDE 3.1.2.

Returns:
the release number
Since:
3.1

KDECORE_EXPORT const char* KDE::versionString  ) 
 

Returns the KDE version as string, e.g.

"3.1.2".

Returns:
the KDE version. You can keep the string forever
Since:
3.1

KDE Logo
This file is part of the documentation for kdecore Library Version 3.4.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed May 4 07:11:41 2005 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003