lunarphase.h

00001 /*
00002   This file is part of the kholidays library.
00003 
00004   Copyright (c) 2004,2007,3009 Allen Winter <winter@kde.org>
00005 
00006   This library is free software; you can redistribute it and/or
00007   modify it under the terms of the GNU Library General Public
00008   License as published by the Free Software Foundation; either
00009   version 2 of the License, or (at your option) any later version.
00010 
00011   This library is distributed in the hope that it will be useful,
00012   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014   GNU Library General Public License for more details.
00015 
00016   You should have received a copy of the GNU Library General Public License
00017   along with this library; see the file COPYING.LIB.  If not, write to the
00018   Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019   Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef KHOLIDAYS_LUNARPHASE_H
00023 #define KHOLIDAYS_LUNARPHASE_H
00024 
00025 #include "kholidays_export.h"
00026 
00027 class QDate;
00028 class QString;
00029 
00030 namespace KHolidays {
00031 
00054 class KHOLIDAYS_EXPORT LunarPhase //krazy:exclude=dpointer
00055 {
00056   public:
00062     enum Phase {
00063       NewMoon,      
00064       FirstQuarter, 
00065       LastQuarter,  
00066       FullMoon,     
00067       None          
00068     };
00069 
00077     static Phase phaseAtDate( const QDate &date );
00078 
00086     static QString phaseNameAtDate( const QDate &date );
00087 
00093     static QString phaseName( Phase phase );
00094 };
00095 
00096 }
00097 
00098 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys