Tvdb 0.3.0

/home/trueg/kde/dev/kde/src/libtvdb/episode.h

Go to the documentation of this file.
00001 /*
00002    Copyright (C) 2010 Sebastian Trueg <trueg@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Lesser General Public
00006    License as published by the Free Software Foundation; either
00007    version 2.1 of the License, or (at your option) version 3, or any
00008    later version accepted by the membership of KDE e.V. (or its
00009    successor approved by the membership of KDE e.V.), which shall
00010    act as a proxy defined in Section 6 of version 3 of the license.
00011 
00012    This library is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015    Lesser General Public License for more details.
00016 
00017    You should have received a copy of the GNU Lesser General Public
00018    License along with this library.  If not, see <http://www.gnu.org/licenses/>.
00019 */
00020 
00021 #ifndef _TVDB_EPISODE_H_
00022 #define _TVDB_EPISODE_H_
00023 
00024 #include <QtCore/QSharedDataPointer>
00025 
00026 #include "tvdb_export.h"
00027 
00028 class QUrl;
00029 class QString;
00030 class QStringList;
00031 class QDate;
00032 class QDebug;
00033 
00034 namespace Tvdb {
00035     class Series;
00036     class Season;
00037     class EpisodePrivate;
00038 
00044     class TVDB_EXPORT Episode
00045     {
00046     public:
00047         Episode();
00048         Episode( const Episode& other );
00049         ~Episode();
00050 
00051         Episode& operator=( const Episode& other );
00052 
00053         int id() const;
00054 
00055         Series series() const;
00056         Season season() const;
00057 
00058         QString imdbId() const;
00059         QUrl imdbUrl() const;
00060 
00061         QString name() const;
00062         QString overview() const;
00063 
00064         QDate firstAired() const;
00065 
00066         int episodeNumber() const;
00067 
00068         QStringList guestStars() const;
00069 
00070         QStringList writers() const;
00071         QString director() const;
00072 
00073     private:
00074         QExplicitlySharedDataPointer<EpisodePrivate> d;
00075 
00076         friend class SeriesPrivate;
00077     };
00078 
00079     TVDB_EXPORT QDebug& operator<<( QDebug& dbg, const Episode& episode );
00080 }
00081 
00082 #endif

Get libtvdb at SourceForge.net. Fast, secure and Free Open Source software downloads
LibTvdb documentation generated by doxygen