blob: ca22db5b4afb94413e2f7329b3ce881a05b1b9e1 [file] [log] [blame]
Darin Petkove0a312e2011-07-20 13:45:28 -07001// Copyright (c) 2011 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_DBUS_PROPERTIES_
6#define SHILL_DBUS_PROPERTIES_
7
8#include <map>
9#include <string>
10
11#include <base/basictypes.h>
12#include <dbus-c++/types.h>
13
14namespace shill {
15
16typedef std::map<std::string, DBus::Variant> DBusPropertiesMap;
17
18class DBusProperties {
19 public:
20 static bool GetString(const DBusPropertiesMap &properties,
21 const std::string &key,
22 std::string *value);
23
24 static bool GetUint32(const DBusPropertiesMap &properties,
25 const std::string &key,
26 uint32 *value);
27
28 private:
29 DISALLOW_COPY_AND_ASSIGN(DBusProperties);
30};
31
32} // namespace shill
33
34#endif // SHILL_DBUS_PROPERTIES_