1 /* dspy-name.h
2  *
3  * Copyright 2019 Christian Hergert <chergert@redhat.com>
4  *
5  * This file is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU Lesser General Public License as
7  * published by the Free Software Foundation; either version 3 of the
8  * License, or (at your option) any later version.
9  *
10  * This file is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  *
18  * SPDX-License-Identifier: LGPL-3.0-or-later
19  */
20 
21 #pragma once
22 
23 #include <gio/gio.h>
24 #include <gtk/gtk.h>
25 
26 #include "dspy-connection.h"
27 
28 G_BEGIN_DECLS
29 
30 #define DSPY_TYPE_NAME (dspy_name_get_type())
31 
32 G_DECLARE_FINAL_TYPE (DspyName, dspy_name, DSPY, NAME, GObject)
33 
34 DspyName       *dspy_name_new               (DspyConnection       *connection,
35                                              const gchar          *name,
36                                              gboolean              activatable);
37 DspyConnection *dspy_name_get_connection    (DspyName             *self);
38 gboolean        dspy_name_get_activatable   (DspyName             *self);
39 GPid            dspy_name_get_pid           (DspyName             *self);
40 const gchar    *dspy_name_get_name          (DspyName             *self);
41 const gchar    *dspy_name_get_owner         (DspyName             *self);
42 const gchar    *dspy_name_get_search_text   (DspyName             *self);
43 gint            dspy_name_compare           (gconstpointer         a,
44                                              gconstpointer         b);
45 void            dspy_name_introspect_async  (DspyName             *self,
46                                              GCancellable         *cancellable,
47                                              GAsyncReadyCallback   callback,
48                                              gpointer              user_data);
49 GtkTreeModel   *dspy_name_introspect_finish (DspyName             *self,
50                                              GAsyncResult         *result,
51                                              GError              **error);
52 
53 G_END_DECLS
54