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

kmood.hh

Go to the documentation of this file.
00001 /*
00002  *   kmood - a mood indicator
00003  *   Copyright (C) 2003  Andreas Baumann
00004  *
00005  *   This program is free software; you can redistribute it and/or modify
00006  *   it under the terms of the GNU General Public License as published by
00007  *   the Free Software Foundation; either version 2 of the License, or
00008  *   (at your option) any later version.
00009  *
00010  *   This program is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details.
00014  *
00015  *   You should have received a copy of the GNU General Public License
00016  *   along with this program; if not, write to the Free Software
00017  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018  *
00019  */
00020 
00021 #ifndef __KMOOD_MAIN_H__
00022 #define __KMOOD_MAIN_H__
00023 
00024 #ifdef HAVE_CONFIG_H
00025 #include <config.h>
00026 #endif
00027 
00028 /* the default place where to keep the moods of users */
00029 #define DEFAULT_KMOOD_STORAGE_DIR "/tmp/kmoods"
00030 
00031 /* mark unused parameters to avoid compiler warning, e.g.
00032  * int f( int a, int b )
00033  * {
00034  *   UNUSED( a );
00035  *   assert( b > 0 );
00036  * }
00037  */
00038 #define UNUSED( x ) if ( 0 && (x) ) {}
00039 
00040 #ifdef HAVE_ERRNO_H
00041 #include <errno.h>
00042 #endif
00043        
00044 #ifdef HAVE_ASSERT_H
00045 #include <assert.h>
00046 #endif
00047        
00048 #ifdef HAVE_STDLIB_H
00049 #include <stdlib.h>
00050 #endif
00051        
00052 /* we need getuid and getpwuid to get information about the
00053  * currently logged in user */
00054 #ifdef HAVE_UNISTD_H
00055 #include <unistd.h>
00056 #ifdef HAVE_GETUID
00057 #else
00058 #error "Not ported yet to other Unixes from Linux"
00059 #endif
00060 #else
00061 #error "Not ported yet to other Unixes from Linux"
00062 #endif
00063 
00064 #ifdef HAVE_SYS_TYPES_H
00065 #include <sys/types.h>
00066 #else
00067 #error "Not ported yet to other Unixes from Linux"
00068 #endif
00069 
00070 #ifdef HAVE_PWD_H
00071 #include <pwd.h>
00072 #ifdef HAVE_GETPWUID
00073 #else
00074 #error "Not ported yet to other Unixes from Linux"
00075 #endif
00076 #else
00077 #error "Not ported yet to other Unixes from Linux"
00078 #endif
00079 
00080 #endif

Generated on Wed Oct 8 21:52:18 2003 for kmood by doxygen1.2.18