mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
Build fix from API change
This commit is contained in:
parent
48e5f6a8f8
commit
ef74c2cb47
8 changed files with 15 additions and 15 deletions
|
|
@ -185,11 +185,11 @@ void CoreHandlers::onChatRoomStateChanged(
|
|||
|
||||
void CoreHandlers::onConfiguringStatus(
|
||||
const std::shared_ptr<linphone::Core> & core,
|
||||
linphone::Config::ConfiguringState status,
|
||||
linphone::ConfiguringState status,
|
||||
const std::string & message){
|
||||
Q_UNUSED(core)
|
||||
emit setLastRemoteProvisioningState(status);
|
||||
if(status == linphone::Config::ConfiguringState::Failed){
|
||||
if(status == linphone::ConfiguringState::Failed){
|
||||
qWarning() << "Remote provisioning has failed and was removed : "<< QString::fromStdString(message);
|
||||
core->setProvisioningUri("");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ signals:
|
|||
void presenceStatusReceived(std::shared_ptr<linphone::Friend> contact);
|
||||
void registrationStateChanged (const std::shared_ptr<linphone::Account> &account, linphone::RegistrationState state);
|
||||
void ecCalibrationResult(linphone::EcCalibratorStatus status, int delayMs);
|
||||
void setLastRemoteProvisioningState(const linphone::Config::ConfiguringState &state);
|
||||
void setLastRemoteProvisioningState(const linphone::ConfiguringState &state);
|
||||
void conferenceInfoReceived(const std::shared_ptr<const linphone::ConferenceInfo> & conferenceInfo);
|
||||
void foundQRCode(const std::string & result);
|
||||
|
||||
|
|
@ -77,7 +77,7 @@ public slots:
|
|||
void onCallCreated(const std::shared_ptr<linphone::Core> & lc,const std::shared_ptr<linphone::Call> & call);
|
||||
void onChatRoomRead(const std::shared_ptr<linphone::Core> & core, const std::shared_ptr<linphone::ChatRoom> & chatRoom);
|
||||
void onChatRoomStateChanged(const std::shared_ptr<linphone::Core> & core, const std::shared_ptr<linphone::ChatRoom> & chatRoom,linphone::ChatRoom::State state);
|
||||
void onConfiguringStatus(const std::shared_ptr<linphone::Core> & core,linphone::Config::ConfiguringState status,const std::string & message);
|
||||
void onConfiguringStatus(const std::shared_ptr<linphone::Core> & core,linphone::ConfiguringState status,const std::string & message);
|
||||
void onDtmfReceived(const std::shared_ptr<linphone::Core> & lc,const std::shared_ptr<linphone::Call> & call,int dtmf);
|
||||
void onGlobalStateChanged (const std::shared_ptr<linphone::Core> &core,linphone::GlobalState gstate,const std::string &message);
|
||||
void onIsComposingReceived (const std::shared_ptr<linphone::Core> &core,const std::shared_ptr<linphone::ChatRoom> &room);
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ void CoreListener::onChatRoomRead(const std::shared_ptr<linphone::Core> & core,
|
|||
void CoreListener::onChatRoomStateChanged(const std::shared_ptr<linphone::Core> & core, const std::shared_ptr<linphone::ChatRoom> & chatRoom,linphone::ChatRoom::State state){
|
||||
emit chatRoomStateChanged(core, chatRoom,state);
|
||||
}
|
||||
void CoreListener::onConfiguringStatus(const std::shared_ptr<linphone::Core> & core,linphone::Config::ConfiguringState status,const std::string & message){
|
||||
void CoreListener::onConfiguringStatus(const std::shared_ptr<linphone::Core> & core,linphone::ConfiguringState status,const std::string & message){
|
||||
emit configuringStatus(core,status,message);
|
||||
}
|
||||
void CoreListener::onDtmfReceived(const std::shared_ptr<linphone::Core> & lc,const std::shared_ptr<linphone::Call> & call,int dtmf){
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public:
|
|||
virtual void onCallCreated(const std::shared_ptr<linphone::Core> & lc,const std::shared_ptr<linphone::Call> & call) override;
|
||||
virtual void onChatRoomRead(const std::shared_ptr<linphone::Core> & core, const std::shared_ptr<linphone::ChatRoom> & chatRoom) override;
|
||||
virtual void onChatRoomStateChanged(const std::shared_ptr<linphone::Core> & core, const std::shared_ptr<linphone::ChatRoom> & chatRoom,linphone::ChatRoom::State state) override;
|
||||
virtual void onConfiguringStatus(const std::shared_ptr<linphone::Core> & core,linphone::Config::ConfiguringState status,const std::string & message) override;
|
||||
virtual void onConfiguringStatus(const std::shared_ptr<linphone::Core> & core,linphone::ConfiguringState status,const std::string & message) override;
|
||||
virtual void onDtmfReceived(const std::shared_ptr<linphone::Core> & lc,const std::shared_ptr<linphone::Call> & call,int dtmf) override;
|
||||
virtual void onGlobalStateChanged (const std::shared_ptr<linphone::Core> &core,linphone::GlobalState gstate,const std::string &message) override;
|
||||
virtual void onIsComposingReceived (const std::shared_ptr<linphone::Core> &core,const std::shared_ptr<linphone::ChatRoom> &room) override;
|
||||
|
|
@ -72,7 +72,7 @@ signals:
|
|||
void callCreated(const std::shared_ptr<linphone::Core> & lc,const std::shared_ptr<linphone::Call> & call);
|
||||
void chatRoomRead(const std::shared_ptr<linphone::Core> & core, const std::shared_ptr<linphone::ChatRoom> & chatRoom);
|
||||
void chatRoomStateChanged(const std::shared_ptr<linphone::Core> & core, const std::shared_ptr<linphone::ChatRoom> & chatRoom,linphone::ChatRoom::State state);
|
||||
void configuringStatus(const std::shared_ptr<linphone::Core> & core,linphone::Config::ConfiguringState status,const std::string & message);
|
||||
void configuringStatus(const std::shared_ptr<linphone::Core> & core,linphone::ConfiguringState status,const std::string & message);
|
||||
void dtmfReceived(const std::shared_ptr<linphone::Core> & lc,const std::shared_ptr<linphone::Call> & call,int dtmf);
|
||||
void globalStateChanged (const std::shared_ptr<linphone::Core> &core,linphone::GlobalState gstate,const std::string &message);
|
||||
void isComposingReceived (const std::shared_ptr<linphone::Core> &core,const std::shared_ptr<linphone::ChatRoom> &room);
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ CoreManager::CoreManager (QObject *parent, const QString &configPath) :
|
|||
QObject(parent) {
|
||||
mHandlers = QSharedPointer<CoreHandlers>::create(this);
|
||||
mCore = nullptr;
|
||||
mLastRemoteProvisioningState = linphone::Config::ConfiguringState::Skipped;
|
||||
mLastRemoteProvisioningState = linphone::ConfiguringState::Skipped;
|
||||
CoreHandlers *coreHandlers = mHandlers.get();
|
||||
QObject::connect(coreHandlers, &CoreHandlers::coreStarting, this, &CoreManager::startIterate, Qt::QueuedConnection);
|
||||
QObject::connect(coreHandlers, &CoreHandlers::setLastRemoteProvisioningState, this, &CoreManager::setLastRemoteProvisioningState);
|
||||
|
|
@ -462,14 +462,14 @@ QString CoreManager::getDownloadUrl () {
|
|||
return Constants::DownloadUrl;
|
||||
}
|
||||
|
||||
void CoreManager::setLastRemoteProvisioningState(const linphone::Config::ConfiguringState& state){
|
||||
void CoreManager::setLastRemoteProvisioningState(const linphone::ConfiguringState& state){
|
||||
mLastRemoteProvisioningState = state;
|
||||
if (state == linphone::Config::ConfiguringState::Failed)
|
||||
if (state == linphone::ConfiguringState::Failed)
|
||||
emit remoteProvisioningFailed();
|
||||
}
|
||||
|
||||
bool CoreManager::isLastRemoteProvisioningGood(){
|
||||
return mLastRemoteProvisioningState != linphone::Config::ConfiguringState::Failed;
|
||||
return mLastRemoteProvisioningState != linphone::ConfiguringState::Failed;
|
||||
}
|
||||
|
||||
QString CoreManager::getUserAgent()const {
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ public slots:
|
|||
void initCoreManager();
|
||||
void startIterate();
|
||||
void stopIterate();
|
||||
void setLastRemoteProvisioningState(const linphone::Config::ConfiguringState& state);
|
||||
void setLastRemoteProvisioningState(const linphone::ConfiguringState& state);
|
||||
void createLinphoneCore (const QString &configPath);// In order to delay creation
|
||||
void handleChatRoomCreated(const QSharedPointer<ChatRoomModel> &chatRoomModel);
|
||||
|
||||
|
|
@ -219,7 +219,7 @@ private:
|
|||
QSharedPointer<CoreHandlers> mHandlers;
|
||||
|
||||
bool mStarted = false;
|
||||
linphone::Config::ConfiguringState mLastRemoteProvisioningState;
|
||||
linphone::ConfiguringState mLastRemoteProvisioningState;
|
||||
|
||||
CallsListModel *mCallsListModel = nullptr;
|
||||
ContactsListModel *mContactsListModel = nullptr;
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ void LinphoneEnums::registerMetaTypes(){
|
|||
qRegisterMetaType<std::shared_ptr<linphone::Call>>();
|
||||
qRegisterMetaType<linphone::Call::State>();
|
||||
qRegisterMetaType<std::shared_ptr<linphone::Core>>();
|
||||
qRegisterMetaType<linphone::Config::ConfiguringState>();
|
||||
qRegisterMetaType<linphone::ConfiguringState>();
|
||||
qRegisterMetaType<std::string>();
|
||||
qRegisterMetaType<linphone::GlobalState>();
|
||||
qRegisterMetaType<std::shared_ptr<linphone::ChatRoom>>();
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@ Q_DECLARE_METATYPE(LinphoneEnums::TransportType)
|
|||
Q_DECLARE_METATYPE(std::shared_ptr<linphone::Call>)
|
||||
Q_DECLARE_METATYPE(linphone::Call::State)
|
||||
Q_DECLARE_METATYPE(std::shared_ptr<linphone::Core>)
|
||||
Q_DECLARE_METATYPE(linphone::Config::ConfiguringState)
|
||||
Q_DECLARE_METATYPE(linphone::ConfiguringState)
|
||||
Q_DECLARE_METATYPE(std::string)
|
||||
Q_DECLARE_METATYPE(linphone::GlobalState)
|
||||
Q_DECLARE_METATYPE(std::shared_ptr<linphone::ChatRoom>)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue