• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

mailcommon

  • sources
  • kde-4.14
  • kdepim
  • mailcommon
  • filter
soundtestwidget.h
Go to the documentation of this file.
1 /*
2  kmfawidgets.h - KMFilterAction parameter widgets
3  Copyright (c) 2001 Marc Mutz <mutz@kde.org>
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License along
16  with this program; if not, write to the Free Software Foundation, Inc.,
17  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef MAILCOMMON_SOUNDTESTWIDGET_H
21 #define MAILCOMMON_SOUNDTESTWIDGET_H
22 
23 
24 #include <QWidget>
25 
26 class QPushButton;
27 class KUrlRequester;
28 
29 namespace MailCommon {
30 
34 class SoundTestWidget : public QWidget
35 {
36  Q_OBJECT
37 
38 public:
44  explicit SoundTestWidget( QWidget *parent = 0 );
45 
49  ~SoundTestWidget();
50 
54  void setUrl( const QString &url );
55 
59  QString url() const;
60 
64  void clear();
65 
66 Q_SIGNALS:
71  void testPressed();
72 
77  void textChanged( const QString& );
78 
79 private Q_SLOTS:
80  void playSound();
81  void openSoundDialog( KUrlRequester* );
82  void slotUrlChanged( const QString& );
83 
84 private:
85  KUrlRequester *m_urlRequester;
86  QPushButton *m_playButton;
87 };
88 
89 }
90 
91 #endif
MailCommon::SoundTestWidget::url
QString url() const
Returns the url of the sound file to play.
Definition: soundtestwidget.cpp:125
QWidget
MailCommon::SoundTestWidget::~SoundTestWidget
~SoundTestWidget()
Destroys the sound test widget.
Definition: soundtestwidget.cpp:60
MailCommon::SoundTestWidget
A widget to play a sound from a given URL.
Definition: soundtestwidget.h:34
MailCommon::SoundTestWidget::SoundTestWidget
SoundTestWidget(QWidget *parent=0)
Creates a new sound test widget.
Definition: soundtestwidget.cpp:35
MailCommon::SoundTestWidget::testPressed
void testPressed()
This signal is emitted when the user clicked the Play button.
QString
MailCommon::SoundTestWidget::setUrl
void setUrl(const QString &url)
Sets the url of the sound file to play.
Definition: soundtestwidget.cpp:130
MailCommon::SoundTestWidget::textChanged
void textChanged(const QString &)
This signal is emitted when the user enters a new URL.
QPushButton
QObject::parent
QObject * parent() const
MailCommon::SoundTestWidget::clear
void clear()
Clears the url of the sound file to play.
Definition: soundtestwidget.cpp:135
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

mailcommon

Skip menu "mailcommon"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal