kde-workspace/kcontrol/knotify/knotify.h
Ivailo Monev de7cddaba2 generic: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-08 14:51:07 +00:00

84 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>
#include <QPushButton>
class KComboBox;
class PlayerSettingsDialog;
class KNotifyConfigWidget;
QT_BEGIN_NAMESPACE
class Ui_PlayerSettingsUI;
QT_END_NAMESPACE
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