From 1a150eb79fc9c041622a63d51e9a1adfd47c8bcd Mon Sep 17 00:00:00 2001 From: Anton Date: Tue, 29 Jun 2021 02:13:06 +0400 Subject: add audiovideocallcontroller and callwindow, menu action to initiate call --- pica-client/audiovideocallcontroller.h | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pica-client/audiovideocallcontroller.h (limited to 'pica-client/audiovideocallcontroller.h') diff --git a/pica-client/audiovideocallcontroller.h b/pica-client/audiovideocallcontroller.h new file mode 100644 index 0000000..9bc9c38 --- /dev/null +++ b/pica-client/audiovideocallcontroller.h @@ -0,0 +1,35 @@ +/* + (c) Copyright 2012 - 2021 Anton Sviridenko + https://picapica.im + + 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, version 3. + + 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 . +*/ +#ifndef AUDIOVIDEOCALLCONTROLLER_H +#define AUDIOVIDEOCALLCONTROLLER_H + +#include +#include "callwindow.h" + +class AudioVideoCallController : public QObject +{ + Q_OBJECT +public: + explicit AudioVideoCallController(QObject *parent = nullptr); +public slots: + void start_call(QByteArray peer_id); +signals: +private: + CallWindow *callwindow; +}; + +#endif // AUDIOVIDEOCALLCONTROLLER_H -- cgit v1.2.1