BDeskbar: Style fixes

Update Copyright in cpp, add myself, alphabetize, standardize
Pointer style in cpp
Update some comments
Some 80 char stuff
pragma section headers
whitespace
This commit is contained in:
John Scipione
2017-11-26 20:40:00 -08:00
parent b1b84675f0
commit f8811591e1
2 changed files with 46 additions and 28 deletions
+10 -7
View File
@@ -8,6 +8,7 @@
#include <Rect.h>
class BMessenger;
class BView;
struct entry_ref;
@@ -22,6 +23,7 @@ enum deskbar_location {
B_DESKBAR_RIGHT_BOTTOM
};
class BDeskbar {
public:
BDeskbar();
@@ -29,24 +31,24 @@ public:
bool IsRunning() const;
// Location member functions
// Location methods
BRect Frame() const;
deskbar_location Location(bool* _isExpanded = NULL) const;
status_t SetLocation(deskbar_location location,
bool expanded = false);
// Other state methods
bool IsExpanded() const;
status_t Expand(bool expand);
// Item querying member functions
status_t GetItemInfo(int32 id,
const char** _name) const;
status_t GetItemInfo(const char* name,
int32* _id) const;
// Item querying methods
status_t GetItemInfo(int32 id, const char** _name) const;
status_t GetItemInfo(const char* name, int32* _id) const;
bool HasItem(int32 id) const;
bool HasItem(const char* name) const;
uint32 CountItems() const;
// Item modification member functions
// Item modification methods
status_t AddItem(BView* archivableView,
int32* _id = NULL);
status_t AddItem(entry_ref* addOn, int32* _id = NULL);
@@ -58,4 +60,5 @@ private:
uint32 _reserved[12];
};
#endif // _DESKBAR_H