Proof-reading - fixed one usage of the i18n plural form (it wasn't doing before,...
[kdeadmin.git] / kuser / globals.h
blobdf6c51ed771de17a58a4b9456f3a265c443e214e
1 /*
2 * Copyright (c) 1998 Denis Perchine <dyp@perchine.com>
3 * Copyright (c) 2004 Szombathelyi György <gyurco@freemail.hu>
4 * Maintained by Adriaan de Groot <groot@kde.org>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public
8 * License version 2 as published by the Free Software Foundation.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 **/
21 #ifndef _KU_GLOBALS_H_
22 #define _KU_GLOBALS_H_
24 #define _KU_VERSION "3.9"
26 #include "ku_config.h"
28 #ifdef HAVE_PATHS_H
29 #include <paths.h>
30 #endif
32 #define KU_PROPERTY(Type,Name) \
33 const Type &get##Name() const ; \
34 void set##Name(Type data)
36 #define KU_PROPERTY_IMPL(Class,Type,Name) \
37 const Type &Class::get##Name() const { return d->Name; } \
38 void Class::set##Name(Type data) { d->Name = data; }
41 #define KU_BACKUP_EXT ".bak"
42 #define KU_CREATE_EXT ".new"
44 #ifdef HAVE_PATHS_H
45 #define SHELL_FILE _PATH_SHELLS
46 #define MAIL_SPOOL_DIR _PATH_MAILDIR
47 #else
48 #define SHELL_FILE "/etc/shells"
49 #define MAIL_SPOOL_DIR "/var/spool/mail"
50 #endif
52 #if defined(__FreeBSD__) || defined(__bsdi__)
53 #include <pwd.h>
54 #define PASSWORD_FILE _PATH_MASTERPASSWD
55 #define PASSWORD_FILE_MASK S_IRUSR | S_IWUSR
56 #define PWMKDB _PATH_PWD_MKDB" -p "PASSWORD_FILE
57 #define SKELDIR "/usr/share/skel"
58 #define SKEL_FILE_PREFIX "dot"
59 #define CRONTAB_DIR "/var/cron/tabs"
60 #else
61 #define PASSWORD_FILE "/etc/passwd"
62 #define PASSWORD_FILE_MASK S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH
63 #define PWMKDB "cd /var/yp; make 2>&1 >> /var/log/kuser"
64 #define GRMKDB "cd /var/yp; make 2>&1 >> /var/log/kuser"
65 #define SKELDIR "/etc/skel"
66 #define SKEL_FILE_PREFIX ""
67 #define CRONTAB_DIR "/var/spool/cron"
68 #endif
70 #define GROUP_FILE "/etc/group"
71 #define GROUP_FILE_MASK S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH
73 #endif // _KU_GLOBALS_H_