mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-03 22:56:49 +00:00
Fix build
This commit is contained in:
parent
497c411710
commit
464a750d16
2 changed files with 5 additions and 3 deletions
|
|
@ -44,7 +44,8 @@ ChatCallModel::~ChatCallModel(){
|
|||
|
||||
std::shared_ptr<ChatCallModel> ChatCallModel::create(std::shared_ptr<linphone::CallLog> callLog, const bool& isStart, QObject * parent){
|
||||
auto model = std::make_shared<ChatCallModel>(callLog, isStart, parent);
|
||||
if(model && model->update()){
|
||||
if(model ){
|
||||
model->update();
|
||||
model->mSelf = model;
|
||||
return model;
|
||||
}else
|
||||
|
|
@ -76,10 +77,11 @@ void ChatCallModel::setIsOutgoing(const bool& data){
|
|||
}
|
||||
|
||||
|
||||
bool ChatCallModel::update(){
|
||||
void ChatCallModel::update(){
|
||||
setIsOutgoing(mCallLog->getDir() == linphone::Call::Dir::Outgoing);
|
||||
setStatus(LinphoneEnums::fromLinphone(mCallLog->getStatus()));
|
||||
}
|
||||
|
||||
void ChatCallModel::deleteEvent(){
|
||||
CoreManager::getInstance()->getCore()->removeCallLog(mCallLog);
|
||||
}
|
||||
|
|
@ -48,7 +48,7 @@ public:
|
|||
void setStatus(const LinphoneEnums::CallStatus& status);
|
||||
void setIsOutgoing(const bool& isOutgoing);
|
||||
|
||||
bool update();
|
||||
void update();
|
||||
|
||||
virtual void deleteEvent() override;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue