Skip to content
Snippets Groups Projects
Select Git revision
  • 011943c4b8db106a94406d0d441a32fda68d0256
  • master default protected
  • release/202005
  • release/202001
  • release/201912
  • release/201911
  • release/releaseWindowsTestOne
  • release/releaseTest
  • release/releaseWindowsTest
  • release/windowsReleaseTest
  • 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
  • 1.0.0
  • 0.3.0
  • 0.2.1
  • 0.2.0
  • 0.1.0
26 results

smartinfohub.h

Blame
  • Sébastien Blin's avatar
    Sébastien Blin authored and Amin Bandali committed
    signal from CallManager was not correctly caught and emitted to the
    client, so the SmartInfos weren't displayed.
    
    Change-Id: I365a401fc754a5895ff62531547b0ab8fb6cf087
    8a3ad543
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    smartinfohub.h 2.29 KiB
    /****************************************************************************
     *    Copyright (C) 2016-2021 Savoir-faire Linux Inc.                               *
     *   Author: Olivier Grégoire <olivier.gregoire@savoirfairelinux.com>       *
     *                                                                          *
     *   This library is free software; you can redistribute it and/or          *
     *   modify it under the terms of the GNU Lesser General Public             *
     *   License as published by the Free Software Foundation; either           *
     *   version 2.1 of the License, or (at your option) any later version.     *
     *                                                                          *
     *   This library 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      *
     *   Lesser 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/>.  *
     ***************************************************************************/
    
    #pragma once
    
    #include <QObject>
    #include "typedefs.h"
    
    class SmartInfoHubPrivate;
    
    class SmartInfoHub final : public QObject
    {
        Q_OBJECT
    public:
        // Singleton
        static SmartInfoHub& instance();
    
        void start();
        void stop();
    
        void setRefreshTime(uint32_t timeMS);
    
        // Getter
        float localFps() const;
        float remoteFps() const;
        int remoteWidth() const;
        int remoteHeight() const;
        int localWidth() const;
        int localHeight() const;
        QString callID() const;
        QString localVideoCodec() const;
        QString localAudioCodec() const;
        QString remoteVideoCodec() const;
        QString remoteAudioCodec() const;
        bool isConference() const;
    
    Q_SIGNALS:
        /// Emitted when informations have changed
        void changed();
    
    private Q_SLOTS:
        void slotSmartInfo(const MapStringString& info);
    
    private:
        // use to initialise the connection between the Qsignal and the lambda function
        SmartInfoHub();
        virtual ~SmartInfoHub();
    
        SmartInfoHubPrivate* d_ptr;
    };