| 1 |
/****************************************************************************** |
| 2 |
* Copyright (C) 2004 by Michael Pyne <michael.pyne@kdemail.net> * |
| 3 |
* (C) 2004 Pierpaolo Di Panfilo <pippo_dp@libero.it> * |
| 4 |
* * |
| 5 |
* This program is free software; you can redistribute it and/or * |
| 6 |
* modify it under the terms of the GNU General Public License as * |
| 7 |
* published by the Free Software Foundation; either version 2 of * |
| 8 |
* the License, or (at your option) any later version. * |
| 9 |
* * |
| 10 |
* This program is distributed in the hope that it will be useful, * |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
| 13 |
* GNU General Public License for more details. * |
| 14 |
* * |
| 15 |
* You should have received a copy of the GNU General Public License * |
| 16 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. * |
| 17 |
******************************************************************************/ |
| 18 |
|
| 19 |
#ifndef K3BEXPORTER_H |
| 20 |
#define K3BEXPORTER_H |
| 21 |
|
| 22 |
#include "amarok_export.h" |
| 23 |
|
| 24 |
#include <KUrl> |
| 25 |
|
| 26 |
//class DCOPRef; |
| 27 |
|
| 28 |
/** |
| 29 |
* This class will export a list of tracks to K3b. |
| 30 |
*/ |
| 31 |
class K3bExporter |
| 32 |
{ |
| 33 |
public: |
| 34 |
enum K3bOpenMode { AudioCD, DataCD, Abort }; |
| 35 |
|
| 36 |
/** |
| 37 |
* @return true if the executable of K3B is found |
| 38 |
*/ |
| 39 |
// FIXME: implement me! |
| 40 |
/*AMAROK_EXPORT*/ static bool isAvailable() { return false; } |
| 41 |
|
| 42 |
|
| 43 |
/** |
| 44 |
* Exports the list of urls @urls via DCOP to K3B. The mode @p openmode will be used |
| 45 |
* @param urls The list of urls to export |
| 46 |
* @param openmode The mode of the album |
| 47 |
*/ |
| 48 |
// FIXME: implement me! |
| 49 |
/*AMAROK_EXPORT*/ void exportTracks( const KUrl::List &/*urls*/, int openmode=-1 ) { Q_UNUSED(openmode) } |
| 50 |
|
| 51 |
/** |
| 52 |
* Exports the current playlist to K3B. The mode @p openmode will be used |
| 53 |
* @param openmode The mode of the album |
| 54 |
*/ |
| 55 |
// FIXME: implement me! |
| 56 |
void exportCurrentPlaylist( int openmode=-1 ) { Q_UNUSED(openmode) } |
| 57 |
|
| 58 |
/** |
| 59 |
* Exports the selected tracks to K3B. The mode @p openmode will be used |
| 60 |
* @param openmode The mode of the tracks |
| 61 |
*/ |
| 62 |
// FIXME: implement me! |
| 63 |
void exportSelectedTracks( int openmode=-1 ) { Q_UNUSED(openmode) } |
| 64 |
|
| 65 |
/** |
| 66 |
* Exports the album @p album to K3B. The mode @p openmode will be used |
| 67 |
* @param openmode The mode of the album |
| 68 |
* @param album The album to export |
| 69 |
*/ |
| 70 |
// FIXME: implement me! |
| 71 |
void exportAlbum( const QString &/*album*/, int openmode=-1 ) { Q_UNUSED(openmode) } |
| 72 |
|
| 73 |
/** |
| 74 |
* Exports the album @p album by artist @ artist to K3B. The mode @p openmode will be used |
| 75 |
* @param openmode The mode of the album |
| 76 |
* @param album The album to export |
| 77 |
*/ |
| 78 |
// FIXME: implement me! |
| 79 |
void exportAlbum( const QString &/*artist*/, const QString &/*album*/, int openmode=-1 ) { Q_UNUSED(openmode) } |
| 80 |
|
| 81 |
/** |
| 82 |
* Exports all tracks of the artist @p artist to K3B. The mode @p openmode will be used |
| 83 |
* @param openmode The mode of the album |
| 84 |
* @param artist The artists which tracks to export |
| 85 |
*/ |
| 86 |
// FIXME: implement me! |
| 87 |
void exportArtist( const QString &/*artist*/, int openmode=-1 ) { Q_UNUSED(openmode) } |
| 88 |
|
| 89 |
/** |
| 90 |
* Exports all tracks of the composer @p composer to K3B. The mode @p openmode will be used |
| 91 |
* @param openmode The mode of the album |
| 92 |
* @param artist The artists which tracks to export |
| 93 |
*/ |
| 94 |
// FIXME: implement me! |
| 95 |
void exportComposer( const QString &/*artist*/, int openmode=-1 ) { Q_UNUSED(openmode) } |
| 96 |
|
| 97 |
/** |
| 98 |
* @return the static instance of K3bExporter |
| 99 |
*/ |
| 100 |
static K3bExporter *instance() { return s_instance; } |
| 101 |
|
| 102 |
private: |
| 103 |
/*void exportViaCmdLine( const KUrl::List &urls, int openmode ); |
| 104 |
void exportViaDCOP( const KUrl::List &urls, DCOPRef &ref, int mode ); |
| 105 |
void DCOPErrorMessage(); |
| 106 |
bool startNewK3bProject( DCOPRef &ref, int mode ); |
| 107 |
K3bOpenMode openMode();*/ |
| 108 |
|
| 109 |
AMAROK_EXPORT static K3bExporter *s_instance; |
| 110 |
}; |
| 111 |
|
| 112 |
|
| 113 |
#endif /* K3BEXPORTER_H */ |