• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

libkholidays

astroseasons.h

Go to the documentation of this file.
00001 /*
00002   This file is part of the kholidays library.
00003 
00004   Copyright (c) 2004,2006-2007 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 GNU
00014   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
00018   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019   Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef KHOLIDAYS_ASTROSEASONS_H
00023 #define KHOLIDAYS_ASTROSEASONS_H
00024 
00045 #include <QString>
00046 #include <QDateTime>
00047 
00048 #include "kholidays_export.h"
00049 
00050 namespace LibKHolidays {
00051 
00052 class KHOLIDAYS_EXPORT AstroSeasons
00053 {
00054   public:
00055     enum Season {
00056       JuneSolstice,
00057       DecemberSolstice,
00058       MarchEquinox,
00059       SeptemberEquinox,
00060       None
00061     };
00062 
00063     AstroSeasons();
00064     ~AstroSeasons();
00065 
00073     Season season( const QDate &date ) const;
00074 
00082     QString seasonStr( const QDate &date ) const;
00083 
00089     static QString seasonName( Season season );
00090 
00091   private:
00102     double approxEquinox( int year, Season season );
00103 };
00104 
00105 }
00106 
00107 #endif
00108 

libkholidays

Skip menu "libkholidays"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal