Sébastien Blin | e72d43c | 2017-10-03 11:37:33 -0400 | [diff] [blame] | 1 | /**************************************************************************** |
| 2 | * Copyright (C) 2017 Savoir-faire Linux * |
| 3 | * Author: Nicolas Jäger <nicolas.jager@savoirfairelinux.com> * |
| 4 | * Author: Sébastien Blin <sebastien.blin@savoirfairelinux.com> * |
| 5 | * * |
| 6 | * This library is free software; you can redistribute it and/or * |
| 7 | * modify it under the terms of the GNU Lesser General Public * |
| 8 | * License as published by the Free Software Foundation; either * |
| 9 | * version 2.1 of the License, or (at your option) any later version. * |
| 10 | * * |
| 11 | * This library 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 GNU * |
| 14 | * Lesser 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, see <http://www.gnu.org/licenses/>. * |
| 18 | ***************************************************************************/ |
| 19 | #pragma once |
| 20 | |
| 21 | #include <gtk/gtk.h> |
| 22 | |
| 23 | #include "accountcontainer.h" |
| 24 | |
| 25 | G_BEGIN_DECLS |
| 26 | |
| 27 | #define CONVERSATIONS_VIEW_TYPE (conversations_view_get_type ()) |
| 28 | #define CONVERSATIONS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONVERSATIONS_VIEW_TYPE, ConversationsView)) |
| 29 | #define CONVERSATIONS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), CONVERSATIONS_VIEW_TYPE, ConversationsViewClass)) |
| 30 | #define IS_CONVERSATIONS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), CONVERSATIONS_VIEW_TYPE)) |
| 31 | #define IS_CONVERSATIONS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), CONVERSATIONS_VIEW_TYPE)) |
| 32 | |
| 33 | typedef struct _ConversationsView ConversationsView; |
| 34 | typedef struct _ConversationsViewClass ConversationsViewClass; |
| 35 | |
| 36 | GType conversations_view_get_type (void) G_GNUC_CONST; |
| 37 | GtkWidget *conversations_view_new (AccountContainer* accountContainer); |
| 38 | void conversations_view_select_conversation (ConversationsView *self, const std::string& uid); |
| 39 | |
| 40 | G_END_DECLS |