~ubuntu-branches/ubuntu/gutsy/amarok/gutsy-updates

« back to all changes in this revision

Viewing changes to amarok/src/magnatunebrowser/magnatunepurchasedialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2006-11-03 23:57:33 UTC
  • mfrom: (1.31.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061103235733-a41oyfz4mzienqin
Tags: 2:1.4.4-0ubuntu2
Add debian/kubuntu-media-amarok and
debian amarok_play_audiocd.desktop for good KDE integration

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 Copyright (c) 2006  Nikolaj Hald Nielsen <nhnFreespirit@gmail.com>
 
3
 
 
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.
 
8
 
 
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.
 
13
 
 
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.
 
18
*/
 
19
 
 
20
#ifndef MAGNATUNEPURCHASEDIALOG_H
 
21
#define MAGNATUNEPURCHASEDIALOG_H
 
22
 
 
23
#include "magnatunepurchasedialogbase.h"
 
24
#include "magnatunetypes.h"
 
25
 
 
26
class MagnatunePurchaseDialog : public magnatunePurchaseDialogBase
 
27
{
 
28
    Q_OBJECT
 
29
 
 
30
public:
 
31
 
 
32
    /**
 
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.
 
38
     */
 
39
    MagnatunePurchaseDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
 
40
 
 
41
    /**
 
42
     * Destructor
 
43
     */
 
44
    ~MagnatunePurchaseDialog();
 
45
    /*$PUBLIC_FUNCTIONS$*/
 
46
 
 
47
 
 
48
    /**
 
49
     * Sets the album to process.
 
50
     * @param album The album to process.
 
51
     */
 
52
    void setAlbum( MagnatuneAlbum * album );
 
53
 
 
54
 
 
55
signals:
 
56
 
 
57
    /**
 
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 $)
 
67
     */
 
68
    void makePurchase( QString ccNumber, QString expYear, QString expMonth, QString name, QString email, QString albumCode, int amount );
 
69
 
 
70
public slots:
 
71
    /*$PUBLIC_SLOTS$*/
 
72
 
 
73
protected:
 
74
    /*$PROTECTED_FUNCTIONS$*/
 
75
 
 
76
    QString m_albumCode;
 
77
 
 
78
    /**
 
79
     * Helper function to verify that all entries are valid.
 
80
     * @return Returns true if all entries are valid and false otherwise.
 
81
     */
 
82
    bool verifyEntries();
 
83
 
 
84
protected slots:
 
85
    /*$PROTECTED_SLOTS$*/
 
86
 
 
87
    /**
 
88
     * Slot for recieving notification when the purchase button is clicked. 
 
89
     */
 
90
    void purchase();
 
91
 
 
92
    /**
 
93
     * Slot for recieving notification when the cancel button is pressed.
 
94
     */
 
95
    void cancel();
 
96
 
 
97
};
 
98
 
 
99
#endif
 
100