blob: fdddb8b7988e6a0a610b76225f448109bcd2a056 [file] [log] [blame]
Darin Petkov804e8d02012-10-10 16:44:36 +02001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef SHILL_SHIMS_TASK_PROXY_H_
6#define SHILL_SHIMS_TASK_PROXY_H_
7
8#include <base/basictypes.h>
9
10#include "shill/dbus_bindings/shims/flimflam-task.h"
11
12namespace shill {
13
14namespace shims {
15
16class TaskProxy {
17 public:
18 TaskProxy(DBus::Connection *connection,
19 const std::string &path,
20 const std::string &service);
21 ~TaskProxy();
22
23 void Notify(const std::string &reason,
24 std::map<std::string, std::string> &dict);
25
Darin Petkove6ca3202012-10-19 14:49:56 +020026 bool GetSecret(std::string *username, std::string *password);
27
Darin Petkov804e8d02012-10-10 16:44:36 +020028 private:
29 class Proxy : public org::chromium::flimflam::Task_proxy,
30 public DBus::ObjectProxy {
31 public:
32 Proxy(DBus::Connection *connection,
33 const std::string &path,
34 const std::string &service);
35 virtual ~Proxy();
36
37 private:
38 // Signal callbacks inherited from Task_proxy.
39 // [None]
40
41 // Method callbacks inherited from Task_proxy.
42 // [None]
43
44 DISALLOW_COPY_AND_ASSIGN(Proxy);
45 };
46
47 Proxy proxy_;
48
49 DISALLOW_COPY_AND_ASSIGN(TaskProxy);
50};
51
52} // namespace shims
53
54} // namespace shill
55
56#endif // SHILL_SHIMS_TASK_PROXY_H_