Revert previous commit, was incorrect
[amarok.git] / src / servicebrowser / magnatunestore / magnatunedownloaddialog.h
blob9f583100f7bf9cc1b4f0341c833d554628011dfa
1 /***************************************************************************
2 * Copyright (c) 2006, 2007 *
3 * Nikolaj Hald Nielsen <nhnFreespirit@gmail.com> *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (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, write to the *
17 * Free Software Foundation, Inc., *
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19 ***************************************************************************/
21 #ifndef MAGNATUNEDOWNLOADDIALOG_H
22 #define MAGNATUNEDOWNLOADDIALOG_H
24 #include "magnatunedownloaddialogbase.h"
25 #include "magnatunedownloadinfo.h"
27 #include <qmap.h>
30 /**
31 Dialog for choosing download format and location. Also displays additional info from Magnatune.com.
33 @author Nikolaj Hald Nielsen <nhnFreespirit@gmail.com>
35 class MagnatuneDownloadDialog : public QDialog, public Ui::MagnatuneDownloadDialogBase
37 Q_OBJECT
39 public:
40 /**
41 * Overridden constructor.
42 * @param parent Pointer to the parent QWidget.
43 * @param name Name of this widget.
44 * @param modal Sets modal state.
45 * @param fl Additional dialog flags.
47 explicit MagnatuneDownloadDialog( QWidget* parent = 0, const char* name = 0, bool modal = false, Qt::WFlags fl = 0 );
49 /**
50 * Destructor
52 ~MagnatuneDownloadDialog();
53 /*$PUBLIC_FUNCTIONS$*/
55 /**
56 * Sets the current download info
57 * @param the MagnatuneDownloadInfo class containing the information abut the
58 * download to display
60 void setDownloadInfo( MagnatuneDownloadInfo * info );
62 signals:
64 /**
65 * Signal emitted when all needed info has been gathered and handler
66 * should start album download.
67 * @param completedInfo A DownloadInfo object containing all needed information
69 void downloadAlbum(MagnatuneDownloadInfo * completedInfo);
71 public slots:
72 /*$PUBLIC_SLOTS$*/
74 protected:
75 /*$PROTECTED_FUNCTIONS$*/
76 MagnatuneDownloadInfo * m_currentDownloadInfo;
78 protected slots:
79 /*$PROTECTED_SLOTS$*/
80 /**
81 * Slot for recieving notification when the download button is clicked.
83 void downloadButtonClicked();
87 #endif