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

mailcommon

  • sources
  • kde-4.12
  • 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 #include <KLineEdit>
24 
25 #include <QString>
26 
27 class QPushButton;
28 class KUrlRequester;
29 
30 namespace MailCommon {
31 
35 class SoundTestWidget : public QWidget
36 {
37  Q_OBJECT
38 
39 public:
45  explicit SoundTestWidget( QWidget *parent = 0 );
46 
50  ~SoundTestWidget();
51 
55  void setUrl( const QString &url );
56 
60  QString url() const;
61 
65  void clear();
66 
67 Q_SIGNALS:
72  void testPressed();
73 
78  void textChanged( const QString& );
79 
80 private Q_SLOTS:
81  void playSound();
82  void openSoundDialog( KUrlRequester* );
83  void slotUrlChanged( const QString& );
84 
85 private:
86  KUrlRequester *m_urlRequester;
87  QPushButton *m_playButton;
88 };
89 
90 }
91 
92 #endif
MailCommon::SoundTestWidget::url
QString url() const
Returns the url of the sound file to play.
Definition: soundtestwidget.cpp:124
MailCommon::SoundTestWidget::~SoundTestWidget
~SoundTestWidget()
Destroys the sound test widget.
Definition: soundtestwidget.cpp:59
MailCommon::SoundTestWidget
A widget to play a sound from a given URL.
Definition: soundtestwidget.h:35
QWidget
MailCommon::SoundTestWidget::SoundTestWidget
SoundTestWidget(QWidget *parent=0)
Creates a new sound test widget.
Definition: soundtestwidget.cpp:34
MailCommon::SoundTestWidget::testPressed
void testPressed()
This signal is emitted when the user clicked the Play button.
MailCommon::SoundTestWidget::setUrl
void setUrl(const QString &url)
Sets the url of the sound file to play.
Definition: soundtestwidget.cpp:129
MailCommon::SoundTestWidget::textChanged
void textChanged(const QString &)
This signal is emitted when the user enters a new URL.
MailCommon::SoundTestWidget::clear
void clear()
Clears the url of the sound file to play.
Definition: soundtestwidget.cpp:134
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:15 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

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