/* Copyright (C) 2000,2002 Carsten Pfeiffer Copyright (C) 2005,2006 Olivier Goffart 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 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 externalToggled( bool on ); void slotChanged(); signals: void changed(bool); private: Ui::PlayerSettingsUI* m_ui; bool m_change; }; #endif