libs/main

KOffice Namespace Reference

Namespace for general KOFFICE functions. More...

Functions

unsigned int version ()
unsigned int versionMajor ()
unsigned int versionMinor ()
unsigned int versionRelease ()
const char * versionString ()

Detailed Description

Namespace for general KOFFICE functions.


Function Documentation

unsigned int KOffice::version (  ) 

Returns the encoded number of KOffice's version, see the KOFFICE_VERSION macro.

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

Returns:
the version number, encoded in a single uint

Definition at line 28 of file kofficeversion.cc.

unsigned int KOffice::versionMajor (  ) 

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

1 for KOffice 1.2.3.

Returns:
the major version number

Definition at line 33 of file kofficeversion.cc.

unsigned int KOffice::versionMinor (  ) 

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

2 for KOffice 1.2.3.

Returns:
the minor version number

Definition at line 38 of file kofficeversion.cc.

unsigned int KOffice::versionRelease (  ) 

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

3 for KOffice 1.2.3.

Returns:
the release number

Definition at line 43 of file kofficeversion.cc.

const char * KOffice::versionString (  ) 

Returns the KOffice version as string, e.g.

"1.2.3".

Returns:
the KOffice version. You can keep the string forever

Definition at line 48 of file kofficeversion.cc.