conversationsview.h 2.56 KB
Newer Older
1
/****************************************************************************
2
 *    Copyright (C) 2017-2019 Savoir-faire Linux Inc.                                  *
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
 *   Author: Nicolas Jäger <nicolas.jager@savoirfairelinux.com>             *
 *   Author: Sébastien Blin <sebastien.blin@savoirfairelinux.com>           *
 *                                                                          *
 *   This library is free software; you can redistribute it and/or          *
 *   modify it under the terms of the GNU Lesser General Public             *
 *   License as published by the Free Software Foundation; either           *
 *   version 2.1 of the License, or (at your option) any later version.     *
 *                                                                          *
 *   This library is distributed in the hope that it will be useful,        *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of         *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU      *
 *   Lesser General Public License for more details.                        *
 *                                                                          *
 *   You should have received a copy of the GNU General Public License      *
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.  *
 ***************************************************************************/
#pragma once

#include <gtk/gtk.h>

23 24 25
#include "api/account.h"

#include "accountinfopointer.h"
26 27 28 29 30 31 32 33 34 35 36 37 38

G_BEGIN_DECLS

#define CONVERSATIONS_VIEW_TYPE            (conversations_view_get_type ())
#define CONVERSATIONS_VIEW(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONVERSATIONS_VIEW_TYPE, ConversationsView))
#define CONVERSATIONS_VIEW_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass), CONVERSATIONS_VIEW_TYPE, ConversationsViewClass))
#define IS_CONVERSATIONS_VIEW(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), CONVERSATIONS_VIEW_TYPE))
#define IS_CONVERSATIONS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), CONVERSATIONS_VIEW_TYPE))

typedef struct _ConversationsView      ConversationsView;
typedef struct _ConversationsViewClass ConversationsViewClass;

GType      conversations_view_get_type            (void) G_GNUC_CONST;
39
GtkWidget *conversations_view_new                 (AccountInfoPointer const & accountInfo);
40
void       conversations_view_select_conversation (ConversationsView *self, const std::string& uid);
41
int        conversations_view_get_current_selected(ConversationsView *self);
42
void       conversations_view_set_theme(ConversationsView *self, bool darkTheme);
43 44

G_END_DECLS