Skip to content
Snippets Groups Projects
Select Git revision
  • ba5c45ef9bdde02ce72e1041d0a189b1e4ed9b23
  • master default protected
  • release/202005
  • release/202001
  • release/201912
  • release/201911
  • release/releaseWindowsTestOne
  • release/windowsReleaseTest
  • release/releaseTest
  • release/releaseWindowsTest
  • release/201910
  • release/qt/201910
  • release/windows-test/201910
  • release/201908
  • release/201906
  • release/201905
  • release/201904
  • release/201903
  • release/201902
  • release/201901
  • release/201812
  • 4.0.0
  • 2.2.0
  • 2.1.0
  • 2.0.1
  • 2.0.0
  • 1.4.1
  • 1.4.0
  • 1.3.0
  • 1.2.0
  • 1.1.0
31 results

accountcreator.h

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    RingD.cpp 43.48 KiB
    /**************************************************************************
    * Copyright (C) 2016 by Savoir-faire Linux                                *
    * Author: Jäger Nicolas <nicolas.jager@savoirfairelinux.com>              *
    * Author: Traczyk Andreas <traczyk.andreas@savoirfairelinux.com>          *
    *                                                                         *
    * 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 3 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, see <http://www.gnu.org/licenses/>.   *
    **************************************************************************/
    #include "pch.h"
    
    /* daemon */
    #include <dring.h>
    #include "callmanager_interface.h"
    #include "configurationmanager_interface.h"
    #include "presencemanager_interface.h"
    #include "videomanager_interface.h"
    #include "fileutils.h"
    #include "account_schema.h"
    #include "account_const.h"
    #include "string_utils.h" // used to get some const expr like TRUE_STR
    #include "gnutls\gnutls.h"
    #include "media_const.h" // used to get some const expr like MEDIA_TYPE_VIDEO
    
    #include "SmartPanel.xaml.h"
    
    using namespace Windows::ApplicationModel::Core;
    using namespace Windows::Storage;
    using namespace Windows::UI::Core;
    using namespace Windows::Media;
    using namespace Windows::Media::MediaProperties;
    using namespace Windows::Media::Capture;
    using namespace Windows::System::Threading;
    
    using namespace RingClientUWP;
    using namespace RingClientUWP::Utils;
    using namespace RingClientUWP::ViewModel;
    
    using namespace Windows::System;
    
    void
    RingClientUWP::RingD::reloadAccountList()
    {
        //RingClientUWP::ViewModel::AccountsViewModel::instance->clearAccountList();
    
        std::vector<std::string> accountList = DRing::getAccountList();
    
        /* if for any reason there is no account at all, screen the wizard */
        if (accountList.size() == 0) {
            summonWizard();
            return;
        }
    
        std::vector<std::string>::reverse_iterator rit = accountList.rbegin();
    
        for (; rit != accountList.rend(); ++rit) {
            std::map<std::string,std::string> accountDetails = DRing::getAccountDetails(*rit);
    
            auto type = accountDetails.find(DRing::Account::ConfProperties::TYPE)->second;
            if (type == "RING") {
                auto  ringID = accountDetails.find(DRing::Account::ConfProperties::USERNAME)->second;