Mailcommon

filteractionplaysound.h
1 /*
2  * SPDX-FileCopyrightText: 1996-1998 Stefan Taferner <[email protected]>
3  *
4  * SPDX-License-Identifier: GPL-2.0-or-later
5  *
6  */
7 
8 #pragma once
9 
10 #include "filteractionwithtest.h"
11 
12 namespace Phonon
13 {
14 class MediaObject;
15 }
16 
17 namespace MailCommon
18 {
19 //=============================================================================
20 // FilterActionPlaySound - execute command
21 // Execute a sound
22 //=============================================================================
23 class FilterActionPlaySound : public FilterActionWithTest
24 {
25  Q_OBJECT
26 public:
27  FilterActionPlaySound();
28  ~FilterActionPlaySound() override;
29  Q_REQUIRED_RESULT ReturnCode process(ItemContext &context, bool applyOnOutbound) const override;
30  Q_REQUIRED_RESULT SearchRule::RequiredPart requiredPart() const override;
31  static FilterAction *newAction();
32  Q_REQUIRED_RESULT bool argsFromStringInteractive(const QString &argsStr, const QString &filterName) override;
33 
34  Q_REQUIRED_RESULT bool isEmpty() const override;
35  Q_REQUIRED_RESULT QString informationAboutNotValidAction() const override;
36 
37 private:
38  mutable Phonon::MediaObject *mPlayer = nullptr;
39 };
40 }
Q_OBJECTQ_OBJECT
RequiredPart
Possible required parts.
Definition: searchrule.h:68
ReturnCode
Describes the possible return codes of filter processing:
Definition: filteraction.h:45
FilterAction(const QString &name, const QString &label, QObject *parent=nullptr)
Creates a new filter action.
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:14 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.