// This file is generated by kxml_compiler from kde-holidays.rng.
// All changes you do to this file will be lost.
/*
    This file is part of KDE.

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
    USA.

    As a special exception, permission is given to link this program
    with any edition of Qt, and distribute the resulting executable,
    without including the source code for Qt in the source distribution.
 */
#ifndef KDE_HOLIDAYS_H
#define KDE_HOLIDAYS_H

#include <QString>
#include <QList>

class Description
{
  public:
    void setLanguage( const QString &v );
    QString language() const;
    QString writeElement();

  private:
    QString mLanguage;
};

class Name
{
  public:
    void setLanguage( const QString &v );
    QString language() const;
    QString writeElement();

  private:
    QString mLanguage;
};

class Holiday
{
  public:
    typedef QList<Holiday> List;

  public:
    void setType( const QString &v );
    QString type() const;
    void setWorkDayOff( const QString &v );
    QString workDayOff() const;
    void setSchoolDayOff( const QString &v );
    QString schoolDayOff() const;
    void setBankClosed( const QString &v );
    QString bankClosed() const;
    void setLength( const QString &v );
    QString length() const;
    void setIcon( const QString &v );
    QString icon() const;
    void setName( const QString &v );
    QString name() const;
    void setDatespec( const QString &v );
    QString datespec() const;
    void setDescription( const QString &v );
    QString description() const;
    QString writeElement();

  private:
    QString mType;
    QString mWorkDayOff;
    QString mSchoolDayOff;
    QString mBankClosed;
    QString mLength;
    QString mIcon;
    QString mName;
    QString mDatespec;
    QString mDescription;
};

class HolidayCalendar
{
  public:
    void setName( const QString &v );
    QString name() const;
    void setType( const QString &v );
    QString type() const;
    void setCalendar( const QString &v );
    QString calendar() const;
    void setHemisphere( const QString &v );
    QString hemisphere() const;
    void setIcon( const QString &v );
    QString icon() const;
    void setInclude( const QString &v );
    QString include() const;
    void addHoliday( const Holiday &v );
    void setHolidayList( const Holiday::List &v );
    Holiday::List holidayList() const;
    QString writeElement();
    bool writeFile( const QString &filename );

  private:
    QString mName;
    QString mType;
    QString mCalendar;
    QString mHemisphere;
    QString mIcon;
    QString mInclude;
    Holiday::List mHolidayList;
};

#endif
