diff --git a/kcms/phonon/backendselection.h b/kcms/phonon/backendselection.h index 15eea61c..f000e34c 100644 --- a/kcms/phonon/backendselection.h +++ b/kcms/phonon/backendselection.h @@ -1,74 +1,74 @@ /* This file is part of the KDE project Copyright (C) 2004-2007 Matthias Kretz Copyright (C) 2011-2014 Harald Sitter This program 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) version 3. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 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. */ #ifndef BACKENDSELECTION_H #define BACKENDSELECTION_H #include "ui_backendselection.h" #include #include class KCModuleProxy; struct BackendDescriptor { explicit BackendDescriptor(const QString &path = QString()); bool isValid; QString iid; QString name; QString icon; QString version; QString website; int preference; QString pluginPath; /** Implemented for qSort(QList) */ bool operator <(const BackendDescriptor &rhs) const; }; class BackendSelection : public QWidget, private Ui::BackendSelection { Q_OBJECT public: - explicit BackendSelection(QWidget *parent = 0); + explicit BackendSelection(QWidget *parent = nullptr); void load(); void save(); void defaults(); private Q_SLOTS: void selectionChanged(); void up(); void down(); void openWebsite(const QString &url); Q_SIGNALS: void changed(); private: QHash m_backends; int m_emptyPage; }; #endif // BACKENDSELECTION_H diff --git a/kcms/phonon/devicepreference.h b/kcms/phonon/devicepreference.h index fcae4b2d..2ed8f368 100644 --- a/kcms/phonon/devicepreference.h +++ b/kcms/phonon/devicepreference.h @@ -1,95 +1,95 @@ /* This file is part of the KDE project Copyright (C) 2006-2008 Matthias Kretz Copyright (C) 2011 Casian Andrei This program 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) version 3. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 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. */ #ifndef DEVICEPREFERENCE_H_STUPID_UIC #define DEVICEPREFERENCE_H_STUPID_UIC #include "ui_devicepreference.h" #include #include #include #include namespace Phonon { class MediaObject; class AudioOutput; class VideoWidget; class DevicePreference : public QWidget, private Ui::DevicePreference { Q_OBJECT public: - explicit DevicePreference(QWidget *parent = 0); + explicit DevicePreference(QWidget *parent = nullptr); ~DevicePreference() override; void load(); void save(); void defaults(); void pulseAudioEnabled(); Q_SIGNALS: void changed(); protected: void changeEvent(QEvent *) override; private Q_SLOTS: void on_preferButton_clicked(); void on_deferButton_clicked(); void on_showAdvancedDevicesCheckBox_toggled(); void on_applyPreferencesButton_clicked(); void on_testPlaybackButton_toggled(bool down); void updateButtonsEnabled(); void updateDeviceList(); void updateAudioOutputDevices(); void updateAudioCaptureDevices(); void updateVideoCaptureDevices(); private: enum DeviceType {dtInvalidDevice, dtAudioOutput, dtAudioCapture, dtVideoCapture}; private: template void removeDevice(const ObjectDescription &deviceToRemove, QMap *> *modelMap); void loadCategoryDevices(); QList availableAudioOutputDevices() const; QList availableAudioCaptureDevices() const; QList availableVideoCaptureDevices() const; DeviceType shownModelType() const; private: QMap m_audioOutputModel; QMap m_audioCaptureModel; QMap m_videoCaptureModel; QStandardItemModel m_categoryModel; QStandardItemModel m_headerModel; DeviceType m_testingType; MediaObject *m_media; AudioOutput *m_audioOutput; VideoWidget *m_videoWidget; }; } // namespace Phonon #endif // DEVICEPREFERENCE_H_STUPID_UIC