/usr/include/kadu/plugins/sound/sound-play-thread.h is in kadu-dev 0.12.3-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | /*
* %kadu copyright begin%
* Copyright 2008, 2011 Piotr Galiszewski (piotr.galiszewski@kadu.im)
* Copyright 2009 Wojciech Treter (juzefwt@gmail.com)
* Copyright 2008 Michał Podsiadlik (michal@kadu.net)
* Copyright 2009 Bartłomiej Zimoń (uzi18@o2.pl)
* Copyright 2004 Adrian Smarzewski (adrian@kadu.net)
* Copyright 2007, 2008, 2009, 2010, 2011 Rafał Malinowski (rafal.przemyslaw.malinowski@gmail.com)
* Copyright 2010, 2011 Bartosz Brachaczek (b.brachaczek@gmail.com)
* Copyright 2004, 2006 Marcin Ślusarz (joi@kadu.net)
* %kadu copyright end%
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef SOUND_PLAY_THREAD_H
#define SOUND_PLAY_THREAD_H
#include <QtCore/QMutex>
#include <QtCore/QObject>
#include <QtCore/QWaitCondition>
#include <QtCore/QWeakPointer>
class SoundPlayer;
class SoundPlayThread : public QObject
{
Q_OBJECT
bool End;
bool CurrentlyNotWaiting;
QMutex PlayingMutex;
QMutex NewSoundToPlay;
QWaitCondition WaitForNewSoundToPlay;
bool Play;
QWeakPointer<SoundPlayer> Player;
QString Path;
public:
explicit SoundPlayThread();
virtual ~SoundPlayThread();
void end();
void play(SoundPlayer *player, const QString &path);
public slots:
void start();
signals:
void finished();
};
#endif // SOUND_PLAY_THREAD_H
|