~ubuntu-branches/ubuntu/gutsy/kdebase-workspace/gutsy-backports

« back to all changes in this revision

Viewing changes to kcontrol/bell/bell.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-09-05 20:45:14 UTC
  • Revision ID: james.westby@ubuntu.com-20070905204514-632hhspl0nvrc84i
Tags: upstream-3.93.0
ImportĀ upstreamĀ versionĀ 3.93.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  Copyright (c) 1997 Christian Czezatke (e9025461@student.tuwien.ac.at)
 
3
                1998 Bernd Wuebben <wuebben@kde.org>
 
4
                2000 Matthias Elter <elter@kde.org>
 
5
 
 
6
  This program is free software; you can redistribute it and/or modify
 
7
  it under the terms of the GNU General Public License as published by
 
8
  the Free Software Foundation; either version 2 of the License, or
 
9
  (at your option) any later version.
 
10
 
 
11
  This program is distributed in the hope that it will be useful,
 
12
  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
  GNU General Public License for more details.
 
15
 
 
16
  You should have received a copy of the GNU General Public License
 
17
  along with this program; if not, write to the Free Software
 
18
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
19
*/
 
20
 
 
21
#ifndef __bell_h__
 
22
#define __bell_h__
 
23
 
 
24
#include "kcmodule.h"
 
25
 
 
26
class QCheckBox;
 
27
class KIntNumInput;
 
28
class QPushButton;
 
29
class QStringList;
 
30
 
 
31
class KBellConfig : public KCModule
 
32
{
 
33
  Q_OBJECT
 
34
 
 
35
 public:
 
36
  KBellConfig(QWidget *parent, const QStringList &args);
 
37
 
 
38
  void load();
 
39
  void save();
 
40
  void defaults();
 
41
 
 
42
 protected Q_SLOTS:
 
43
  void ringBell();
 
44
  void useBell( bool );
 
45
 
 
46
 private:
 
47
  QPushButton  *m_testButton;
 
48
  KIntNumInput *m_volume;
 
49
  KIntNumInput *m_pitch;
 
50
  KIntNumInput *m_duration;
 
51
  QCheckBox    *m_useBell;
 
52
};
 
53
 
 
54
#endif