[haiku-3rdparty-dev] Saving preferences

  • From: David Rawson Couzelis <drcouzelis@xxxxxxxxx>
  • To: Haiku 3rd Party Development Mailing List <haiku-3rdparty-dev@xxxxxxxxxxxxx>
  • Date: Sat, 02 Jun 2012 14:56:23 -0400

I'm writing an RSS feed reader application for Haiku. I'm learning about
storing the information into a BMessage and flattening it into a file.

I understand how to store things like the window position and size. I
can save integers in a BMessage and give them names, like this:

...
window->GetWindowAlignment(blargittyblarg);
...
message.addInt32(width, "Width");
message.addInt32(height, "Height");
...

But I'm confused as to how to store data that can change size. Namely, I
have a BList of RSS feeds ("Feed" class) and each feed has a BList of
news items ("Item" class).

How can I save a "BList of BLists" to a file? Am I even doing this right? :P

Thank you.

Other related posts: