| 1 | /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ |
| 2 | /* |
| 3 | * Copyright © 2011 – 2017 Red Hat, Inc. |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library 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 GNU |
| 13 | * Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Lesser General |
| 16 | * Public License along with this library; if not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | #if !defined (__GOA_BACKEND_INSIDE_GOA_BACKEND_H__) && !defined (GOA_BACKEND_COMPILATION) |
| 20 | #error "Only <goabackend/goabackend.h> can be included directly." |
| 21 | #endif |
| 22 | |
| 23 | #ifndef __GOA_IMAP_AUTH_LOGIN_H__ |
| 24 | #define __GOA_IMAP_AUTH_LOGIN_H__ |
| 25 | |
| 26 | #include <glib.h> |
| 27 | #include <glib-object.h> |
| 28 | |
| 29 | #include "goamailauth.h" |
| 30 | |
| 31 | G_BEGIN_DECLS |
| 32 | |
| 33 | #define GOA_TYPE_IMAP_AUTH_LOGIN (goa_imap_auth_login_get_type ()) |
| 34 | G_DECLARE_FINAL_TYPE (GoaImapAuthLogin, goa_imap_auth_login, GOA, IMAP_AUTH_LOGIN, GoaMailAuth); |
| 35 | |
| 36 | GoaMailAuth *goa_imap_auth_login_new (const gchar *user_name, |
| 37 | const gchar *password); |
| 38 | |
| 39 | G_END_DECLS |
| 40 | |
| 41 | #endif /* __GOA_IMAP_AUTH_LOGIN_H__ */ |