Warning, file /multimedia/amarok/src/aboutdialog/OcsData.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /**************************************************************************************** 0002 * Copyright (c) 2009 Téo Mrnjavac <teo@kde.org> * 0003 * * 0004 * This program is free software; you can redistribute it and/or modify it under * 0005 * the terms of the GNU General Public License as published by the Free Software * 0006 * Foundation; either version 2 of the License, or (at your option) any later * 0007 * version. * 0008 * * 0009 * This program is distributed in the hope that it will be useful, but WITHOUT ANY * 0010 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * 0011 * PARTICULAR PURPOSE. See the GNU General Public License for more details. * 0012 * * 0013 * You should have received a copy of the GNU General Public License along with * 0014 * this program. If not, see <http://www.gnu.org/licenses/>. * 0015 ****************************************************************************************/ 0016 0017 #ifndef AMAROK_OCSDATA_H 0018 #define AMAROK_OCSDATA_H 0019 0020 #include "core/support/Amarok.h" 0021 #include "amarok_export.h" 0022 0023 #include <KAboutData> 0024 0025 #include <QList> 0026 #include <QPair> 0027 #include <QString> 0028 0029 class AMAROK_EXPORT OcsData 0030 { 0031 public: 0032 typedef QList< QPair< QString, KAboutPerson > > OcsPersonList; 0033 0034 explicit OcsData( const QByteArray &providerId = "opendesktop" ); 0035 virtual ~OcsData(); 0036 void addAuthor( const QString &username, const KAboutPerson &person ); 0037 void addCredit( const QString &username, const KAboutPerson &person ); 0038 void addDonor( const QString &username, const KAboutPerson &person ); 0039 0040 const OcsPersonList * authors() const { return &m_authors; } 0041 const OcsPersonList * credits() const { return &m_credits; } 0042 const OcsPersonList * donors() const { return &m_donors; } 0043 const QString providerId() const { return m_providerId; } 0044 0045 private: 0046 QList< QPair< QString, KAboutPerson > > m_authors; 0047 QList< QPair< QString, KAboutPerson > > m_credits; 0048 QList< QPair< QString, KAboutPerson > > m_donors; 0049 QString m_providerId; 0050 }; 0051 0052 #endif //AMAROK_OCSDATA_H