talkatu/talkatu

Fix a few things found in review

2020-06-29, Gary Kramlich
a831357ccddd
Fix a few things found in review
/*
* talkatu
* Copyright (C) 2017-2020 Gary Kramlich <grim@reaperworld.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 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 Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#if !defined(TALKATU_GLOBAL_HEADER_INSIDE) && !defined(TALKATU_COMPILATION)
#error "only <talkatu.h> may be included directly"
#endif
#ifndef TALKATU_ATTACHMENT_H
#define TALKATU_ATTACHMENT_H
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gtk/gtk.h>
G_BEGIN_DECLS
#define TALKATU_TYPE_ATTACHMENT (talkatu_attachment_get_type())
G_DECLARE_FINAL_TYPE(TalkatuAttachment, talkatu_attachment, TALKATU, ATTACHMENT, GObject)
typedef void (*TalkatuAttachmentForeachFunc)(TalkatuAttachment *attachment, gpointer data);
TalkatuAttachment *talkatu_attachment_new(guint64 id, const gchar *content_type);
guint64 talkatu_attachment_get_id(TalkatuAttachment *attachment);
guint64 *talkatu_attachment_get_hash_key(TalkatuAttachment *attachment);
void talkatu_attachment_set_id(TalkatuAttachment *attachment, guint64 id);
const gchar *talkatu_attachment_get_content_type(TalkatuAttachment *attachment);
const gchar *talkatu_attachment_get_local_uri(TalkatuAttachment *attachment);
void talkatu_attachment_set_local_uri(TalkatuAttachment *attachment, const gchar *local_uri);
const gchar *talkatu_attachment_get_remote_uri(TalkatuAttachment *attachment);
void talkatu_attachment_set_remote_uri(TalkatuAttachment *attachment, const gchar *remote_uri);
gsize talkatu_attachment_get_size(TalkatuAttachment *attachment);
void talkatu_attachment_set_size(TalkatuAttachment *attachment, gsize size);
gchar *talkatu_attachment_get_filename(TalkatuAttachment *attachment);
GIcon *talkatu_attachment_get_preview(TalkatuAttachment *attachment);
G_END_DECLS
#endif /* TALKATU_ATTACHMENT_H */