This document describes the BDeskbar interface and some basics of how it is implemented. The document has the following sections:
The BDeskbar class is a simple class for getting information from the deskbar and for modifying it from your application. The best source of source of information for the BDeskbar interface can be found here in the Be Book.
The following use cases cover the BDeskbar functionality:
Construction: A BDeskbar does not take any arguments when it is constructed. The BDeskbar instance creates a connection to the deskbar in order to get and change its state.
Destruction: When a BDeskbar is deconstructed, the application's connection to the deskbar is closed. However any change to the deskbar's state made through the BDeskbar instance persists.
Add Item 1:
Add Item 2:
Remove Item 1:
Remove Item 2:
Count Items:
Has Item 1:
Has Item 2:
Get Item Info 1:
Get Item Info 2:
Frame:
Location:
Is Expanded:
Set Location:
Expand:
Internally, the BDeskbar uses a BMessenger to communicate with the deskbar itself. The actual messages used to perform its tasks will be documented here once they are determined. The source code from the OpenTracker project will be used as a reference for this effort.