annotate osx/svitunes.h @ 381:fad5611ef9db macness

Encapsulate itunes-remote functionality into class ITunesSVRemote. Provides context for playback sync etc
author Dan Stowell <dan.stowell@eecs.qmul.ac.uk>
date Mon, 18 Oct 2010 13:59:08 +0100
parents 7298621f1192
children abb9c3dedec2
rev   line source
dan@367 1 /*
dan@367 2 iTunes connection for
dan@367 3 Sonic Visualiser
dan@367 4 An audio file viewer and annotation editor.
dan@367 5 Centre for Digital Music, Queen Mary, University of London.
dan@367 6 This file copyright 2010 Dan Stowell and QMUL.
dan@367 7
dan@367 8 This program is free software; you can redistribute it and/or
dan@367 9 modify it under the terms of the GNU General Public License as
dan@367 10 published by the Free Software Foundation; either version 2 of the
dan@367 11 License, or (at your option) any later version. See the file
dan@367 12 COPYING included with this distribution for more information.
dan@367 13 */
dan@367 14
dan@380 15 #ifndef _SVITUNES_H_
dan@380 16 #define _SVITUNES_H_
dan@380 17
dan@367 18 #include <QString>
dan@367 19 #include <QStringList>
dan@367 20
dan@381 21 //#import <Foundation/Foundation.h>
dan@367 22
dan@381 23 /**
dan@381 24 * Class to handle communication with a running iTunes program on the system.
dan@381 25 * Only implemented for Mac at present, since using applescript communication.
dan@381 26 * Pseudo-singleton - one instance expected to be owned by SVApplication.
dan@381 27 */
dan@381 28 class ITunesSVRemote : QObject
dan@381 29 {
dan@381 30 Q_OBJECT
dan@381 31
dan@381 32 public:
dan@381 33
dan@381 34 //LATER: bool iTunesRunning();
dan@381 35
dan@381 36 // Returns a list containing [posixpath, genre]
dan@381 37 QStringList getNowPlaying();
dan@381 38
dan@381 39 //LATER: QStringList iTunesSelectedPaths();
dan@381 40
dan@381 41 // private:
dan@381 42 // QString qt_mac_NSStringToQString(const NSString *nsstr);
dan@381 43 };
dan@367 44
dan@380 45 #endif