Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

/home/jeroen/FOX/fox/fox-1.7.33/include/FXSystem.h
00001 /********************************************************************************
00002 *                                                                               *
00003 *         M i s c e l l a n e o u s   S y s t e m   F u n c t i o n s           *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 2005,2012 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or modify          *
00009 * it under the terms of the GNU Lesser General Public License as published by   *
00010 * the Free Software Foundation; either version 3 of the License, or             *
00011 * (at your option) any later version.                                           *
00012 *                                                                               *
00013 * This library is distributed in the hope that it will be useful,               *
00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of                *
00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                 *
00016 * GNU Lesser General Public License for more details.                           *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public License      *
00019 * along with this program.  If not, see <http://www.gnu.org/licenses/>          *
00020 ********************************************************************************/
00021 #ifndef FXSYSTEM_H
00022 #define FXSYSTEM_H
00023 
00024 
00025 
00026 namespace FX {
00027 
00028 
00029 
00030 namespace FXSystem {
00031 
00032 
00034 extern FXAPI FXString localTime(FXTime value);
00035 
00037 extern FXAPI FXString universalTime(FXTime value);
00038 
00047 extern FXAPI FXString localTime(const FXchar *format,FXTime value);
00048 
00052 extern FXAPI FXString universalTime(const FXchar *format,FXTime value);
00053 
00054 
00056 extern FXAPI FXuint user();
00057 
00059 extern FXAPI FXuint group();
00060 
00062 extern FXAPI FXString userName(FXuint uid);
00063 
00065 extern FXAPI FXString groupName(FXuint gid);
00066 
00068 extern FXAPI FXString currentUserName();
00069 
00071 extern FXAPI FXString currentGroupName();
00072 
00073 
00075 extern FXAPI FXString modeString(FXuint mode);
00076 
00077 
00078 
00080 extern FXAPI FXString getEnvironment(const FXString& name);
00081 
00083 extern FXAPI FXbool setEnvironment(const FXString& name,const FXString& value);
00084 
00085 
00086 
00088 extern FXAPI FXString getCurrentDirectory();
00089 
00091 extern FXAPI FXbool setCurrentDirectory(const FXString& path);
00092 
00094 extern FXAPI FXString getCurrentDrive();
00095 
00097 extern FXAPI FXbool setCurrentDrive(const FXString& prefix);
00098 
00099 
00100 
00102 extern FXAPI FXString getExecPath();
00103 
00105 extern FXAPI FXString getHomeDirectory();
00106 
00108 extern FXAPI FXString getUserDirectory(const FXString& user);
00109 
00111 extern FXAPI FXString getTempDirectory();
00112 
00113 
00115 extern FXAPI FXString getHostName();
00116 
00117 
00119 extern FXAPI FXbool localeIsUTF8();
00120 
00122 extern FXAPI FXString getExecutableFilename();
00123 
00128 extern FXAPI FXString dllName(const FXString& name);
00129 
00130 }
00131 
00132 }
00133 
00134 #endif

Copyright © 1997-2011 Jeroen van der Zijp