blob: 1dfc65d132f03b7603e28a2e36b626b2e46c960c [file] [log] [blame]
Stepan Salenikovichd2cad062016-01-08 13:43:49 -05001/*
2 * Copyright (C) 2016 Savoir-faire Linux Inc.
3 * Author: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
aviau039001d2016-09-29 16:39:05 -040020#pragma once
Stepan Salenikovichd2cad062016-01-08 13:43:49 -050021
22#include <gtk/gtk.h>
aviau039001d2016-09-29 16:39:05 -040023#include "webkitchatcontainer.h"
Stepan Salenikovichd2cad062016-01-08 13:43:49 -050024
25class Call;
Stepan Salenikovichc6a3b982016-01-11 18:11:39 -050026class ContactMethod;
27class Person;
Stepan Salenikovichd2cad062016-01-08 13:43:49 -050028
29G_BEGIN_DECLS
30
31#define CHAT_VIEW_TYPE (chat_view_get_type ())
32#define CHAT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CHAT_VIEW_TYPE, ChatView))
33#define CHAT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), CHAT_VIEW_TYPE, ChatViewClass))
34#define IS_CHAT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), CHAT_VIEW_TYPE))
35#define IS_CHAT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), CHAT_VIEW_TYPE))
36
37typedef struct _ChatView ChatView;
38typedef struct _ChatViewClass ChatViewClass;
39
40
Stepan Salenikovich09e0b782016-09-07 16:28:50 -040041GType chat_view_get_type (void) G_GNUC_CONST;
aviau039001d2016-09-29 16:39:05 -040042GtkWidget *chat_view_new_call (WebKitChatContainer* view, Call* call);
43GtkWidget *chat_view_new_cm (WebKitChatContainer* view, ContactMethod* cm);
44GtkWidget *chat_view_new_person (WebKitChatContainer* view, Person* p);
Stepan Salenikovich09e0b782016-09-07 16:28:50 -040045Call *chat_view_get_call (ChatView*);
46ContactMethod *chat_view_get_cm (ChatView*);
47Person *chat_view_get_person (ChatView*);
Stepan Salenikovichdaf3cb32016-10-12 16:39:42 -040048void chat_view_set_header_visible(ChatView*, gboolean);
Stepan Salenikovichd2cad062016-01-08 13:43:49 -050049
50G_END_DECLS