~ubuntu-branches/ubuntu/gutsy/kid3/gutsy

« back to all changes in this revision

Viewing changes to kid3/importdialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Sarah Hobbs
  • Date: 2006-07-14 12:25:16 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060714122516-p2wk0iyzumu6jx42
Tags: 0.7-1ubuntu1
Merge from debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
#include "config.h"
14
14
#include "importtrackdata.h"
15
 
#ifdef CONFIG_USE_KDE
16
 
#include <kdialogbase.h>
17
 
#else
18
15
#include <qdialog.h>
19
 
#endif
20
16
 
21
17
class ImportSelector;
22
18
class FreedbConfig;
29
25
/**
30
26
 * Import dialog.
31
27
 */
32
 
class ImportDialog : public
33
 
#ifdef CONFIG_USE_KDE
34
 
KDialogBase
35
 
#else
36
 
QDialog
37
 
#endif
38
 
{
 
28
class ImportDialog : public QDialog {
 
29
Q_OBJECT
 
30
 
39
31
public:
40
32
        /**
 
33
         * Sub-Dialog to be started automatically.
 
34
         */
 
35
        enum AutoStartSubDialog {
 
36
                ASD_None,
 
37
                ASD_Freedb,
 
38
                ASD_MusicBrainz
 
39
        };
 
40
 
 
41
        /**
41
42
         * Constructor.
42
43
         *
43
44
         * @param parent        parent widget
51
52
         * Destructor.
52
53
         */
53
54
        ~ImportDialog();
 
55
 
 
56
        /**
 
57
         * Set dialog to be started automatically.
 
58
         *
 
59
         * @param asd dialog to be started
 
60
         */
 
61
        void setAutoStartSubDialog(AutoStartSubDialog asd) {
 
62
                m_autoStartSubDialog = asd;
 
63
        }
 
64
 
 
65
        /**
 
66
         * Clear dialog data.
 
67
         */
 
68
        void clear();
54
69
        /**
55
70
         * Set ID3v1 or ID3v2 tags as destination.
56
71
         *
128
143
         */
129
144
        void getMusicBrainzConfig(MusicBrainzConfig* cfg) const;
130
145
#endif
 
146
 
 
147
public slots:
 
148
        /**
 
149
         * Shows the dialog as a modal dialog.
 
150
         */
 
151
        int exec();
 
152
 
131
153
private:
 
154
        AutoStartSubDialog m_autoStartSubDialog;
132
155
        /** import selector widget */
133
156
        ImportSelector *impsel;
134
157
        ImportTrackDataVector& m_trackDataVector;