1 /* DeskbarView - mail_daemon's deskbar menu and view
3 * Copyright 2001 Dr. Zoidberg Enterprises. All rights reserved.
20 enum MDDeskbarMessages
{
21 MD_CHECK_SEND_NOW
= 'MDra',
35 class _EXPORT DeskbarView
: public BView
{
37 DeskbarView(BRect frame
);
38 DeskbarView(BMessage
* data
);
39 virtual ~DeskbarView();
41 virtual void Draw(BRect updateRect
);
42 virtual void AttachedToWindow();
43 static DeskbarView
* Instantiate(BMessage
* data
);
44 virtual status_t
Archive(BMessage
* data
, bool deep
= true) const;
45 virtual void MouseDown(BPoint
);
46 virtual void MouseUp(BPoint
);
47 virtual void MessageReceived(BMessage
* message
);
51 bool _EntryInTrash(const entry_ref
*);
52 void _RefreshMailQuery();
53 bool _CreateMenuLinks(BDirectory
&, BPath
&);
54 void _CreateNewMailQuery(BEntry
&);
55 BPopUpMenu
* _BuildMenu();
57 status_t
_GetNewQueryRef(entry_ref
& ref
);
59 BBitmap
* fBitmaps
[kStatusCount
];
62 BList fNewMailQueries
;
68 #endif /* DESKBAR_VIEW_H */