Stepan Salenikovich | d2cad06 | 2016-01-08 13:43:49 -0500 | [diff] [blame] | 1 | /* |
Guillaume Roguez | 77c579d | 2018-01-30 15:54:02 -0500 | [diff] [blame] | 2 | * Copyright (C) 2016-2018 Savoir-faire Linux Inc. |
Stepan Salenikovich | d2cad06 | 2016-01-08 13:43:49 -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 | d2cad06 | 2016-01-08 13:43:49 -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. |
| 20 | */ |
| 21 | |
aviau | 039001d | 2016-09-29 16:39:05 -0400 | [diff] [blame] | 22 | #pragma once |
Stepan Salenikovich | d2cad06 | 2016-01-08 13:43:49 -0500 | [diff] [blame] | 23 | |
Sébastien Blin | 55bff9d | 2017-10-03 15:15:23 -0400 | [diff] [blame] | 24 | // Gtk |
Stepan Salenikovich | d2cad06 | 2016-01-08 13:43:49 -0500 | [diff] [blame] | 25 | #include <gtk/gtk.h> |
Sébastien Blin | 55bff9d | 2017-10-03 15:15:23 -0400 | [diff] [blame] | 26 | |
| 27 | // Client related |
| 28 | #include "accountcontainer.h" |
aviau | 039001d | 2016-09-29 16:39:05 -0400 | [diff] [blame] | 29 | #include "webkitchatcontainer.h" |
Stepan Salenikovich | d2cad06 | 2016-01-08 13:43:49 -0500 | [diff] [blame] | 30 | |
Sébastien Blin | 55bff9d | 2017-10-03 15:15:23 -0400 | [diff] [blame] | 31 | namespace lrc |
| 32 | { |
| 33 | namespace api |
| 34 | { |
| 35 | namespace conversation |
| 36 | { |
| 37 | struct Info; |
| 38 | } |
| 39 | } |
| 40 | } |
Stepan Salenikovich | d2cad06 | 2016-01-08 13:43:49 -0500 | [diff] [blame] | 41 | |
| 42 | G_BEGIN_DECLS |
| 43 | |
| 44 | #define CHAT_VIEW_TYPE (chat_view_get_type ()) |
| 45 | #define CHAT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CHAT_VIEW_TYPE, ChatView)) |
| 46 | #define CHAT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), CHAT_VIEW_TYPE, ChatViewClass)) |
| 47 | #define IS_CHAT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), CHAT_VIEW_TYPE)) |
| 48 | #define IS_CHAT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), CHAT_VIEW_TYPE)) |
| 49 | |
| 50 | typedef struct _ChatView ChatView; |
| 51 | typedef struct _ChatViewClass ChatViewClass; |
| 52 | |
Stepan Salenikovich | 09e0b78 | 2016-09-07 16:28:50 -0400 | [diff] [blame] | 53 | GType chat_view_get_type (void) G_GNUC_CONST; |
Sébastien Blin | 55bff9d | 2017-10-03 15:15:23 -0400 | [diff] [blame] | 54 | GtkWidget *chat_view_new (WebKitChatContainer* view, |
| 55 | AccountContainer* accountContainer, |
| 56 | lrc::api::conversation::Info* conversation); |
| 57 | lrc::api::conversation::Info chat_view_get_conversation(ChatView*); |
| 58 | bool chat_view_get_temporary(ChatView*); |
Sébastien Blin | 8ab4a81 | 2018-02-27 13:24:17 -0500 | [diff] [blame^] | 59 | void chat_view_update_temporary(ChatView*, bool, bool); |
Sébastien Blin | 55bff9d | 2017-10-03 15:15:23 -0400 | [diff] [blame] | 60 | void chat_view_set_header_visible(ChatView*, gboolean); |
Stepan Salenikovich | d2cad06 | 2016-01-08 13:43:49 -0500 | [diff] [blame] | 61 | |
| 62 | G_END_DECLS |