aviau | 039001d | 2016-09-29 16:39:05 -0400 | [diff] [blame] | 1 | /* |
Guillaume Roguez | 2a6150d | 2017-07-19 18:24:47 -0400 | [diff] [blame] | 2 | * Copyright (C) 2016-2017 Savoir-faire Linux Inc. |
aviau | 039001d | 2016-09-29 16:39:05 -0400 | [diff] [blame] | 3 | * Author: Alexandre Viau <alexandre.viau@savoirfairelinux.com> |
Sébastien Blin | 55bff9d | 2017-10-03 15:15:23 -0400 | [diff] [blame] | 4 | * Author: Sébastien Blin <sebastien.blin@savoirfairelinux.com> |
aviau | 039001d | 2016-09-29 16:39:05 -0400 | [diff] [blame] | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 3 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
| 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 19 | */ |
| 20 | |
| 21 | #pragma once |
| 22 | |
Sébastien Blin | 55bff9d | 2017-10-03 15:15:23 -0400 | [diff] [blame] | 23 | // Gtk |
aviau | 039001d | 2016-09-29 16:39:05 -0400 | [diff] [blame] | 24 | #include <gtk/gtk.h> |
| 25 | |
Sébastien Blin | 55bff9d | 2017-10-03 15:15:23 -0400 | [diff] [blame] | 26 | // LRC |
| 27 | #include <api/interaction.h> |
aviau | 039001d | 2016-09-29 16:39:05 -0400 | [diff] [blame] | 28 | |
| 29 | G_BEGIN_DECLS |
| 30 | |
| 31 | #define WEBKIT_CHAT_CONTAINER_TYPE (webkit_chat_container_get_type ()) |
| 32 | #define WEBKIT_CHAT_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), WEBKIT_CHAT_CONTAINER_TYPE, WebKitChatContainer)) |
| 33 | #define WEBKIT_CHAT_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_CHAT_CONTAINER_TYPE, WebKitChatContainerClass)) |
| 34 | #define IS_WEBKIT_CHAT_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_CHAT_CONTAINER_TYPE)) |
| 35 | #define IS_WEBKIT_CHAT_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_CHAT_CONTAINER_TYPE)) |
| 36 | |
| 37 | typedef struct _WebKitChatContainer WebKitChatContainer; |
| 38 | typedef struct _WebKitChatContainerClass WebKitChatContainerClass; |
| 39 | |
Sébastien Blin | 55bff9d | 2017-10-03 15:15:23 -0400 | [diff] [blame] | 40 | GType webkit_chat_container_get_type (void) G_GNUC_CONST; |
| 41 | GtkWidget* webkit_chat_container_new (void); |
| 42 | void webkit_chat_container_clear (WebKitChatContainer *view); |
| 43 | void webkit_chat_container_clear_sender_images (WebKitChatContainer *view); |
| 44 | void webkit_chat_container_print_new_interaction(WebKitChatContainer *view, uint64_t msgId, const lrc::api::interaction::Info& interaction); |
| 45 | void webkit_chat_container_update_interaction (WebKitChatContainer *view, uint64_t msgId, const lrc::api::interaction::Info& interaction); |
| 46 | void webkit_chat_container_set_sender_image (WebKitChatContainer *view, const std::string& sender, const std::string& senderImage); |
| 47 | gboolean webkit_chat_container_is_ready (WebKitChatContainer *view); |
| 48 | void webkit_chat_container_set_display_links (WebKitChatContainer *view, bool display); |
| 49 | void webkit_chat_disable_send_interaction (WebKitChatContainer *view, bool isDisabled); |
| 50 | void webkit_chat_container_set_temporary (WebKitChatContainer *view, bool temporary); |
| 51 | void webkit_chat_container_set_invitation (WebKitChatContainer *view, bool show, const std::string& contactUri); |
aviau | 039001d | 2016-09-29 16:39:05 -0400 | [diff] [blame] | 52 | |
| 53 | G_END_DECLS |