• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kviewshell

GOS Class Reference

Operating System dependent functions. More...

#include <GOS.h>

List of all members.


Static Public Member Functions

static GUTF8String basename (const GUTF8String &filename, const char *suffix=0)
static GUTF8String cwd (const GUTF8String &dirname=GUTF8String())
static GUTF8String getenv (const GUTF8String &name)
static void sleep (int milliseconds)
static unsigned long ticks ()

Detailed Description

Operating System dependent functions.

Definition at line 101 of file GOS.h.


Member Function Documentation

GUTF8String GOS::basename ( const GUTF8String &  filename,
const char *  suffix = 0 
) [static]

Returns the last component of file name filename#.

If the filename suffix matches argument suffix#, the filename suffix is removed. This function works like the unix command #/bin/basename#, but also supports the naming conventions of other operating systems.

Definition at line 182 of file GOS.cpp.

GUTF8String GOS::cwd ( const GUTF8String &  dirname = GUTF8String()  )  [static]

Sets and returns the current working directory.

When argument dirname# is specified, the current directory is changed to dirname#. This function always returns the fully qualified name of the current directory.

Definition at line 321 of file GOS.cpp.

GUTF8String GOS::getenv ( const GUTF8String &  name  )  [static]

Read the named variable from the environment, and converts it to UTF8.

Definition at line 348 of file GOS.cpp.

void GOS::sleep ( int  milliseconds  )  [static]

Sleeps during the specified time expressed in milliseconds.

Other threads can run while the calling thread sleeps.

Definition at line 286 of file GOS.cpp.

unsigned long GOS::ticks (  )  [static]

Returns a number of elapsed milliseconds.

This number counts elapsed milliseconds since a operating system dependent date. This function is useful for timing code.

Definition at line 261 of file GOS.cpp.


The documentation for this class was generated from the following files:
  • GOS.h
  • GOS.cpp

kviewshell

Skip menu "kviewshell"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • kviewshell
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal