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/callwindow.cpp | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pica-client/callwindow.cpp (limited to 'pica-client/callwindow.cpp') diff --git a/pica-client/callwindow.cpp b/pica-client/callwindow.cpp new file mode 100644 index 0000000..d63f1b7 --- /dev/null +++ b/pica-client/callwindow.cpp @@ -0,0 +1,35 @@ +/* + (c) Copyright 2012 - 2020 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 . +*/ + +#include "callwindow.h" +#include +#include + +CallWindow::CallWindow(QByteArray peer_id) + : m_peer_id(peer_id) +{ + QHBoxLayout *lh = new QHBoxLayout(this); + QVBoxLayout *lv = new QVBoxLayout(this); + + pbCall = new QPushButton(tr("Call"), this); + pbHang = new QPushButton(tr("Hang Up"), this); + + lh->addWidget(pbCall, Qt::AlignRight); + lh->addWidget(pbHang, Qt::AlignLeft); + lh->addLayout(lv); + setLayout(lh); +} -- cgit v1.2.1