Mailcommon

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

KDE's Doxygen guidelines are available online.