~ubuntu-branches/ubuntu/lucid/lastfm/lucid

« back to all changes in this revision

Viewing changes to src/settingsdialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2007-12-31 09:49:54 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20071231094954-ix1amvcsj9pk61ya
Tags: 1:1.4.1.57486.dfsg-1ubuntu1
* Merge from Debian unstable (LP: #180254), remaining changes:
  - debian/rules;
    - Added dh_icons
  - Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *   Copyright (C) 2005 - 2007 by                                          *
3
3
 *      Christian Muehlhaeuser, Last.fm Ltd <chris@last.fm>                *
4
4
 *      Erik Jaelevik, Last.fm Ltd <erik@last.fm>                          *
 
5
 *      Jono Cole, Last.fm Ltd <jono@last.fm>                              *
5
6
 *                                                                         *
6
7
 *   This program is free software; you can redistribute it and/or modify  *
7
8
 *   it under the terms of the GNU General Public License as published by  *
16
17
 *   You should have received a copy of the GNU General Public License     *
17
18
 *   along with this program; if not, write to the                         *
18
19
 *   Free Software Foundation, Inc.,                                       *
19
 
 *   51 Franklin Steet, Fifth Floor, Boston, MA  02111-1307, USA.          *
 
20
 *   51 Franklin Steet, Fifth Floor, Boston, MA  02110-1301, USA.          *
20
21
 ***************************************************************************/
21
22
 
22
23
#ifndef __SETTINGSDIALOG_H__
31
32
#include "ui_settingsdialog_connection.h"
32
33
#include "ui_settingsdialog_mediadevices.h"
33
34
 
 
35
class LoginWidget;
 
36
 
34
37
class SettingsDialog : public QDialog
35
38
{
36
39
    Q_OBJECT
41
44
        void addExtension( ExtensionInterface* ext );
42
45
 
43
46
        // not virtual unfortunately :(
44
 
        int exec();
45
 
        
 
47
        int exec( int startPage = 0 );
 
48
 
46
49
    public slots:
47
50
        void applyPressed();
48
 
        
 
51
 
49
52
    private slots:
50
53
        void configChanged();
51
 
        void pageChanged( int currentRow );
 
54
        void pageSwitched( int currentRow );
52
55
        void clearCache();
53
56
        void removeMediaDevice();
54
57
        void mediaDeviceItemSelected( QTreeWidgetItem* current, QTreeWidgetItem* previous );
 
58
        void verifiedAccount( bool verified, bool bootstrap );
 
59
 
 
60
        void pageSaved( int page );
 
61
        void onOkClicked();
55
62
 
56
63
    private:
57
64
        void populateAccount();
65
72
        void saveScrobbling();
66
73
        void saveConnection();
67
74
        void saveMediaDevices();
68
 
                #ifdef Q_WS_MAC
69
 
                        void toggleDockIcon();
70
 
                        bool isDockIconVisible();
71
 
                #endif
72
 
        
73
 
        virtual void accept();
74
 
        virtual void reject();
 
75
 
 
76
        #ifdef Q_WS_MAC
 
77
            void toggleDockIcon();
 
78
            bool isDockIconVisible();
 
79
        #endif
75
80
 
76
81
        Ui::SettingsDialog ui;
77
82
        Ui::SettingsDialogAccount ui_account;
80
85
        Ui::SettingsDialogConnection ui_connection;
81
86
        Ui::SettingsDialogMediaDevices ui_mediadevices;
82
87
 
 
88
        LoginWidget* m_loginWidget;
 
89
 
83
90
        QList<ExtensionInterface*> extensions;
84
91
        QSet<int> m_pagesToSave;
85
92
 
94
101
 
95
102
        int originalSoundCard;
96
103
        int originalSoundSystem;
 
104
 
 
105
        bool m_reconnect;
 
106
        bool m_reAudio;
 
107
        bool m_populating;
97
108
};
98
109
 
99
110
#endif