Commit ba1a5459 authored by David Jarvie's avatar David Jarvie
Browse files

Fix build, remove file which was renamed

Renamed messagewin_p.h -> messagedisplayhelper_p.h
parent b87231b7
Pipeline #32403 passed with stage
in 11 minutes and 25 seconds
......@@ -629,7 +629,7 @@ int KAlarmApp::activateInstance(const QStringList& args, const QString& workingD
if (Resources::allCreated())
{
mRedisplayAlarms = false;
MessageWin::redisplayAlarms();
MessageDisplay::redisplayAlarms();
}
else
mRedisplayAlarms = true;
......
/*
* messagewin_p.h - private declarations for MessageWin
* Program: kalarm
* SPDX-FileCopyrightText: 2009-2013 David Jarvie <djarvie@kde.org>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef MESSAGEWIN_P_H
#define MESSAGEWIN_P_H
#include <phonon/phononnamespace.h>
#include <phonon/path.h>
#include <QThread>
#include <QMutex>
class MessageWin;
namespace Phonon { class MediaObject; }
class AudioThread : public QThread
{
Q_OBJECT
public:
AudioThread(MessageWin* parent, const QString& audioFile, float volume, float fadeVolume, int fadeSeconds, int repeatPause);
~AudioThread();
void stop(bool wait = false);
QString error() const;
static MessageWin* mAudioOwner; // window which owns the unique AudioThread
Q_SIGNALS:
void readyToPlay();
protected:
void run() override;
private Q_SLOTS:
void checkAudioPlay();
void playStateChanged(Phonon::State);
void stopPlay();
private:
mutable QMutex mMutex;
QString mFile;
float mVolume;
float mFadeVolume;
int mFadeSeconds;
int mRepeatPause;
Phonon::MediaObject* mAudioObject;
Phonon::Path mPath;
QString mError;
bool mPlayedOnce; // the sound file has started playing at least once
bool mPausing; // currently pausing between repeats
};
#endif // MESSAGEWIN_P_H
// vim: et sw=4:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment