From 1af3d14f3f995645a0de08a54b244c19840709e9 Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Thu, 19 Jun 2025 23:17:58 +0200 Subject: init hs project --- csrc/services/application-service.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 csrc/services/application-service.h (limited to 'csrc/services/application-service.h') diff --git a/csrc/services/application-service.h b/csrc/services/application-service.h new file mode 100644 index 0000000..dd043fc --- /dev/null +++ b/csrc/services/application-service.h @@ -0,0 +1,25 @@ +#pragma once + +#include +#include + +G_BEGIN_DECLS + +#define FOOBAR_TYPE_APPLICATION_ITEM foobar_application_item_get_type( ) +#define FOOBAR_TYPE_APPLICATION_SERVICE foobar_application_service_get_type( ) + +G_DECLARE_FINAL_TYPE( FoobarApplicationItem, foobar_application_item, FOOBAR, APPLICATION_ITEM, GObject ) + +gchar const* foobar_application_item_get_id ( FoobarApplicationItem* self ); +gchar const* foobar_application_item_get_executable ( FoobarApplicationItem* self ); +gchar const* foobar_application_item_get_categories ( FoobarApplicationItem* self ); +gint64 foobar_application_item_get_frequency ( FoobarApplicationItem* self ); +gboolean foobar_application_item_match ( FoobarApplicationItem* self, + gchar const* const* terms ); + +G_DECLARE_FINAL_TYPE( FoobarApplicationService, foobar_application_service, FOOBAR, APPLICATION_SERVICE, GObject ) + +FoobarApplicationService* foobar_application_service_new ( void ); +GListModel* foobar_application_service_get_items( FoobarApplicationService* self ); + +G_END_DECLS -- cgit v1.3.1