mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-25 19:32:52 +00:00

in the future the volume will be configurable via a custom widget that is specifically for KMediaPlayer and friends so the KCM will have to be reworked to make use of it for volume control but until that happens the only options are sound and no sound for notifications Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
85 lines
1.9 KiB
C++
85 lines
1.9 KiB
C++
/*
|
|
Copyright (C) 2000,2002 Carsten Pfeiffer <pfeiffer@kde.org>
|
|
Copyright (C) 2005,2006 Olivier Goffart <ogoffart at kde.org>
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
This program 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
|
|
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 KNOTIFY_H
|
|
#define KNOTIFY_H
|
|
|
|
|
|
#include <kcmodule.h>
|
|
|
|
class KComboBox;
|
|
class PlayerSettingsDialog;
|
|
namespace Ui{
|
|
class PlayerSettingsUI;
|
|
}
|
|
class QPushButton;
|
|
class KNotifyConfigWidget;
|
|
|
|
|
|
class KCMKNotify : public KCModule
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
KCMKNotify(QWidget *parent, const QVariantList &);
|
|
virtual ~KCMKNotify();
|
|
|
|
virtual void defaults();
|
|
virtual void save();
|
|
|
|
public Q_SLOTS:
|
|
virtual void load();
|
|
|
|
private Q_SLOTS:
|
|
void slotAppActivated( const int &);
|
|
void slotPlayerSettings();
|
|
|
|
private:
|
|
|
|
KComboBox *m_appCombo;
|
|
KNotifyConfigWidget *m_notifyWidget;
|
|
PlayerSettingsDialog *m_playerSettings;
|
|
};
|
|
|
|
class PlayerSettingsDialog : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
PlayerSettingsDialog( QWidget *parent );
|
|
~PlayerSettingsDialog();
|
|
void load();
|
|
void save();
|
|
void defaults();
|
|
|
|
protected Q_SLOTS:
|
|
void slotChanged();
|
|
|
|
signals:
|
|
void changed(bool);
|
|
private:
|
|
Ui::PlayerSettingsUI* m_ui;
|
|
bool m_change;
|
|
};
|
|
|
|
|
|
#endif
|