~ubuntu-branches/ubuntu/utopic/gnome-online-accounts/utopic

« back to all changes in this revision

Viewing changes to src/goabackend/goatelepathyfactory.c

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson, Laurent Bigonville, Andreas Henriksson
  • Date: 2014-05-16 11:42:52 UTC
  • mfrom: (1.1.28) (0.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20140516114252-u5ect6mk6ht8i38x
Tags: 3.12.2-1
[ Laurent Bigonville ]
* debian/control.in: Recommends realmd package (Closes: #725965)

[ Andreas Henriksson ]
* New upstream release.
  - Removes chat support from Windows Live provider (XMPP gateway gone).
* Bump Standards-Version to 3.9.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 * Lesser General Public License for more details.
14
14
 *
15
15
 * You should have received a copy of the GNU Lesser General
16
 
 * Public License along with this library; if not, write to the
17
 
 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18
 
 * Boston, MA 02111-1307, USA.
 
16
 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
19
17
 *
20
18
 * Author: Marco Barisione <marco.barisione@collabora.co.uk>
21
19
 */
35
33
 *
36
34
 * #GoaTelepathyFactory dynamically creates instances of #GoaTelepathyProvider
37
35
 * based on the protocols available through Telepathy.
 
36
 *
 
37
 * It accepts the protocol names from the Telepathy specification as
 
38
 * @provider_name in goa_provider_factory_get_provider().
38
39
 */
39
40
 
40
41
G_DEFINE_TYPE_WITH_CODE (GoaTelepathyFactory, goa_telepathy_factory, GOA_TYPE_PROVIDER_FACTORY,
50
51
get_provider (GoaProviderFactory *factory,
51
52
              const gchar        *provider_name)
52
53
{
53
 
  g_return_if_fail (GOA_IS_TELEPATHY_FACTORY (factory));
 
54
  g_return_val_if_fail (GOA_IS_TELEPATHY_FACTORY (factory), NULL);
54
55
 
55
56
  return GOA_PROVIDER (goa_telepathy_provider_new_from_protocol_name (provider_name));
56
57
}
69
70
                  gpointer      user_data)
70
71
{
71
72
  GSimpleAsyncResult *outer_result = user_data;
72
 
  GQuark facebook_quark, google_talk_quark, msn_quark;
 
73
  GQuark facebook_quark, google_talk_quark;
73
74
  GList *protocols = NULL;
74
75
  GList *ret;
75
76
  GList *l;
85
86
 
86
87
  facebook_quark = g_quark_from_static_string ("facebook");
87
88
  google_talk_quark = g_quark_from_static_string ("google-talk");
88
 
  msn_quark = g_quark_from_static_string ("msn");
89
89
 
90
90
  ret = NULL;
91
91
  for (l = protocols; l != NULL; l = l->next)
92
92
    {
93
93
      TpawProtocol *protocol = l->data;
94
 
      const gchar *protocol_name = tpaw_protocol_get_protocol_name (protocol);
95
94
      const gchar *service_name = tpaw_protocol_get_service_name (protocol);
96
 
      GQuark protocol_quark = g_quark_try_string (protocol_name);
97
95
      GQuark service_quark = g_quark_try_string (service_name);
98
96
      GoaTelepathyProvider *provider;
99
97
 
107
105
      if (service_quark == google_talk_quark)
108
106
        continue;
109
107
#endif
110
 
#if GOA_WINDOWS_LIVE_ENABLED
111
 
      if (protocol_quark == msn_quark)
112
 
        continue;
113
 
#endif
114
108
 
115
109
      provider = goa_telepathy_provider_new_from_protocol (protocol);
116
110
      ret = g_list_prepend (ret, provider);