account-provider: Repurpose to allow graphical credential editing

This commit is contained in:
Evangelos Ribeiro Tzaras
2021-07-04 01:09:18 +02:00
committed by Evangelos Ribeiro Tzaras
parent 23cb050f61
commit 64bb170efa
2 changed files with 90 additions and 7 deletions

View File

@@ -24,21 +24,30 @@
#pragma once
#include "calls-account.h"
#include "calls-provider.h"
#include <glib-object.h>
#include <gtk/gtk.h>
G_BEGIN_DECLS
#define CALLS_TYPE_ACCOUNT_PROVIDER (calls_account_provider_get_type ())
G_DECLARE_INTERFACE (CallsAccountProvider, calls_account_provider, CALLS, ACCOUNT_PROVIDER, CallsProvider);
G_DECLARE_INTERFACE (CallsAccountProvider, calls_account_provider, CALLS, ACCOUNT_PROVIDER, CallsProvider)
struct _CallsAccountProviderInterface
{
GTypeInterface parent_iface;
GtkWidget *(*get_account_widget) (CallsAccountProvider *self);
void (*add_new_account) (CallsAccountProvider *self);
void (*edit_account) (CallsAccountProvider *self,
CallsAccount *account);
};
GtkWidget *calls_account_provider_get_account_widget (CallsAccountProvider *self);
void calls_account_provider_add_new_account (CallsAccountProvider *self);
void calls_account_provider_edit_account (CallsAccountProvider *self,
CallsAccount *account);
G_END_DECLS