mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
api: remove getDisplayNames
Change-Id: If641609b25cf6dad1a2c91fe534c2fa3a7119ad1
This commit is contained in:
@ -807,23 +807,6 @@
|
||||
</arg>
|
||||
</signal>
|
||||
|
||||
<method name="getDisplayNames" tp:name-for-bindings="getDisplayNames">
|
||||
<tp:added version="1.3.0"/>
|
||||
<tp:docstring>
|
||||
Get the display name of every participant in a given conference, or their number as a fallback.
|
||||
</tp:docstring>
|
||||
<arg type="s" name="confID" direction="in">
|
||||
<tp:docstring>
|
||||
The conference ID.
|
||||
</tp:docstring>
|
||||
</arg>
|
||||
<arg type="as" name="list" direction="out">
|
||||
<tp:docstring>
|
||||
The list of the display names.
|
||||
</tp:docstring>
|
||||
</arg>
|
||||
</method>
|
||||
|
||||
<method name="getParticipantList" tp:name-for-bindings="getParticipantList">
|
||||
<tp:added version="0.9.7"/>
|
||||
<tp:docstring>
|
||||
|
@ -252,13 +252,6 @@ DBusCallManager::getParticipantList(const std::string& confID)
|
||||
return DRing::getParticipantList(confID);
|
||||
}
|
||||
|
||||
auto
|
||||
DBusCallManager::getDisplayNames(const std::string& confID)
|
||||
-> decltype(DRing::getDisplayNames(confID))
|
||||
{
|
||||
return DRing::getDisplayNames(confID);
|
||||
}
|
||||
|
||||
auto
|
||||
DBusCallManager::getConferenceId(const std::string& callID)
|
||||
-> decltype(DRing::getConferenceId(callID))
|
||||
|
@ -97,7 +97,6 @@ public:
|
||||
bool unholdConference(const std::string& confID);
|
||||
std::vector<std::string> getConferenceList();
|
||||
std::vector<std::string> getParticipantList(const std::string& confID);
|
||||
std::vector<std::string> getDisplayNames(const std::string& confID);
|
||||
std::string getConferenceId(const std::string& callID);
|
||||
std::map<std::string, std::string> getConferenceDetails(const std::string& callID);
|
||||
bool startRecordedFilePlayback(const std::string& filepath);
|
||||
|
@ -99,7 +99,6 @@ bool holdConference(const std::string& confID);
|
||||
bool unholdConference(const std::string& confID);
|
||||
std::vector<std::string> getConferenceList();
|
||||
std::vector<std::string> getParticipantList(const std::string& confID);
|
||||
std::vector<std::string> getDisplayNames(const std::string& confID);
|
||||
std::string getConferenceId(const std::string& callID);
|
||||
std::map<std::string, std::string> getConferenceDetails(const std::string& callID);
|
||||
std::vector<std::map<std::string, std::string>> getConferenceInfos(const std::string& confId);
|
||||
|
@ -90,7 +90,6 @@ bool holdConference(const std::string& confID);
|
||||
bool unholdConference(const std::string& confID);
|
||||
std::vector<std::string> getConferenceList();
|
||||
std::vector<std::string> getParticipantList(const std::string& confID);
|
||||
std::vector<std::string> getDisplayNames(const std::string& confID);
|
||||
std::string getConferenceId(const std::string& callID);
|
||||
std::map<std::string, std::string> getConferenceDetails(const std::string& callID);
|
||||
std::vector<std::map<std::string, std::string>> getConferenceInfos(const std::string& confId);
|
||||
|
@ -262,12 +262,6 @@ getParticipantList(const std::string& confID)
|
||||
return jami::Manager::instance().getParticipantList(confID);
|
||||
}
|
||||
|
||||
std::vector<std::string>
|
||||
getDisplayNames(const std::string& confID)
|
||||
{
|
||||
return jami::Manager::instance().getDisplayNames(confID);
|
||||
}
|
||||
|
||||
std::string
|
||||
getConferenceId(const std::string& callID)
|
||||
{
|
||||
|
@ -717,20 +717,6 @@ Conference::getParticipantList() const
|
||||
return participants_;
|
||||
}
|
||||
|
||||
std::vector<std::string>
|
||||
Conference::getDisplayNames() const
|
||||
{
|
||||
std::vector<std::string> result;
|
||||
result.reserve(participants_.size());
|
||||
|
||||
for (const auto& p : participants_) {
|
||||
auto details = Manager::instance().getCallDetails(p);
|
||||
const auto tmp = details["DISPLAY_NAME"];
|
||||
result.emplace_back(tmp.empty() ? details["PEER_NUMBER"] : tmp);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
bool
|
||||
Conference::toggleRecording()
|
||||
{
|
||||
|
@ -288,11 +288,6 @@ public:
|
||||
*/
|
||||
const ParticipantSet& getParticipantList() const;
|
||||
|
||||
/**
|
||||
* Get the display names or peer numbers for this conference
|
||||
*/
|
||||
std::vector<std::string> getDisplayNames() const;
|
||||
|
||||
/**
|
||||
* Start/stop recording toggle
|
||||
*/
|
||||
|
@ -87,7 +87,6 @@ DRING_PUBLIC bool holdConference(const std::string& confID);
|
||||
DRING_PUBLIC bool unholdConference(const std::string& confID);
|
||||
DRING_PUBLIC std::vector<std::string> getConferenceList();
|
||||
DRING_PUBLIC std::vector<std::string> getParticipantList(const std::string& confID);
|
||||
DRING_PUBLIC std::vector<std::string> getDisplayNames(const std::string& confID);
|
||||
DRING_PUBLIC std::string getConferenceId(const std::string& callID);
|
||||
DRING_PUBLIC std::map<std::string, std::string> getConferenceDetails(const std::string& callID);
|
||||
DRING_PUBLIC std::vector<std::map<std::string, std::string>> getConferenceInfos(
|
||||
|
@ -3195,15 +3195,6 @@ Manager::getConferenceList() const
|
||||
return map_utils::extractKeys(pimpl_->conferenceMap_);
|
||||
}
|
||||
|
||||
std::vector<std::string>
|
||||
Manager::getDisplayNames(const std::string& confID) const
|
||||
{
|
||||
if (auto conf = getConferenceFromID(confID))
|
||||
return conf->getDisplayNames();
|
||||
JAMI_WARN("Did not find conference %s", confID.c_str());
|
||||
return {};
|
||||
}
|
||||
|
||||
std::vector<std::string>
|
||||
Manager::getParticipantList(const std::string& confID) const
|
||||
{
|
||||
|
@ -552,12 +552,6 @@ public:
|
||||
*/
|
||||
std::vector<std::string> getParticipantList(const std::string& confID) const;
|
||||
|
||||
/**
|
||||
* Get a list of the display names for everyone in a conference
|
||||
* @return std::vector<std::string> A list of display names
|
||||
*/
|
||||
std::vector<std::string> getDisplayNames(const std::string& confID) const;
|
||||
|
||||
std::string getConferenceId(const std::string& callID);
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user