1 /* ide-test.h 2 * 3 * Copyright 2017-2019 Christian Hergert <chergert@redhat.com> 4 * 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * SPDX-License-Identifier: GPL-3.0-or-later 19 */ 20 21 #pragma once 22 23 #if !defined (IDE_FOUNDRY_INSIDE) && !defined (IDE_FOUNDRY_COMPILATION) 24 # error "Only <libide-foundry.h> can be included directly." 25 #endif 26 27 #include <libide-core.h> 28 29 G_BEGIN_DECLS 30 31 #define IDE_TYPE_TEST (ide_test_get_type()) 32 33 typedef enum 34 { 35 IDE_TEST_STATUS_NONE, 36 IDE_TEST_STATUS_RUNNING, 37 IDE_TEST_STATUS_SUCCESS, 38 IDE_TEST_STATUS_FAILED, 39 } IdeTestStatus; 40 41 IDE_AVAILABLE_IN_3_32 42 G_DECLARE_DERIVABLE_TYPE (IdeTest, ide_test, IDE, TEST, GObject) 43 44 struct _IdeTestClass 45 { 46 GObjectClass parent; 47 48 /*< private >*/ 49 gpointer _reserved[16]; 50 }; 51 52 IDE_AVAILABLE_IN_3_32 53 IdeTest *ide_test_new (void); 54 IDE_AVAILABLE_IN_3_32 55 const gchar *ide_test_get_display_name (IdeTest *self); 56 IDE_AVAILABLE_IN_3_32 57 void ide_test_set_display_name (IdeTest *self, 58 const gchar *display_name); 59 IDE_AVAILABLE_IN_3_32 60 const gchar *ide_test_get_group (IdeTest *self); 61 IDE_AVAILABLE_IN_3_32 62 void ide_test_set_group (IdeTest *self, 63 const gchar *group); 64 IDE_AVAILABLE_IN_3_32 65 const gchar *ide_test_get_icon_name (IdeTest *self); 66 IDE_AVAILABLE_IN_3_32 67 const gchar *ide_test_get_id (IdeTest *self); 68 IDE_AVAILABLE_IN_3_32 69 void ide_test_set_id (IdeTest *self, 70 const gchar *id); 71 IDE_AVAILABLE_IN_3_32 72 IdeTestStatus ide_test_get_status (IdeTest *self); 73 IDE_AVAILABLE_IN_3_32 74 void ide_test_set_status (IdeTest *self, 75 IdeTestStatus status); 76 77 G_END_DECLS 78