21 #ifndef RINGTONE_PLAYER_H 22 #define RINGTONE_PLAYER_H 25 #include <QAudioOutput> 28 #include <opus/opus.h> 29 #include "../net/voicecallengine.h" 30 #include "../mcontroller.h" 31 #include "../datamodel/model.h" 70 return iAudioBuffer.size() + QIODevice::bytesAvailable();
84 virtual qint64
writeData (
const char * data, qint64 maxSize ) ;
95 virtual qint64
readData (
char * data, qint64 maxSize ) ;
99 virtual bool open ( OpenMode mode ) ;
113 void error(
int aError,
114 const QString& aExplanation) ;
MController & iController
Definition: ringtoneplayer.h:146
virtual bool open(OpenMode mode)
void error(int aError, const QString &aExplanation)
QByteArray iDecodedData
Definition: ringtoneplayer.h:143
bool iNeedsToRun
Definition: ringtoneplayer.h:139
Model & iModel
Definition: ringtoneplayer.h:145
virtual bool isSequential() const
Definition: ringtoneplayer.h:106
Class for alerting user in case of incoming call.
Definition: ringtoneplayer.h:42
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:43
M of the MVC pattern. Handles permanent storage.
Definition: model.h:48
OpusDecoder * iDecoder
Definition: ringtoneplayer.h:142
Definition: mvoicecallengine.h:52
QMutex * iMutex
Definition: ringtoneplayer.h:144
CallState
Definition: mvoicecallengine.h:38
virtual qint64 readData(char *data, qint64 maxSize)
RingtonePlayer(Model &aModel, MController &aController)
QAudioOutput * iAudioOutput
Definition: ringtoneplayer.h:137
virtual qint64 writeData(const char *data, qint64 maxSize)
QFile * iRingtoneFile
Definition: ringtoneplayer.h:140
virtual void finishedPlaying(QAudio::State aState)
int iTimerId
Definition: ringtoneplayer.h:141
QAudioFormat iFormat
Definition: ringtoneplayer.h:136
void timerEvent(QTimerEvent *event)
virtual qint64 bytesAvailable() const
Definition: ringtoneplayer.h:69
QByteArray iAudioBuffer
Definition: ringtoneplayer.h:138
virtual void callStatusChanged(quint32 aCallId, VoiceCallEngine::CallState aState)