blob: fdddb8b7988e6a0a610b76225f448109bcd2a056 [file] [log] [blame]
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHILL_SHIMS_TASK_PROXY_H_
#define SHILL_SHIMS_TASK_PROXY_H_
#include <base/basictypes.h>
#include "shill/dbus_bindings/shims/flimflam-task.h"
namespace shill {
namespace shims {
class TaskProxy {
public:
TaskProxy(DBus::Connection *connection,
const std::string &path,
const std::string &service);
~TaskProxy();
void Notify(const std::string &reason,
std::map<std::string, std::string> &dict);
bool GetSecret(std::string *username, std::string *password);
private:
class Proxy : public org::chromium::flimflam::Task_proxy,
public DBus::ObjectProxy {
public:
Proxy(DBus::Connection *connection,
const std::string &path,
const std::string &service);
virtual ~Proxy();
private:
// Signal callbacks inherited from Task_proxy.
// [None]
// Method callbacks inherited from Task_proxy.
// [None]
DISALLOW_COPY_AND_ASSIGN(Proxy);
};
Proxy proxy_;
DISALLOW_COPY_AND_ASSIGN(TaskProxy);
};
} // namespace shims
} // namespace shill
#endif // SHILL_SHIMS_TASK_PROXY_H_