File indexing completed on 2024-05-19 04:50:21
0001 /**************************************************************************************** 0002 * Copyright (c) 2007 Nikolaj Hald Nielsen <nhn@kde.org> * 0003 * Copyright (c) 2008 Casey Link <unnamedrambler@gmail.com> * 0004 * * 0005 * This program is free software; you can redistribute it and/or modify it under * 0006 * the terms of the GNU General Public License as published by the Free Software * 0007 * Foundation; either version 2 of the License, or (at your option) any later * 0008 * version. * 0009 * * 0010 * This program is distributed in the hope that it will be useful, but WITHOUT ANY * 0011 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * 0012 * PARTICULAR PURPOSE. See the GNU General Public License for more details. * 0013 * * 0014 * You should have received a copy of the GNU General Public License along with * 0015 * this program. If not, see <http://www.gnu.org/licenses/>. * 0016 ****************************************************************************************/ 0017 0018 #ifndef MP3TUNESCONFIG_H 0019 #define MP3TUNESCONFIG_H 0020 0021 #include <QString> 0022 0023 /** 0024 A wrapper class for Mp3tunes service configuration 0025 0026 @author 0027 */ 0028 class Mp3tunesConfig{ 0029 public: 0030 0031 Mp3tunesConfig(); 0032 0033 ~Mp3tunesConfig(); 0034 0035 void load(); 0036 void save(); 0037 0038 QString email(); 0039 QString password(); 0040 QString identifier(); 0041 QString partnerToken(); 0042 QString pin(); 0043 QString harmonyEmail(); 0044 bool harmonyEnabled(); 0045 0046 void setEmail( const QString &email ); 0047 void setPassword( const QString &password ); 0048 void setIdentifier( const QString &ident ); 0049 void setHarmonyEnabled( bool enabled ); 0050 void setPartnerToken( const QString &token ); 0051 void setPin( const QString &pin ); 0052 void setHarmonyEmail( const QString &harmonyEmail ); 0053 0054 private: 0055 0056 bool m_hasChanged; 0057 bool m_harmonyEnabled; 0058 QString m_email; 0059 QString m_password; 0060 QString m_identifier; 0061 QString m_partnerToken; 0062 QString m_pin; 0063 QString m_harmonyEmail; 0064 0065 }; 0066 0067 #endif