KDECore
KDE Namespace Reference
Namespace for general KDE functions. More...
Classes | |
class | NullType |
This empty class serves as a terminal marker for typelists. More... | |
Functions | |
int | access (const QString &path, int mode) |
int | chmod (const QString &path, mode_t 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) |
int | open (const QString &pathname, int flags, mode_t mode) |
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
int KDE::access | ( | const QString & | path, | |
int | mode | |||
) |
Definition at line 123 of file kde_file_win.cpp.
int KDE::chmod | ( | const QString & | path, | |
mode_t | mode | |||
) |
Definition at line 138 of file kde_file_win.cpp.
void KDE::freeaddrinfo | ( | struct addrinfo * | ai | ) |
int KDE::getnameinfo | ( | const struct sockaddr * | sa, | |
kde_socklen_t | salen, | |||
char * | host, | |||
size_t | hostlen, | |||
char * | serv, | |||
size_t | servlen, | |||
int | flags | |||
) |
const char* KDE::inet_ntop | ( | int | af, | |
const void * | cp, | |||
char * | buf, | |||
size_t | len | |||
) |
int KDE::inet_pton | ( | int | af, | |
const char * | cp, | |||
void * | buf | |||
) |
int KDE::lstat | ( | const QString & | path, | |
KDE_struct_stat * | buf | |||
) |
Definition at line 143 of file kde_file_win.cpp.
int KDE::mkdir | ( | const QString & | pathname, | |
mode_t | ||||
) |
Definition at line 148 of file kde_file_win.cpp.
int KDE::open | ( | const QString & | pathname, | |
int | flags, | |||
mode_t | mode | |||
) |
Definition at line 153 of file kde_file_win.cpp.
Definition at line 158 of file kde_file_win.cpp.
int KDE::stat | ( | const QString & | path, | |
KDE_struct_stat * | buf | |||
) |
Definition at line 166 of file kde_file_win.cpp.
int KDE::utime | ( | const QString & | filename, | |
struct utimbuf * | buf | |||
) |
Definition at line 206 of file kde_file_win.cpp.
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.
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.
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.
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.
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
const int KDE::resolverFlags = KRF_getaddrinfo | KRF_resolver | KRF_afinet6 | KRF_inet_ntop | KRF_inet_pton |
For internal use only.