You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

118 lines
3.2 KiB

Copyright (c) 2006 Nikolaj Hald Nielsen <>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
#include "magnatunepurchasedialogbase.h"
#include "magnatunetypes.h"
class MagnatunePurchaseDialog : public magnatunePurchaseDialogBase
* Overridden constructor.
* @param parent Pointer to the parent TQWidget.
* @param name Name of this widget.
* @param modal Sets modal state.
* @param fl Additional dialog flags.
MagnatunePurchaseDialog( TQWidget* parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 );
* Destructor
* Sets the album to process.
* @param album The album to process.
void setAlbum( const MagnatuneAlbum& album );
* Loads image into the cover label.
* @param coverFile image file to load.
void setCover( TQString coverFile );
* Signal emitted when all needed info has been gathered and verified.
* @param ccNumber The credit card number.
* @param expYear The credit card expiration year.
* @param expMonth The credit card expiration month.
* @param name Name of customer.
* @param email Email of customer. Used to send verification email. Can also be used.
* on the site to re-download any previous purchases.
* @param albumCode The album code of the album.
* @param amount The amount to pay (in us $)
void makePurchase( TQString ccNumber, TQString expYear, TQString expMonth, TQString name, TQString email, TQString albumCode, int amount );
* Signal emitted if purchase operation is cancelled
void cancelled();
public slots:
TQString m_albumCode;
* Helper function to verify that all entries are valid.
* @return Returns true if all entries are valid and false otherwise.
bool verifyEntries();
protected slots:
* Slot for recieving notification when the purchase button is clicked.
void purchase();
* Slot for recieving notification when the cancel button is pressed.
void cancel();
* Slot called when the dialog is closed without pressing cancel.
void reject ();