summaryrefslogtreecommitdiffstats
path: root/jingle/notifier/base/notifier_options_util.h
blob: 42783290d22344c750eb930db8313f8e9622bf9f (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
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Utility functions for NotifierOptions.

#ifndef JINGLE_NOTIFIER_BASE_NOTIFIER_OPTIONS_UTIL_H_
#define JINGLE_NOTIFIER_BASE_NOTIFIER_OPTIONS_UTIL_H_

#include <string>
#include <vector>

#include "jingle/notifier/base/server_information.h"
#include "talk/xmpp/xmppclientsettings.h"

namespace notifier {

struct NotifierOptions;

buzz::XmppClientSettings MakeXmppClientSettings(
    const NotifierOptions& notifier_options,
    const std::string& email, const std::string& token,
    const std::string& token_service);

ServerList GetServerList(const NotifierOptions& notifier_options);

}  // namespace notifier

#endif  // JINGLE_NOTIFIER_BASE_NOTIFIER_OPTIONS_UTIL_H_