blob: ee179761ba600239aa3da94400dd5737cfc11cef [file] [log] [blame]
Stepan Salenikovich69771842015-02-24 18:11:45 -05001/*
Guillaume Roguez77c579d2018-01-30 15:54:02 -05002 * Copyright (C) 2015-2018 Savoir-faire Linux Inc.
Stepan Salenikovich69771842015-02-24 18:11:45 -05003 * Author: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
Sébastien Blin55bff9d2017-10-03 15:15:23 -04004 * Author: Nicolas Jäger <nicolas.jager@savoirfairelinux.com>
5 * Author: Sébastien Blin <sebastien.blin@savoirfairelinux.com>
Stepan Salenikovich69771842015-02-24 18:11:45 -05006 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Stepan Salenikovich69771842015-02-24 18:11:45 -050020 */
21
Sébastien Blin55bff9d2017-10-03 15:15:23 -040022#pragma once
Stepan Salenikovich69771842015-02-24 18:11:45 -050023
Sébastien Blin55bff9d2017-10-03 15:15:23 -040024// Gtk
Stepan Salenikovich69771842015-02-24 18:11:45 -050025#include <gtk/gtk.h>
Sébastien Blin55bff9d2017-10-03 15:15:23 -040026
27// client
Hugo Lefeuvre6f2ceb12018-04-18 15:08:01 -040028#include "api/account.h"
aviau039001d2016-09-29 16:39:05 -040029#include "webkitchatcontainer.h"
Hugo Lefeuvre6f2ceb12018-04-18 15:08:01 -040030#include "accountinfopointer.h"
Stepan Salenikovich5834f832016-05-20 15:32:29 -040031
Sébastien Blin55bff9d2017-10-03 15:15:23 -040032namespace lrc
33{
34namespace api
35{
Hugo Lefeuvrea51e9c02018-09-10 17:04:48 -040036 class AVModel;
Sébastien Blin55bff9d2017-10-03 15:15:23 -040037namespace conversation
38{
39 struct Info;
40}
41}
42}
Stepan Salenikovich69771842015-02-24 18:11:45 -050043
44G_BEGIN_DECLS
45
46#define INCOMING_CALL_VIEW_TYPE (incoming_call_view_get_type ())
47#define INCOMING_CALL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), INCOMING_CALL_VIEW_TYPE, IncomingCallView))
48#define INCOMING_CALL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), INCOMING_CALL_VIEW_TYPE, IncomingCallViewClass))
49#define IS_INCOMING_CALL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), INCOMING_CALL_VIEW_TYPE))
50#define IS_INCOMING_CALL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), INCOMING_CALL_VIEW_TYPE))
51
52typedef struct _IncomingCallView IncomingCallView;
53typedef struct _IncomingCallViewClass IncomingCallViewClass;
54
55
Sébastien Blin55bff9d2017-10-03 15:15:23 -040056GType incoming_call_view_get_type (void) G_GNUC_CONST;
57GtkWidget *incoming_call_view_new (WebKitChatContainer* view,
Hugo Lefeuvrea51e9c02018-09-10 17:04:48 -040058 lrc::api::AVModel& avModel,
Hugo Lefeuvre6f2ceb12018-04-18 15:08:01 -040059 AccountInfoPointer const & accountInfo,
Sébastien Blin55bff9d2017-10-03 15:15:23 -040060 lrc::api::conversation::Info* conversation);
Hugo Lefeuvrea51e9c02018-09-10 17:04:48 -040061void incoming_call_view_let_a_message(IncomingCallView* view, lrc::api::conversation::Info conv);
Sébastien Blin55bff9d2017-10-03 15:15:23 -040062lrc::api::conversation::Info incoming_call_view_get_conversation (IncomingCallView*);
Stepan Salenikovich69771842015-02-24 18:11:45 -050063
64G_END_DECLS