2
Copyright (c) 2006 Nikolaj Hald Nielsen <nhnFreespirit@gmail.com>
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License as published by the Free Software Foundation; either
7
version 2 of the License, or (at your option) any later version.
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Library General Public License for more details.
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to
16
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17
Boston, MA 02110-1301, USA.
20
#ifndef MAGNATUNEPURCHASEDIALOG_H
21
#define MAGNATUNEPURCHASEDIALOG_H
23
#include "magnatunepurchasedialogbase.h"
24
#include "magnatunetypes.h"
26
class MagnatunePurchaseDialog : public magnatunePurchaseDialogBase
33
* Overridden constructor.
34
* @param parent Pointer to the parent QWidget.
35
* @param name Name of this widget.
36
* @param modal Sets modal state.
37
* @param fl Additional dialog flags.
39
MagnatunePurchaseDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
44
~MagnatunePurchaseDialog();
45
/*$PUBLIC_FUNCTIONS$*/
49
* Sets the album to process.
50
* @param album The album to process.
52
void setAlbum( MagnatuneAlbum * album );
58
* Signal emitted when all needed info has been gathered and verified.
59
* @param ccNumber The credit card number.
60
* @param expYear The credit card expiration year.
61
* @param expMonth The credit card expiration month.
62
* @param name Name of customer.
63
* @param email Email of customer. Used to send verification email. Can also be used.
64
* on the Magnatune.com site to re-download any prvious purchases.
65
* @param albumCode The album code of the album.
66
* @param amount The amount to pay (in us $)
68
void makePurchase( QString ccNumber, QString expYear, QString expMonth, QString name, QString email, QString albumCode, int amount );
74
/*$PROTECTED_FUNCTIONS$*/
79
* Helper function to verify that all entries are valid.
80
* @return Returns true if all entries are valid and false otherwise.
88
* Slot for recieving notification when the purchase button is clicked.
93
* Slot for recieving notification when the cancel button is pressed.