blob: bf8208625530973ec135f0b65e10df53c6b209f6 [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 WIMAX_MANAGER_POWER_MANAGER_DBUS_PROXY_H_
#define WIMAX_MANAGER_POWER_MANAGER_DBUS_PROXY_H_
#include <string>
#include <vector>
#include "base/basictypes.h"
#include "wimax_manager/dbus_proxies/org.chromium.PowerManager.h"
#include "wimax_manager/dbus_proxy.h"
namespace wimax_manager {
class PowerManager;
class PowerManagerDBusProxy : public org::chromium::PowerManager_proxy,
public DBusProxy {
public:
PowerManagerDBusProxy(DBus::Connection *connection, PowerManager *manager);
virtual ~PowerManagerDBusProxy();
virtual void SuspendImminent(const std::vector<uint8> &serialized_proto);
virtual void PowerStateChanged(const std::string &new_power_state);
private:
PowerManager *power_manager_;
DISALLOW_COPY_AND_ASSIGN(PowerManagerDBusProxy);
};
} // namespace wimax_manager
#endif // WIMAX_MANAGER_POWER_MANAGER_DBUS_PROXY_H_