KDE

KDE Namespace Reference

Functions

int access (const QString &path, int mode)
 
int chmod (const QString &path, mode_t mode)
 
FILE * fopen (const QString &pathname, const char *mode)
 
void freeaddrinfo (struct addrinfo *ai)
 
int getaddrinfo (const char *name, const char *service, const struct addrinfo *hint, struct addrinfo **result)
 
int getnameinfo (const struct sockaddr *sa, kde_socklen_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags)
 
const char * inet_ntop (int af, const void *cp, char *buf, size_t len)
 
int inet_pton (int af, const char *cp, void *buf)
 
int lstat (const QString &path, KDE_struct_stat *buf)
 
int mkdir (const QString &pathname, mode_t mode)
 
int open (const QString &pathname, int flags, mode_t mode=0)
 
int rename (const QString &in, const QString &out)
 
int stat (const QString &path, KDE_struct_stat *buf)
 
int utime (const QString &filename, struct utimbuf *buf)
 
unsigned int version ()
 
unsigned int versionMajor ()
 
unsigned int versionMinor ()
 
unsigned int versionRelease ()
 
const char * versionString ()
 

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

◆ access()

int KDE::access ( const QString path,
int  mode 
)
inline

replacement for access() to handle filenames in a platform independent way

Definition at line 179 of file kde_file.h.

◆ chmod()

int KDE::chmod ( const QString path,
mode_t  mode 
)
inline

replacement for chmod() to handle filenames in a platform independent way

Definition at line 183 of file kde_file.h.

◆ fopen()

FILE * KDE::fopen ( const QString pathname,
const char *  mode 
)
inline

replacement for fopen()/::fopen64() to handle filenames in a platform independent way

Definition at line 187 of file kde_file.h.

◆ freeaddrinfo()

void KDE::freeaddrinfo ( struct addrinfo ai)

Definition at line 856 of file netsupp.cpp.

◆ getaddrinfo()

int KDE::getaddrinfo ( const char *  name,
const char *  service,
const struct addrinfo hint,
struct addrinfo **  result 
)

Definition at line 755 of file netsupp.cpp.

◆ getnameinfo()

int KDE::getnameinfo ( const struct sockaddr *  sa,
kde_socklen_t  salen,
char *  host,
size_t  hostlen,
char *  serv,
size_t  servlen,
int  flags 
)

Definition at line 914 of file netsupp.cpp.

◆ inet_ntop()

const char* KDE::inet_ntop ( int  af,
const void *  cp,
char *  buf,
size_t  len 
)

◆ inet_pton()

int KDE::inet_pton ( int  af,
const char *  cp,
void *  buf 
)

◆ lstat()

int KDE::lstat ( const QString path,
KDE_struct_stat *  buf 
)
inline

replacement for lstat()/::lstat64() to handle filenames in a platform independent way

Definition at line 191 of file kde_file.h.

◆ mkdir()

int KDE::mkdir ( const QString pathname,
mode_t  mode 
)
inline

replacement for mkdir() to handle pathnames in a platform independent way

Definition at line 195 of file kde_file.h.

◆ open()

int KDE::open ( const QString pathname,
int  flags,
mode_t  mode = 0 
)
inline

replacement for open()/::open64() to handle filenames in a platform independent way

Definition at line 199 of file kde_file.h.

◆ rename()

int KDE::rename ( const QString in,
const QString out 
)
inline

replacement for rename() to handle pathnames in a platform independent way

Definition at line 203 of file kde_file.h.

◆ stat()

int KDE::stat ( const QString path,
KDE_struct_stat *  buf 
)
inline

replacement for stat()/::stat64() to handle filenames in a platform independent way

Definition at line 207 of file kde_file.h.

◆ utime()

int KDE::utime ( const QString filename,
struct utimbuf *  buf 
)
inline

replacement for utime() to handle filenames in a platform independent way

Definition at line 211 of file kde_file.h.

◆ version()

unsigned int KDE::version ( )

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

In contrary to the macro KDE_VERSION this function returns the number of the actually 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

Definition at line 24 of file kdeversion.cpp.

◆ versionMajor()

unsigned int KDE::versionMajor ( )

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

4 for KDE 4.1.2.

Returns
the major version number

Definition at line 29 of file kdeversion.cpp.

◆ versionMinor()

unsigned int KDE::versionMinor ( )

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

1 for KDE 4.1.2.

Returns
the minor version number

Definition at line 34 of file kdeversion.cpp.

◆ versionRelease()

unsigned int KDE::versionRelease ( )

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

2 for KDE 4.1.2.

Returns
the release number

Definition at line 39 of file kdeversion.cpp.

◆ versionString()

const char * KDE::versionString ( )

Returns the KDE version as string, e.g.

"4.1.2".

On contrary to the macro KDE_VERSION_STRING this function returns the version number of KDE at runtime.

Returns
the KDE version. You can keep the string forever

Definition at line 44 of file kdeversion.cpp.

Variable Documentation

◆ resolverFlags

const int KDE::resolverFlags = KRF_getaddrinfo | KRF_resolver | KRF_afinet6 | KRF_inet_ntop | KRF_inet_pton
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 4 2023 03:59:44 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.