1 /****************************************************************************************
2  * Copyright (c) 2008 Casey Link <unnamedrambler@gmail.com>                             *
3  *                                                                                      *
4  * This program is free software; you can redistribute it and/or modify it under        *
5  * the terms of the GNU General Public License as published by the Free Software        *
6  * Foundation; either version 2 of the License, or (at your option) any later           *
7  * version.                                                                             *
8  *                                                                                      *
9  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
10  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
11  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
12  *                                                                                      *
13  * You should have received a copy of the GNU General Public License along with         *
14  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
15  ****************************************************************************************/
16 
17 #include "Mp3tunesHarmonyClient.h"
18 #include <QtDebug>
Mp3tunesHarmonyClient()19 Mp3tunesHarmonyClient::Mp3tunesHarmonyClient()
20 {}
21 
22 /* SLOTS */
23 void
harmonyError(const QString & error)24 Mp3tunesHarmonyClient::harmonyError( const QString &error )
25 {
26     qDebug() << "Received Error: " << error;
27 }
28 
29 void
harmonyWaitingForEmail(const QString & pin)30 Mp3tunesHarmonyClient::harmonyWaitingForEmail( const QString &pin )
31 {
32     qDebug() << "Received HARMONY_WAITING_FOR_EMAIL " << pin;
33 }
34 
35 void
harmonyWaitingForPin()36 Mp3tunesHarmonyClient::harmonyWaitingForPin()
37 {
38     qDebug() << "Received HARMONY_WAITING_FOR_PIN";
39 }
40 
41 void
harmonyConnected()42 Mp3tunesHarmonyClient::harmonyConnected()
43 {
44     qDebug() << "Apparently Harmony is connected";
45 }
46 
47 void
harmonyDisconnected()48 Mp3tunesHarmonyClient::harmonyDisconnected()
49 {
50     qDebug() << "Harmony said see ya later.";
51 }
52 
53 void
harmonyDownloadReady(const Mp3tunesHarmonyDownload & download)54 Mp3tunesHarmonyClient::harmonyDownloadReady( const Mp3tunesHarmonyDownload &download )
55 {
56     qDebug() << "Got message about ready: " << download.trackTitle() << " by " << download.artistName() << " on " << download. albumTitle();
57 }
58 
59 void
harmonyDownloadPending(const Mp3tunesHarmonyDownload & download)60 Mp3tunesHarmonyClient::harmonyDownloadPending( const Mp3tunesHarmonyDownload &download )
61 {
62     qDebug() << "Got message about pending: " << download.trackTitle() << " by " << download.artistName() << " on " << download. albumTitle();
63 }
64