Stepan Salenikovich | 6977184 | 2015-02-24 18:11:45 -0500 | [diff] [blame] | 1 | /* |
Guillaume Roguez | 77c579d | 2018-01-30 15:54:02 -0500 | [diff] [blame] | 2 | * Copyright (C) 2015-2018 Savoir-faire Linux Inc. |
Stepan Salenikovich | 6977184 | 2015-02-24 18:11:45 -0500 | [diff] [blame] | 3 | * Author: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com> |
Sébastien Blin | 55bff9d | 2017-10-03 15:15:23 -0400 | [diff] [blame] | 4 | * Author: Nicolas Jäger <nicolas.jager@savoirfairelinux.com> |
| 5 | * Author: Sébastien Blin <sebastien.blin@savoirfairelinux.com> |
Stepan Salenikovich | 6977184 | 2015-02-24 18:11:45 -0500 | [diff] [blame] | 6 | * |
| 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 Salenikovich | 6977184 | 2015-02-24 18:11:45 -0500 | [diff] [blame] | 20 | */ |
| 21 | |
Sébastien Blin | 55bff9d | 2017-10-03 15:15:23 -0400 | [diff] [blame] | 22 | #pragma once |
Stepan Salenikovich | 6977184 | 2015-02-24 18:11:45 -0500 | [diff] [blame] | 23 | |
Sébastien Blin | 55bff9d | 2017-10-03 15:15:23 -0400 | [diff] [blame] | 24 | // Gtk |
Stepan Salenikovich | 6977184 | 2015-02-24 18:11:45 -0500 | [diff] [blame] | 25 | #include <gtk/gtk.h> |
Sébastien Blin | 55bff9d | 2017-10-03 15:15:23 -0400 | [diff] [blame] | 26 | |
| 27 | // client |
Hugo Lefeuvre | 6f2ceb1 | 2018-04-18 15:08:01 -0400 | [diff] [blame] | 28 | #include "api/account.h" |
aviau | 039001d | 2016-09-29 16:39:05 -0400 | [diff] [blame] | 29 | #include "webkitchatcontainer.h" |
Hugo Lefeuvre | 6f2ceb1 | 2018-04-18 15:08:01 -0400 | [diff] [blame] | 30 | #include "accountinfopointer.h" |
Stepan Salenikovich | 5834f83 | 2016-05-20 15:32:29 -0400 | [diff] [blame] | 31 | |
Sébastien Blin | 55bff9d | 2017-10-03 15:15:23 -0400 | [diff] [blame] | 32 | namespace lrc |
| 33 | { |
| 34 | namespace api |
| 35 | { |
Hugo Lefeuvre | a51e9c0 | 2018-09-10 17:04:48 -0400 | [diff] [blame] | 36 | class AVModel; |
Sébastien Blin | 55bff9d | 2017-10-03 15:15:23 -0400 | [diff] [blame] | 37 | namespace conversation |
| 38 | { |
| 39 | struct Info; |
| 40 | } |
| 41 | } |
| 42 | } |
Stepan Salenikovich | 6977184 | 2015-02-24 18:11:45 -0500 | [diff] [blame] | 43 | |
| 44 | G_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 | |
| 52 | typedef struct _IncomingCallView IncomingCallView; |
| 53 | typedef struct _IncomingCallViewClass IncomingCallViewClass; |
| 54 | |
| 55 | |
Sébastien Blin | 55bff9d | 2017-10-03 15:15:23 -0400 | [diff] [blame] | 56 | GType incoming_call_view_get_type (void) G_GNUC_CONST; |
| 57 | GtkWidget *incoming_call_view_new (WebKitChatContainer* view, |
Hugo Lefeuvre | a51e9c0 | 2018-09-10 17:04:48 -0400 | [diff] [blame] | 58 | lrc::api::AVModel& avModel, |
Hugo Lefeuvre | 6f2ceb1 | 2018-04-18 15:08:01 -0400 | [diff] [blame] | 59 | AccountInfoPointer const & accountInfo, |
Sébastien Blin | 55bff9d | 2017-10-03 15:15:23 -0400 | [diff] [blame] | 60 | lrc::api::conversation::Info* conversation); |
Hugo Lefeuvre | a51e9c0 | 2018-09-10 17:04:48 -0400 | [diff] [blame] | 61 | void incoming_call_view_let_a_message(IncomingCallView* view, lrc::api::conversation::Info conv); |
Sébastien Blin | 55bff9d | 2017-10-03 15:15:23 -0400 | [diff] [blame] | 62 | lrc::api::conversation::Info incoming_call_view_get_conversation (IncomingCallView*); |
Stepan Salenikovich | 6977184 | 2015-02-24 18:11:45 -0500 | [diff] [blame] | 63 | |
| 64 | G_END_DECLS |