Blame src/suggestions/dzl-suggestion.h

Packit Service c6b782
/* dzl-suggestion.h
Packit Service c6b782
 *
Packit Service c6b782
 * Copyright (C) 2017 Christian Hergert <chergert@redhat.com>
Packit Service c6b782
 *
Packit Service c6b782
 * This file is free software; you can redistribute it and/or modify it under
Packit Service c6b782
 * the terms of the GNU Lesser General Public License as published by the Free
Packit Service c6b782
 * Software Foundation; either version 2.1 of the License, or (at your option)
Packit Service c6b782
 * any later version.
Packit Service c6b782
 *
Packit Service c6b782
 * This file is distributed in the hope that it will be useful, but WITHOUT
Packit Service c6b782
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
Packit Service c6b782
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
Packit Service c6b782
 * License for more details.
Packit Service c6b782
 *
Packit Service c6b782
 * You should have received a copy of the GNU General Public License along
Packit Service c6b782
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit Service c6b782
 */
Packit Service c6b782
Packit Service c6b782
Packit Service c6b782
#ifndef DZL_SUGGESTION_H
Packit Service c6b782
#define DZL_SUGGESTION_H
Packit Service c6b782
Packit Service c6b782
#include <glib-object.h>
Packit Service c6b782
Packit Service c6b782
#include "dzl-version-macros.h"
Packit Service c6b782
Packit Service c6b782
G_BEGIN_DECLS
Packit Service c6b782
Packit Service c6b782
#define DZL_TYPE_SUGGESTION (dzl_suggestion_get_type())
Packit Service c6b782
Packit Service c6b782
DZL_AVAILABLE_IN_ALL
Packit Service c6b782
G_DECLARE_DERIVABLE_TYPE (DzlSuggestion, dzl_suggestion, DZL, SUGGESTION, GObject)
Packit Service c6b782
Packit Service c6b782
struct _DzlSuggestionClass
Packit Service c6b782
{
Packit Service c6b782
  GObjectClass parent_class;
Packit Service c6b782
Packit Service c6b782
  gchar *(*suggest_suffix)     (DzlSuggestion *self,
Packit Service c6b782
                                const gchar   *typed_text);
Packit Service c6b782
  gchar *(*replace_typed_text) (DzlSuggestion *self,
Packit Service c6b782
                                const gchar   *typed_text);
Packit Service c6b782
Packit Service c6b782
  gpointer _reserved1;
Packit Service c6b782
  gpointer _reserved2;
Packit Service c6b782
  gpointer _reserved3;
Packit Service c6b782
  gpointer _reserved4;
Packit Service c6b782
};
Packit Service c6b782
Packit Service c6b782
DZL_AVAILABLE_IN_ALL
Packit Service c6b782
DzlSuggestion *dzl_suggestion_new                (void);
Packit Service c6b782
DZL_AVAILABLE_IN_ALL
Packit Service c6b782
const gchar   *dzl_suggestion_get_id             (DzlSuggestion *self);
Packit Service c6b782
DZL_AVAILABLE_IN_ALL
Packit Service c6b782
void           dzl_suggestion_set_id             (DzlSuggestion *self,
Packit Service c6b782
                                                  const gchar   *id);
Packit Service c6b782
DZL_AVAILABLE_IN_ALL
Packit Service c6b782
const gchar   *dzl_suggestion_get_icon_name      (DzlSuggestion *self);
Packit Service c6b782
DZL_AVAILABLE_IN_ALL
Packit Service c6b782
void           dzl_suggestion_set_icon_name      (DzlSuggestion *self,
Packit Service c6b782
                                                  const gchar   *icon_name);
Packit Service c6b782
DZL_AVAILABLE_IN_ALL
Packit Service c6b782
const gchar   *dzl_suggestion_get_title          (DzlSuggestion *self);
Packit Service c6b782
DZL_AVAILABLE_IN_ALL
Packit Service c6b782
void           dzl_suggestion_set_title          (DzlSuggestion *self,
Packit Service c6b782
                                                  const gchar   *title);
Packit Service c6b782
DZL_AVAILABLE_IN_ALL
Packit Service c6b782
const gchar   *dzl_suggestion_get_subtitle       (DzlSuggestion *self);
Packit Service c6b782
DZL_AVAILABLE_IN_ALL
Packit Service c6b782
void           dzl_suggestion_set_subtitle       (DzlSuggestion *self,
Packit Service c6b782
                                                  const gchar   *subtitle);
Packit Service c6b782
DZL_AVAILABLE_IN_ALL
Packit Service c6b782
gchar         *dzl_suggestion_suggest_suffix     (DzlSuggestion *self,
Packit Service c6b782
                                                  const gchar   *typed_text);
Packit Service c6b782
DZL_AVAILABLE_IN_ALL
Packit Service c6b782
gchar         *dzl_suggestion_replace_typed_text (DzlSuggestion *self,
Packit Service c6b782
                                                  const gchar   *typed_text);
Packit Service c6b782
Packit Service c6b782
G_END_DECLS
Packit Service c6b782
Packit Service c6b782
#endif /* DZL_SUGGESTION_H */