Select Git revision
-
Remove the GNOME dependencies and have the --qt argument always require a value when used (exclusively to specify a Qt installation prefix). * build.py (ZYPPER_CLIENT_GNOME_DEPENDENCIES): Delete variable. (ZYPPER_CLIENT_QT_DEPENDENCIES): Rename to... (ZYPPER_CLIENT_DEPENDENCIES): ... this. (DNF_CLIENT_GNOME_DEPENDENCIES): Delete variable. (DNF_CLIENT_QT_DEPENDENCIES): Rename to... (DNF_CLIENT_DEPENDENCIES): ... this. (APT_DEPENDENCIES): Delete 'gnome-icon-theme-symbolic'. (APT_CLIENT_GNOME_DEPENDENCIES): Delete variable. (APT_CLIENT_QT_DEPENDENCIES): Rename to... (APT_CLIENT_DEPENDENCIES): ... this. (PACMAN_CLIENT_GNOME_DEPENDENCIES): Delete variable. (PACMAN_CLIENT_QT_DEPENDENCIES): Rename to... (PACMAN_CLIENT_DEPENDENCIES): ... this. (run_dependencies): Remove usage of args.gnome. Streamline use of --qt; now it's only used to specify a custom Qt prefix. (run_uninstall): Get rid of CLIENT_SUFFIX, adjusting users accordingly. (run_install): Delete '-c' option of install script. (run_run): Delete hacks used to build the now-deprecated client-macos on macOS. Get rid of client_suffix. Adjust client path to run. (run_stop): Get rid of suffix. (execute_script): Test falsy values as intended. (parse_args): Delete '--gnome' argument. Adjust doc of '--qt'. (main): Get rid of 'parsed_args.gnome'. * guix/manifest.scm: Streamline and update dependencies. * scripts/install.sh: Remove '-c' option. Remove conditional branches handling GNOME client. * guix/channels.scm: New file. Change-Id: I26898c3331467bfc4ab63d3e9df1d50560c287c2
Remove the GNOME dependencies and have the --qt argument always require a value when used (exclusively to specify a Qt installation prefix). * build.py (ZYPPER_CLIENT_GNOME_DEPENDENCIES): Delete variable. (ZYPPER_CLIENT_QT_DEPENDENCIES): Rename to... (ZYPPER_CLIENT_DEPENDENCIES): ... this. (DNF_CLIENT_GNOME_DEPENDENCIES): Delete variable. (DNF_CLIENT_QT_DEPENDENCIES): Rename to... (DNF_CLIENT_DEPENDENCIES): ... this. (APT_DEPENDENCIES): Delete 'gnome-icon-theme-symbolic'. (APT_CLIENT_GNOME_DEPENDENCIES): Delete variable. (APT_CLIENT_QT_DEPENDENCIES): Rename to... (APT_CLIENT_DEPENDENCIES): ... this. (PACMAN_CLIENT_GNOME_DEPENDENCIES): Delete variable. (PACMAN_CLIENT_QT_DEPENDENCIES): Rename to... (PACMAN_CLIENT_DEPENDENCIES): ... this. (run_dependencies): Remove usage of args.gnome. Streamline use of --qt; now it's only used to specify a custom Qt prefix. (run_uninstall): Get rid of CLIENT_SUFFIX, adjusting users accordingly. (run_install): Delete '-c' option of install script. (run_run): Delete hacks used to build the now-deprecated client-macos on macOS. Get rid of client_suffix. Adjust client path to run. (run_stop): Get rid of suffix. (execute_script): Test falsy values as intended. (parse_args): Delete '--gnome' argument. Adjust doc of '--qt'. (main): Get rid of 'parsed_args.gnome'. * guix/manifest.scm: Streamline and update dependencies. * scripts/install.sh: Remove '-c' option. Remove conditional branches handling GNOME client. * guix/channels.scm: New file. Change-Id: I26898c3331467bfc4ab63d3e9df1d50560c287c2
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
account.cpp 18.01 KiB
/*
* Copyright (C) 2004-2015 Savoir-Faire Linux Inc.
*
* Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
* Author: Alexandre Bourget <alexandre.bourget@savoirfairelinux.com>
* Author : Guillaume Roguez <guillaume.roguez@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, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Additional permission under GNU GPL version 3 section 7:
*
* If you modify this program, or any covered work, by linking or
* combining it with the OpenSSL project's OpenSSL library (or a
* modified version of that library), containing parts covered by the
* terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
* grants you additional permission to convey the resulting work.
* Corresponding Source for a non-source form of such a combination
* shall include the source code for the parts of OpenSSL used as well
* as that of the covered work.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "account.h"
#include <algorithm>
#include <iterator>
#include <mutex>
#ifdef RING_VIDEO
#include "libav_utils.h"
#endif
#include "logger.h"
#include "manager.h"
#include "client/signal.h"
#include "account_schema.h"
#include "string_utils.h"
#include "config/yamlparser.h"
#include "system_codec_container.h"
#include <yaml-cpp/yaml.h>
#include "upnp/upnp_control.h"
#include "ip_utils.h"
#include "intrin.h"
#include "dring/account_const.h"
namespace ring {
const char * const Account::ALL_CODECS_KEY = "allCodecs";
const char * const Account::VIDEO_CODEC_ENABLED = "enabled";
const char * const Account::VIDEO_CODEC_NAME = "name";
const char * const Account::VIDEO_CODEC_PARAMETERS = "parameters";
const char * const Account::VIDEO_CODEC_BITRATE = "bitrate";
const char * const Account::RINGTONE_PATH_KEY = "ringtonePath";