Classified ads
mockup_voicecallengine.h
Go to the documentation of this file.
1 /* -*-C++-*- -*-coding: utf-8-unix;-*-
2  Classified Ads is Copyright (c) Antti Järvinen 2015.
3 
4  This file is part of Classified Ads.
5 
6  Classified Ads is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (at your option) any later version.
10 
11  Classified Ads is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public
17  License along with Classified Ads; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20 
21 #ifndef MOCKUP_VOICECALLENGINE_H
22 #define MOCKUP_VOICECALLENGINE_H
23 #include "../net/mvoicecallengine.h"
24 class Hash ;
25 class VoiceCall ;
26 
28 public:
31 
35  virtual void installObserver(MVoiceCallEngine::MCallStatusObserver* aObserver) ;
36 
40  virtual void removeObserver(MVoiceCallEngine::MCallStatusObserver* aObserver) ;
41 
56  virtual void insertCallData(quint32 aCallId,
57  quint32 aSeqNo,
58  PayloadType aPayloadType,
59  const QByteArray& aPayload,
60  const Hash& aSendingNode) ;
61 
91  virtual void insertCallStatusData(const VoiceCall& aCallStatus,
92  const Hash& aSendingNode) ;
96  virtual QList<quint32> onGoingCalls() const ;
100  virtual CallState callStatus(quint32 aCallId) const ;
104  virtual void closeCall(quint32 aCallId) ;
108  virtual void acceptCall(quint32 aCallId) ;
109 public: // data
110  QList<MCallStatusObserver*> iObservers ;
111  quint32 iCallId ;
113  QByteArray iCalldata ;
114 } ;
115 
116 #endif
Pure-virtual interface for voice call engine.
Definition: mvoicecallengine.h:33
virtual void closeCall(quint32 aCallId)
Carrier-class handling audio negotiation setup and data.
Definition: voicecall.h:40
Hash is class that carries 160-bit digest.
Definition: hash.h:38
QByteArray iCalldata
Definition: mockup_voicecallengine.h:113
virtual void acceptCall(quint32 aCallId)
Definition: mockup_voicecallengine.h:27
virtual QList< quint32 > onGoingCalls() const
PayloadType
Definition: mvoicecallengine.h:63
Definition: mvoicecallengine.h:52
virtual CallState callStatus(quint32 aCallId) const
virtual void installObserver(MVoiceCallEngine::MCallStatusObserver *aObserver)
CallState
Definition: mvoicecallengine.h:38
virtual void insertCallStatusData(const VoiceCall &aCallStatus, const Hash &aSendingNode)
QList< MCallStatusObserver * > iObservers
Definition: mockup_voicecallengine.h:110
virtual void removeObserver(MVoiceCallEngine::MCallStatusObserver *aObserver)
quint32 iCallId
Definition: mockup_voicecallengine.h:111
quint32 iCallIdOfReceivedRtData
Definition: mockup_voicecallengine.h:112
virtual void insertCallData(quint32 aCallId, quint32 aSeqNo, PayloadType aPayloadType, const QByteArray &aPayload, const Hash &aSendingNode)