Not crap after all...
[amarok.git] / src / k3bexporter.h
blobaf897f9b6b949c072812fcfc5449d313633c6e50
1 /***************************************************************************
2 begin : Mon May 31 2004
3 copyright : (C) 2004 by Michael Pyne
4 (c) 2004 by Pierpaolo Di Panfilo
5 email : michael.pyne@kdemail.net
6 ***************************************************************************/
8 /***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
17 #ifndef K3BEXPORTER_H
18 #define K3BEXPORTER_H
20 #include "amarok_export.h"
21 #include <kurl.h>
23 //class DCOPRef;
25 /**
26 * This class will export a list of tracks to K3b.
28 class K3bExporter
30 public:
31 enum K3bOpenMode { AudioCD, DataCD, Abort };
33 /**
34 * @return true if the executable of K3B is found
36 // FIXME: implement me!
37 AMAROK_EXPORT static bool isAvailable() { return false; };
40 /**
41 * Exports the list of urls @urls via DCOP to K3B. The mode @p openmode will be used
42 * @param urls The list of urls to export
43 * @param openmode The mode of the album
45 // FIXME: implement me!
46 AMAROK_EXPORT void exportTracks( const KUrl::List &/*urls*/, int openmode=-1 ) { Q_UNUSED(openmode) };
48 /**
49 * Exports the current playlist to K3B. The mode @p openmode will be used
50 * @param openmode The mode of the album
52 // FIXME: implement me!
53 void exportCurrentPlaylist( int openmode=-1 ) { Q_UNUSED(openmode) };
55 /**
56 * Exports the selected tracks to K3B. The mode @p openmode will be used
57 * @param openmode The mode of the tracks
59 // FIXME: implement me!
60 void exportSelectedTracks( int openmode=-1 ) { Q_UNUSED(openmode) };
62 /**
63 * Exports the album @p album to K3B. The mode @p openmode will be used
64 * @param openmode The mode of the album
65 * @param album The album to export
67 // FIXME: implement me!
68 void exportAlbum( const QString &/*album*/, int openmode=-1 ) { Q_UNUSED(openmode) };
70 /**
71 * Exports the album @p album by artist @ artist to K3B. The mode @p openmode will be used
72 * @param openmode The mode of the album
73 * @param album The album to export
75 // FIXME: implement me!
76 void exportAlbum( const QString &/*artist*/, const QString &/*album*/, int openmode=-1 ) { Q_UNUSED(openmode) };
78 /**
79 * Exports all tracks of the artist @p artist to K3B. The mode @p openmode will be used
80 * @param openmode The mode of the album
81 * @param artist The artists which tracks to export
83 // FIXME: implement me!
84 void exportArtist( const QString &/*artist*/, int openmode=-1 ) { Q_UNUSED(openmode) };
86 /**
87 * Exports all tracks of the composer @p composer to K3B. The mode @p openmode will be used
88 * @param openmode The mode of the album
89 * @param artist The artists which tracks to export
91 // FIXME: implement me!
92 void exportComposer( const QString &/*artist*/, int openmode=-1 ) { Q_UNUSED(openmode) };
94 /**
95 * @return the static instance of K3bExporter
97 static K3bExporter *instance() { return s_instance; }
99 private:
100 /*void exportViaCmdLine( const KUrl::List &urls, int openmode );
101 void exportViaDCOP( const KUrl::List &urls, DCOPRef &ref, int mode );
102 void DCOPErrorMessage();
103 bool startNewK3bProject( DCOPRef &ref, int mode );
104 K3bOpenMode openMode();*/
106 AMAROK_EXPORT static K3bExporter *s_instance;
110 #endif /* K3BEXPORTER_H */