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

libkholidays

zodiac.h

Go to the documentation of this file.
00001 /*
00002   This file is part of the kholidays library.
00003 
00004   Copyright (c) 2005-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_ZODIAC_H
00023 #define KHOLIDAYS_ZODIAC_H
00024 
00054 #include "kholidays_export.h"
00055 #include <QString>
00056 
00057 class QDate;
00058 
00059 namespace LibKHolidays {
00060 
00061 class KHOLIDAYS_EXPORT Zodiac
00062 {
00063   public:
00064     enum ZodiacType {
00065       Tropical,
00066       Sidereal
00067     };
00068 
00069     enum ZodiacSigns {
00070       Aries,
00071       Taurus,
00072       Gemini,
00073       Cancer,
00074       Leo,
00075       Virgo,
00076       Libra,
00077       Scorpio,
00078       Sagittarius,
00079       Capricorn,
00080       Aquarius,
00081       Pisces,
00082       None
00083     };
00084 
00085     Zodiac( ZodiacType type );
00086     ~Zodiac();
00087 
00095     ZodiacSigns sign( const QDate &date ) const;
00096 
00104     QString signStr( const QDate &date ) const;
00105 
00111     static QString signName( ZodiacSigns sign );
00112 
00116     static QString signSymbol( ZodiacSigns sign );
00117 
00118   private:
00119     ZodiacType mType;
00120 };
00121 
00122 }
00123 
00124 #endif
00125 

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