kspread
kspread_functions_helper.h
00001 /* This file is part of the KDE project 00002 Copyright (C) 1998-2002 The KSpread Team 00003 www.koffice.org/kspread 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License. 00009 00010 This library 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 GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 * Boston, MA 02110-1301, USA. 00019 */ 00020 #ifndef kspread_functions_helper_h_ 00021 #define kspread_functions_helper_h_ 00022 // helper functions for other functions 00023 00024 class QDate; 00025 00026 namespace KSpread 00027 { 00028 00029 /* 0: US 30 / 360 00030 * 1: real days 00031 * 2: real days / 360 00032 * 3: real days / 365 00033 * 4: European 30 / 360 00034 */ 00035 int daysPerYear( QDate const & date, int basis ); 00036 00037 /* 0: US 30 / 360 00038 * 1: real days 00039 * 2: real days / 360 00040 * 3: real days / 365 00041 * 4: European 30 / 360 00042 */ 00043 int daysBetweenDates( QDate const & date1, QDate const & date2, int basis ); 00044 00045 } //namespace KSpread 00046 00047 #endif