summaryrefslogtreecommitdiff
path: root/modules/owncloud-backend/owncloud-utils.h
blob: 00bea18733dea9e869f91aa0026996812a00f1ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * owncloud-utils.h
 *
 * This library is free software: you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation.
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
 * for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library. If not, see <http://www.gnu.org/licenses/>.
 *
 */

#ifndef OWNCLOUD_UTILS_H
#define OWNCLOUD_UTILS_H

#include <libebackend/libebackend.h>
#include <libsoup/soup.h>

G_BEGIN_DECLS

typedef enum {
	OwnCloud_Source_Contacts = 1,
	OwnCloud_Source_Events,
	OwnCloud_Source_Memos,
	OwnCloud_Source_Tasks
} OwnCloudSourceType;

typedef void	(*OwnCloudSourceFoundCb)	(ECollectionBackend *collection,
						 OwnCloudSourceType source_type,
						 SoupURI *uri,
						 const gchar *display_name,
						 const gchar *color,
						 gpointer user_data);

gboolean	owncloud_utils_search_server	(ECollectionBackend *collection,
						 OwnCloudSourceFoundCb found_cb,
						 gpointer user_data);

G_END_DECLS

#endif /* OWNCLOUD_UTILS_H */