1 /***************************************************************************
2 * Copyright (c) 2006, 2007 *
3 * Nikolaj Hald Nielsen <nhnFreespirit@gmail.com> *
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. *
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. *
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"
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
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 );
52 ~MagnatuneDownloadDialog();
53 /*$PUBLIC_FUNCTIONS$*/
56 * Sets the current download info
57 * @param the MagnatuneDownloadInfo class containing the information abut the
60 void setDownloadInfo( MagnatuneDownloadInfo
* info
);
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
);
75 /*$PROTECTED_FUNCTIONS$*/
76 MagnatuneDownloadInfo
* m_currentDownloadInfo
;
81 * Slot for recieving notification when the download button is clicked.
83 void downloadButtonClicked();