|
Packit Service |
c6b9b0 |
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
Packit Service |
c6b9b0 |
/*
|
|
Packit Service |
c6b9b0 |
* Copyright © 2011 – 2017 Red Hat, Inc.
|
|
Packit Service |
c6b9b0 |
*
|
|
Packit Service |
c6b9b0 |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
c6b9b0 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
c6b9b0 |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
c6b9b0 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit Service |
c6b9b0 |
*
|
|
Packit Service |
c6b9b0 |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
c6b9b0 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
c6b9b0 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
c6b9b0 |
* Lesser General Public License for more details.
|
|
Packit Service |
c6b9b0 |
*
|
|
Packit Service |
c6b9b0 |
* You should have received a copy of the GNU Lesser General
|
|
Packit Service |
c6b9b0 |
* Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
|
Packit Service |
c6b9b0 |
*/
|
|
Packit Service |
c6b9b0 |
|
|
Packit Service |
c6b9b0 |
#if !defined (__GOA_BACKEND_INSIDE_GOA_BACKEND_H__) && !defined (GOA_BACKEND_COMPILATION)
|
|
Packit Service |
c6b9b0 |
#error "Only <goabackend/goabackend.h> can be included directly."
|
|
Packit Service |
c6b9b0 |
#endif
|
|
Packit Service |
c6b9b0 |
|
|
Packit Service |
c6b9b0 |
#ifndef __GOA_MAIL_AUTH_H__
|
|
Packit Service |
c6b9b0 |
#define __GOA_MAIL_AUTH_H__
|
|
Packit Service |
c6b9b0 |
|
|
Packit Service |
c6b9b0 |
#include <gio/gio.h>
|
|
Packit Service |
c6b9b0 |
#include <glib.h>
|
|
Packit Service |
c6b9b0 |
#include <glib-object.h>
|
|
Packit Service |
c6b9b0 |
|
|
Packit Service |
c6b9b0 |
G_BEGIN_DECLS
|
|
Packit Service |
c6b9b0 |
|
|
Packit Service |
c6b9b0 |
#define GOA_TYPE_MAIL_AUTH (goa_mail_auth_get_type ())
|
|
Packit Service |
c6b9b0 |
G_DECLARE_DERIVABLE_TYPE (GoaMailAuth, goa_mail_auth, GOA, MAIL_AUTH, GObject);
|
|
Packit Service |
c6b9b0 |
|
|
Packit Service |
c6b9b0 |
typedef struct _GoaMailAuthPrivate GoaMailAuthPrivate;
|
|
Packit Service |
c6b9b0 |
|
|
Packit Service |
c6b9b0 |
struct _GoaMailAuthClass
|
|
Packit Service |
c6b9b0 |
{
|
|
Packit Service |
c6b9b0 |
GObjectClass parent_class;
|
|
Packit Service |
c6b9b0 |
gboolean (*is_needed) (GoaMailAuth *self);
|
|
Packit Service |
c6b9b0 |
gboolean (*run_sync) (GoaMailAuth *self,
|
|
Packit Service |
c6b9b0 |
GCancellable *cancellable,
|
|
Packit Service |
c6b9b0 |
GError **error);
|
|
Packit Service |
c6b9b0 |
gboolean (*starttls_sync) (GoaMailAuth *self,
|
|
Packit Service |
c6b9b0 |
GCancellable *cancellable,
|
|
Packit Service |
c6b9b0 |
GError **error);
|
|
Packit Service |
c6b9b0 |
};
|
|
Packit Service |
c6b9b0 |
|
|
Packit Service |
c6b9b0 |
gboolean goa_mail_auth_is_needed (GoaMailAuth *self);
|
|
Packit Service |
c6b9b0 |
void goa_mail_auth_run (GoaMailAuth *self,
|
|
Packit Service |
c6b9b0 |
GCancellable *cancellable,
|
|
Packit Service |
c6b9b0 |
GAsyncReadyCallback callback,
|
|
Packit Service |
c6b9b0 |
gpointer user_data);
|
|
Packit Service |
c6b9b0 |
gboolean goa_mail_auth_run_finish (GoaMailAuth *self,
|
|
Packit Service |
c6b9b0 |
GAsyncResult *res,
|
|
Packit Service |
c6b9b0 |
GError **error);
|
|
Packit Service |
c6b9b0 |
gboolean goa_mail_auth_run_sync (GoaMailAuth *self,
|
|
Packit Service |
c6b9b0 |
GCancellable *cancellable,
|
|
Packit Service |
c6b9b0 |
GError **error);
|
|
Packit Service |
c6b9b0 |
void goa_mail_auth_starttls (GoaMailAuth *self,
|
|
Packit Service |
c6b9b0 |
GCancellable *cancellable,
|
|
Packit Service |
c6b9b0 |
GAsyncReadyCallback callback,
|
|
Packit Service |
c6b9b0 |
gpointer user_data);
|
|
Packit Service |
c6b9b0 |
gboolean goa_mail_auth_starttls_finish (GoaMailAuth *self,
|
|
Packit Service |
c6b9b0 |
GAsyncResult *res,
|
|
Packit Service |
c6b9b0 |
GError **error);
|
|
Packit Service |
c6b9b0 |
gboolean goa_mail_auth_starttls_sync (GoaMailAuth *self,
|
|
Packit Service |
c6b9b0 |
GCancellable *cancellable,
|
|
Packit Service |
c6b9b0 |
GError **error);
|
|
Packit Service |
c6b9b0 |
GDataInputStream *goa_mail_auth_get_input (GoaMailAuth *self);
|
|
Packit Service |
c6b9b0 |
void goa_mail_auth_set_input (GoaMailAuth *self,
|
|
Packit Service |
c6b9b0 |
GDataInputStream *input);
|
|
Packit Service |
c6b9b0 |
GDataOutputStream *goa_mail_auth_get_output (GoaMailAuth *self);
|
|
Packit Service |
c6b9b0 |
void goa_mail_auth_set_output (GoaMailAuth *self,
|
|
Packit Service |
c6b9b0 |
GDataOutputStream *input);
|
|
Packit Service |
c6b9b0 |
|
|
Packit Service |
c6b9b0 |
G_END_DECLS
|
|
Packit Service |
c6b9b0 |
|
|
Packit Service |
c6b9b0 |
#endif /* __GOA_MAIL_AUTH_H__ */
|