-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcall.h
More file actions
156 lines (128 loc) · 3.12 KB
/
Copy pathcall.h
File metadata and controls
156 lines (128 loc) · 3.12 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
/*
* Copyright (C) 2014 Dialogic Corp.
*
* 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, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
* Alternatively see <http://www.gnu.org/licenses/>.
* Or see the LICENSE file included within the source tree.
*
*/
#ifndef _CALL_H
#define _CALL_H
/*------------------------------ Dependencies --------------------------------*/
#include "logger.h"
#include "conference720p.h"
/*----------------------------------------------------------------------------*/
/*!
* \class Call
* All info pertaining to a single call leg
*/
class Call
{
public:
Call ()
{
;
}
Call (std::string appname, std::string callid, Conference720p * conference720pApp)
{
callid_ = callid;
appname_ = appname;
conference720pApp_ = conference720pApp;
confregion_ = 0;
audioMuted_ = false;
videoHidden_ = false;
}
Call (const char *appname, const char *callid, Conference720p * conference720pApp)
{
callid_ = callid;
appname_ = appname;
conference720pApp_ = conference720pApp;
confregion_ = 0;
audioMuted_ = false;
videoHidden_ = false;
}
virtual ~ Call ()
{;
}
bool operator== (Call & call)
{
return (call.callid_ == callid_);
}
const std::string & getAppName () const
{
return appname_;
}
const std::string & getCallId () const
{
return callid_;
}
const char *getCallId ()
{
return callid_.c_str ();
}
Conference720p *getApp ()
{
return conference720pApp_;
}
void setConfRegion (int region)
{
confregion_ = region;
}
void clearConfRegion ()
{
confregion_ = 0;
}
int getConfRegion ()
{
return confregion_;
}
bool isAudioMuted ()
{
return audioMuted_;
}
void setAudioMuteOn ()
{
audioMuted_ = true;
}
void setAudioMuteOff ()
{
audioMuted_ = false;
}
bool isVideoHidden ()
{
return videoHidden_;
}
void setVideoHidden ()
{
videoHidden_ = true;
}
void setVideoVisible ()
{
videoHidden_ = false;
}
private:
std::string appname_;
std::string callid_;
Conference720p *conference720pApp_;
int confregion_;
bool audioMuted_;
bool videoHidden_;
};
///////////////////////////////////////////////////////////////////////////////
#endif // _CALL_H
/* vim:ts=4:set nu:
* EOF
*/