vfs: check userland buffers before reading them.
[haiku.git] / src / servers / bluetooth / DeskbarReplicant.h
blobd64a3e480bdf4bdb0af20b1468c0c72ec8daff01
1 /*
2 * Copyright 2009, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Michael Weirauch, dev@m-phasis.de
7 */
8 #ifndef DESKBAR_REPLICANT_H
9 #define DESKBAR_REPLICANT_H
12 #include <View.h>
15 extern const char* kDeskbarItemName;
18 class DeskbarReplicant : public BView {
19 public:
20 DeskbarReplicant(BRect frame, int32 resizingMode);
21 DeskbarReplicant(BMessage* archive);
22 virtual ~DeskbarReplicant();
24 static DeskbarReplicant* Instantiate(BMessage* archive);
25 virtual status_t Archive(BMessage* archive, bool deep = true) const;
27 virtual void AttachedToWindow();
29 virtual void Draw(BRect updateRect);
31 virtual void MessageReceived(BMessage* message);
32 virtual void MouseDown(BPoint where);
34 private:
35 void _Init();
37 void _QuitBluetoothServer();
39 void _ShowErrorAlert(BString msg, status_t status);
41 BBitmap* fIcon;
44 #endif // DESKBAR_REPLICANT_H