KHolidays Library
zodiac.h
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 00056 #include <QtCore/QSharedDataPointer> 00057 00058 class QDate; 00059 class QString; 00060 00061 namespace KHolidays { 00062 00063 class ZodiacPrivate; 00064 00065 class KHOLIDAYS_EXPORT Zodiac 00066 { 00067 public: 00068 enum ZodiacType { 00069 Tropical, 00070 Sidereal 00071 }; 00072 00073 enum ZodiacSigns { 00074 Aries, 00075 Taurus, 00076 Gemini, 00077 Cancer, 00078 Leo, 00079 Virgo, 00080 Libra, 00081 Scorpio, 00082 Sagittarius, 00083 Capricorn, 00084 Aquarius, 00085 Pisces, 00086 None 00087 }; 00088 00089 Zodiac( ZodiacType type ); 00090 Zodiac( const Zodiac &other ); 00091 ~Zodiac(); 00092 00093 Zodiac &operator=( const Zodiac &other ); 00094 00102 ZodiacSigns signAtDate( const QDate &date ) const; 00103 00111 QString signNameAtDate( const QDate &date ) const; 00112 00118 static QString signName( ZodiacSigns sign ); 00119 00123 static QString signSymbol( ZodiacSigns sign ); 00124 00125 private: 00126 QSharedDataPointer<ZodiacPrivate> d; 00127 }; 00128 00129 } 00130 00131 #endif 00132
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 14 2012 04:38:39 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 14 2012 04:38:39 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.