| 1 |
/* |
| 2 |
* SPDX-FileCopyrightText: (C) 2013 Red Hat, Inc. (www.redhat.com) |
| 3 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 4 |
*/ |
| 5 |
|
| 6 |
#ifndef E_EWS_NOTIFICATION_H |
| 7 |
#define E_EWS_NOTIFICATION_H |
| 8 |
|
| 9 |
#include <glib-object.h> |
| 10 |
#include "e-ews-connection.h" |
| 11 |
|
| 12 |
#define E_TYPE_EWS_NOTIFICATION \ |
| 13 |
(e_ews_notification_get_type ()) |
| 14 |
#define E_EWS_NOTIFICATION(obj) \ |
| 15 |
(G_TYPE_CHECK_INSTANCE_CAST \ |
| 16 |
((obj), E_TYPE_EWS_NOTIFICATION, EEwsNotification)) |
| 17 |
#define E_EWS_NOTIFICATION_CLASS(klass) \ |
| 18 |
(G_TYPE_CHECK_CLASS_CAST \ |
| 19 |
((klass), E_TYPE_EWS_NOTIFICATION, EEwsNotificationClass)) |
| 20 |
#define E_IS_EWS_NOTIFICATION(obj) \ |
| 21 |
(G_TYPE_CHECK_INSTANCE_TYPE \ |
| 22 |
((obj), E_TYPE_EWS_NOTIFICATION)) |
| 23 |
#define E_IS_EWS_NOTIFICATION_CLASS(klass) \ |
| 24 |
(G_TYPE_CHECK_CLASS_TYPE \ |
| 25 |
((klass), E_TYPE_EWS_NOTIFICATION)) |
| 26 |
|
| 27 |
G_BEGIN_DECLS |
| 28 |
|
| 29 |
typedef struct _EEwsNotification EEwsNotification; |
| 30 |
typedef struct _EEwsNotificationClass EEwsNotificationClass; |
| 31 |
typedef struct _EEwsNotificationPrivate EEwsNotificationPrivate; |
| 32 |
|
| 33 |
struct _EEwsNotification { |
| 34 |
GObject parent; |
| 35 |
EEwsNotificationPrivate *priv; |
| 36 |
}; |
| 37 |
|
| 38 |
struct _EEwsNotificationClass { |
| 39 |
GObjectClass parent_class; |
| 40 |
}; |
| 41 |
|
| 42 |
GType e_ews_notification_get_type (void); |
| 43 |
const gchar * const * |
| 44 |
e_ews_notification_get_event_names |
| 45 |
(void); |
| 46 |
EEwsNotification * |
| 47 |
e_ews_notification_new (EEwsConnection *connection, |
| 48 |
gchar *last_subscription_id); /* assumes ownership of it */ |
| 49 |
|
| 50 |
void e_ews_notification_start_listening_sync |
| 51 |
(EEwsNotification *notification, |
| 52 |
GSList *folders); |
| 53 |
void e_ews_notification_stop_listening_sync |
| 54 |
(EEwsNotification *notification); |
| 55 |
|
| 56 |
G_END_DECLS |
| 57 |
|
| 58 |
#endif /* E_EWS_NOTIFICATION_H */ |