Add support for mobypicture
[maemo-sharing-twitter-multi:maemo-sharing-twitter-multi.git] / src / twitpic.h
1 /*
2  * This file is part of maemo-sharing-twitter-multi
3  *
4  * Copyright (C) 2010 Igalia, S.L.
5  * Authors: Alberto Garcia <agarcia@igalia.com>
6  *
7  * This is free software: you can redistribute it and/or modify it
8  * under the terms of the GNU General Public License version 3 as
9  * published by the Free Software Foundation.
10  *
11  * This software is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this software. If not, see <http://www.gnu.org/licenses/>
18  */
19
20 #ifndef __TWITPIC_H__
21 #define __TWITPIC_H__
22
23 #include <hildon/hildon.h>
24 #include <sharing-plugin-interface.h>
25
26 G_BEGIN_DECLS
27
28 typedef enum {
29   SERVICE_TWITPIC,
30   SERVICE_MOBYPICTURE,
31   SERVICE_TWITGOO
32 } TwitterPicService;
33
34 gboolean
35 twitpic_account_setup                   (SharingAccount *account,
36                                          GtkWindow      *parent);
37
38 gboolean
39 twitpic_account_validate                (SharingAccount *account,
40                                          gboolean       *dead_mans_switch);
41
42 SharingPluginInterfaceSendResult
43 twitpic_share_file                      (SharingTransfer *transfer,
44                                          ConIcConnection *con,
45                                          gboolean        *dead_mans_switch);
46
47 SharingPluginInterfaceEditAccountResult
48 twitpic_account_edit                    (GtkWindow       *parent,
49                                          SharingAccount  *account,
50                                          ConIcConnection *con,
51                                          gboolean        *dead_mans_switch);
52
53 G_END_DECLS
54
55 #endif /* __TWITPIC_H__ */