• Skip to content
  • Skip to link menu
KDE 4.5 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

KHolidays Library

holiday.h

00001 /*
00002   This file is part of the kholidays library.
00003 
00004   Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
00005   Copyright (c) 2004 Allen Winter <winter@kde.org>
00006   Copyright (c) 2008 David Jarvie <djarvie@kde.org>
00007   Copyright 2010 John Layt <john@layt.net>
00008 
00009   This library is free software; you can redistribute it and/or
00010   modify it under the terms of the GNU Library General Public
00011   License as published by the Free Software Foundation; either
00012   version 2 of the License, or (at your option) any later version.
00013 
00014   This library is distributed in the hope that it will be useful,
00015   but WITHOUT ANY WARRANTY; without even the implied warranty of
00016   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017   GNU Library General Public License for more details.
00018 
00019   You should have received a copy of the GNU Library General Public License
00020   along with this library; see the file COPYING.LIB.  If not, write to the
00021   Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00022   Boston, MA 02110-1301, USA.
00023 */
00024 
00025 #ifndef KHOLIDAYS_HOLIDAY_H
00026 #define KHOLIDAYS_HOLIDAY_H
00027 
00028 #include "kholidays_export.h"
00029 
00030 #include <QtCore/QList>
00031 #include <QtCore/QSharedDataPointer>
00032 
00033 class QDate;
00034 class QString;
00035 
00036 namespace KHolidays {
00037 
00038 class HolidayPrivate;
00039 class HolidayRegion;
00040 
00041 class KHOLIDAYS_EXPORT Holiday
00042 {
00043   friend class HolidayRegion;
00044   friend class HolidayParserDriverPlan;
00045   friend class HolidayParserDriverPlanOld;
00046 
00047   public:
00051     typedef QList<Holiday> List;
00052 
00056     enum DayType {
00057       Workday,   
00058       NonWorkday 
00059     };
00060 
00064     Holiday();
00065 
00069     Holiday( const Holiday &other );
00070 
00074     ~Holiday();
00075 
00079     Holiday &operator=( const Holiday &other );
00080 
00084     bool operator<( const Holiday &rhs ) const;
00085 
00089     bool operator>( const Holiday &rhs ) const;
00090 
00094     QDate date() const;
00095 
00099     QString text() const;
00100 
00104     QString shortText() const;
00105 
00109     DayType dayType() const;
00110 
00111   private:
00112     QSharedDataPointer<HolidayPrivate> d;
00113 };
00114 
00115 }
00116 
00117 #endif // KHOLIDAYS_HOLIDAY_H

KHolidays Library

Skip menu "KHolidays Library"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.1
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