mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
call: move default values to header
Change-Id: Ibd86fb8a1c21a74457d5881c28b20bf143680f9e
This commit is contained in:

committed by
Tristan Matthews

parent
f3d47968c2
commit
2db6e7a4b2
@ -44,20 +44,10 @@
|
||||
|
||||
Call::Call(Account& account, const std::string& id, Call::CallType type)
|
||||
: callMutex_()
|
||||
, localAddr_()
|
||||
, localAudioPort_(0)
|
||||
, localVideoPort_(0)
|
||||
, id_(id)
|
||||
, confID_()
|
||||
, type_(type)
|
||||
, account_(account)
|
||||
, connectionState_(Call::DISCONNECTED)
|
||||
, callState_(Call::INACTIVE)
|
||||
, isIPToIP_(false)
|
||||
, peerNumber_()
|
||||
, displayName_()
|
||||
, timestamp_start_(0)
|
||||
, timestamp_stop_(0)
|
||||
{
|
||||
time(×tamp_start_);
|
||||
account_.attachCall(id_);
|
||||
|
@ -313,24 +313,24 @@ class Call : public Recordable {
|
||||
|
||||
std::string getTypeStr() const;
|
||||
/** Protect every attribute that can be changed by two threads */
|
||||
mutable std::mutex callMutex_;
|
||||
mutable std::mutex callMutex_ {};
|
||||
|
||||
// Informations about call socket / audio
|
||||
|
||||
/** My IP address */
|
||||
IpAddr localAddr_;
|
||||
IpAddr localAddr_ {};
|
||||
|
||||
/** Local audio port, as seen by me. */
|
||||
unsigned int localAudioPort_;
|
||||
unsigned int localAudioPort_ {0};
|
||||
|
||||
/** Local video port, as seen by me. */
|
||||
unsigned int localVideoPort_;
|
||||
unsigned int localVideoPort_ {0};
|
||||
|
||||
/** Unique ID of the call */
|
||||
std::string id_;
|
||||
|
||||
/** Unique conference ID, used exclusively in case of a conferece */
|
||||
std::string confID_;
|
||||
std::string confID_ {};
|
||||
|
||||
/** Type of the call */
|
||||
CallType type_;
|
||||
@ -339,22 +339,22 @@ class Call : public Recordable {
|
||||
Account& account_;
|
||||
|
||||
/** Disconnected/Progressing/Trying/Ringing/Connected */
|
||||
ConnectionState connectionState_;
|
||||
ConnectionState connectionState_ {Call::DISCONNECTED};
|
||||
|
||||
/** Inactive/Active/Hold/Busy/Error */
|
||||
CallState callState_;
|
||||
CallState callState_ {Call::INACTIVE};
|
||||
|
||||
/** Direct IP-to-IP or classic call */
|
||||
bool isIPToIP_;
|
||||
bool isIPToIP_ {false};
|
||||
|
||||
/** Number of the peer */
|
||||
std::string peerNumber_;
|
||||
std::string peerNumber_ {};
|
||||
|
||||
/** Display Name */
|
||||
std::string displayName_;
|
||||
std::string displayName_ {};
|
||||
|
||||
time_t timestamp_start_;
|
||||
time_t timestamp_stop_;
|
||||
time_t timestamp_start_ {0};
|
||||
time_t timestamp_stop_ {0};
|
||||
};
|
||||
|
||||
#endif // __CALL_H__
|
||||
|
Reference in New Issue
Block a user