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

FXSystem.h
1 /********************************************************************************
2 * *
3 * 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 *
4 * *
5 *********************************************************************************
6 * Copyright (C) 2005,2017 by Jeroen van der Zijp. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU Lesser General Public License as published by *
10 * the Free Software Foundation; either version 3 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public License *
19 * along with this program. If not, see <http://www.gnu.org/licenses/> *
20 ********************************************************************************/
21 #ifndef FXSYSTEM_H
22 #define FXSYSTEM_H
23 
24 namespace FX {
25 
26 namespace FXSystem {
27 
28 
30  extern FXAPI const char defaultTimeFormat[];
31 
33  extern FXAPI FXString localTime(FXTime value);
34 
36  extern FXAPI FXString universalTime(FXTime value);
37 
46  extern FXAPI FXString localTime(const FXchar *format,FXTime value);
47 
51  extern FXAPI FXString universalTime(const FXchar *format,FXTime value);
52 
53 
55  extern FXAPI FXuint user();
56 
58  extern FXAPI FXuint group();
59 
61  extern FXAPI FXString userName(FXuint uid);
62 
64  extern FXAPI FXString groupName(FXuint gid);
65 
67  extern FXAPI FXString currentUserName();
68 
70  extern FXAPI FXString currentGroupName();
71 
72 
74  extern FXAPI FXString modeString(FXuint mode);
75 
76 
77 
79  extern FXAPI FXString getEnvironment(const FXString& name);
80 
82  extern FXAPI FXbool setEnvironment(const FXString& name,const FXString& value);
83 
84 
85 
87  extern FXAPI FXString getCurrentDirectory();
88 
90  extern FXAPI FXbool setCurrentDirectory(const FXString& path);
91 
93  extern FXAPI FXString getCurrentDrive();
94 
96  extern FXAPI FXbool setCurrentDrive(const FXString& prefix);
97 
98 
99 
101  extern FXAPI FXString getExecPath();
102 
104  extern FXAPI FXString getExecExtensions();
105 
107  extern FXAPI FXString getHomeDirectory();
108 
110  extern FXAPI FXString getUserDirectory(const FXString& user);
111 
113  extern FXAPI FXString getTempDirectory();
114 
115 
117  extern FXAPI FXString getHostName();
118 
119 
121  extern FXAPI FXbool localeIsUTF8();
122 
124  extern FXAPI FXString getExecFilename();
125 
130  extern FXAPI FXString dllName(const FXString& name);
131  }
132 
133 }
134 
135 #endif

Copyright © 1997-2016 Jeroen van der Zijp