summaryrefslogtreecommitdiff
path: root/profile.h
AgeCommit message (Collapse)Author
2011-07-12Re-land "[shill] Get rid of Entry as a first-class citizen""Chris Masone
This reverts commit 7c1ab1cb74bf6397c67e1cdc825043a93c4bce33. Also, fixes some compile problems that only repro with debug flags and that cause runtime dbus errors with the new version of libdbus BUG=chromium-os:17436 TEST=unit tests Change-Id: I479308e684b802f167788daeaf4ec39d0b63ee17 Reviewed-on: http://gerrit.chromium.org/gerrit/3961 Tested-by: Chris Masone <cmasone@chromium.org> Reviewed-by: Darin Petkov <petkov@chromium.org>
2011-07-12Revert "[shill] Get rid of Entry as a first-class citizen"Chris Masone
This reverts commit 7c982eade99f01cb6b8719ed4d385c0ec6b50f75 Change-Id: I554c12003c18f09ac7f736e98b9ecd63829100e9 Reviewed-on: http://gerrit.chromium.org/gerrit/3957 Reviewed-by: Chris Masone <cmasone@chromium.org> Tested-by: Chris Masone <cmasone@chromium.org>
2011-07-12[shill] Get rid of Entry as a first-class citizenChris Masone
Entry was a bad idea. Instead, merge that stuff back into Service and make Profile objects just have a list of Services. Live Services will be registered with Manager; ones that exist only within a Profile will have to be accessed by querying the Profile over DBus, just like today. BUG=chromium-os:17436 TEST=unit tests Change-Id: Id07d762925b252219aa79340931e34b87f10007e Reviewed-on: http://gerrit.chromium.org/gerrit/3951 Reviewed-by: Darin Petkov <petkov@chromium.org> Tested-by: Chris Masone <cmasone@chromium.org>
2011-07-11[shill] Back property storage in Service objects with Entry objectsChris Masone
Much of Shill Service state is persisted to disk, by creating an Entry in a Profile. We should store this info just once, so that we don't have to worry about keeping multiple data stores in sync. This is a first step in that direction. BUG=chromium-os:17436 TEST=unit tests Change-Id: If94db2a38a7d79c56e2c746b2f069cfd7ab4bf65 Reviewed-on: http://gerrit.chromium.org/gerrit/3876 Tested-by: Chris Masone <cmasone@chromium.org> Reviewed-by: Darin Petkov <petkov@chromium.org>
2011-07-07shill: Support for profile identifiers, and creating persistent storage.Darin Petkov
BUG=chromium-os:17252 TEST=unit tests Change-Id: Iaec7b6b5737a997fde3d5215196fdcbf72eefe09 Reviewed-on: http://gerrit.chromium.org/gerrit/3749 Tested-by: Darin Petkov <petkov@chromium.org> Reviewed-by: Chris Masone <cmasone@chromium.org>
2011-07-06[shill] Add properties to Profiles.Chris Masone
There are several properties of the Manager that are reflected only in the default Profile. We create a subclass for this special type of profile and hand it a const ref to the properties of the Manager class so it can provide read-only access to these values via RPC. BUG=chromium-os:17261 TEST=unit tests STATUS=Verified Change-Id: I6fa9f2549a0e1af1b9523206bad8ee17e133f399 Reviewed-on: http://gerrit.chromium.org/gerrit/3620 Reviewed-by: Chris Masone <cmasone@chromium.org> Tested-by: Chris Masone <cmasone@chromium.org>
2011-07-03[shill] Use composition instead of inheritance with PropertyStoreChris Masone
Instead of having Device, Manager, etc all inherit from PropertyStore and have it be difficult to follow the getting/setting property code, have each include a PropertyStore as a data member. Provide an accessor so that RPC adaptor classes can get and set properties directly and continue to handle any necessary type conversion themselves. BUG=None TEST=unit tests Change-Id: I34781bde4de0e152550ca636e28d472abde756af Reviewed-on: http://gerrit.chromium.org/gerrit/3616 Tested-by: Chris Masone <cmasone@chromium.org> Reviewed-by: Darin Petkov <petkov@chromium.org>
2011-06-30[shill] Add Profile objectsChris Masone
Add a mostly-empty Profile object and all the wiring to hook it up to DBus BUG=chromium-os:17154 TEST=unit tests Change-Id: I16bf488969f071dd91c31ef454c7e10a81f9afe7 Reviewed-on: http://gerrit.chromium.org/gerrit/3423 Reviewed-by: mukesh agrawal <quiche@chromium.org> Tested-by: Chris Masone <cmasone@chromium.org>