diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/status.cc | 28 | ||||
| -rw-r--r-- | lib/status.h | 43 | 
2 files changed, 71 insertions, 0 deletions
| diff --git a/lib/status.cc b/lib/status.cc new file mode 100644 index 0000000..a44b4c9 --- /dev/null +++ b/lib/status.cc @@ -0,0 +1,28 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/*************************************************************************** + *            status.cc + * + *  Mon Jul 24 22:51:47 CEST 2006 + *  Copyright  2006 Bent Bisballe Nyeng + *  deva@aasimon.org + ****************************************************************************/ + +/* + *  This file is part of MIaV. + * + *  MIaV is free software; you can redistribute it and/or modify + *  it under the terms of the GNU General Public License as published by + *  the Free Software Foundation; either version 2 of the License, or + *  (at your option) any later version. + * + *  MIaV is distributed in the hope that it will be useful, + *  but WITHOUT ANY WARRANTY; without even the implied warranty of + *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the + *  GNU General Public License for more details. + * + *  You should have received a copy of the GNU General Public License + *  along with MIaV; if not, write to the Free Software + *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA. + */ +#include "status.h" + diff --git a/lib/status.h b/lib/status.h new file mode 100644 index 0000000..d947123 --- /dev/null +++ b/lib/status.h @@ -0,0 +1,43 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/*************************************************************************** + *            status.h + * + *  Mon Jul 24 22:51:46 CEST 2006 + *  Copyright  2006 Bent Bisballe Nyeng + *  deva@aasimon.org + ****************************************************************************/ + +/* + *  This file is part of MIaV. + * + *  MIaV is free software; you can redistribute it and/or modify + *  it under the terms of the GNU General Public License as published by + *  the Free Software Foundation; either version 2 of the License, or + *  (at your option) any later version. + * + *  MIaV is distributed in the hope that it will be useful, + *  but WITHOUT ANY WARRANTY; without even the implied warranty of + *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the + *  GNU General Public License for more details. + * + *  You should have received a copy of the GNU General Public License + *  along with MIaV; if not, write to the Free Software + *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA. + */ +#ifndef __MIAV_STATUS_H__ +#define __MIAV_STATUS_H__ + +/** + * Internal data class for the server status info. + */ +class Status { +public: +  unsigned long long int diskspace; +  unsigned long long int diskspace_max; +  unsigned short load; +  unsigned short load_max; +}; + + + +#endif/*__MIAV_STATUS_H__*/ | 
