vfs: check userland buffers before reading them.
[haiku.git] / src / apps / pulse / PulseView.h
blobd6e0f9f4d6175c607835c4b9d98730d9aef524e5
1 //****************************************************************************************
2 //
3 // File: PulseView.h
4 //
5 // Written by: David Ramsey and Daniel Switkin
6 //
7 // Copyright 1999, Be Incorporated
8 //
9 //****************************************************************************************
11 #ifndef PULSEVIEW_H
12 #define PULSEVIEW_H
14 #include <interface/View.h>
15 #include <interface/PopUpMenu.h>
16 #include <interface/MenuItem.h>
19 class PulseView : public BView {
20 public:
21 PulseView(BRect rect, const char *name);
22 PulseView(BMessage *message);
23 ~PulseView();
24 virtual void MouseDown(BPoint point);
25 void ChangeCPUState(BMessage *message);
27 protected:
28 void Init();
29 void Update();
31 BPopUpMenu *popupmenu;
32 BMenuItem *mode1, *mode2, *preferences, *about;
33 BMenuItem **cpu_menu_items;
35 const int32 kCPUCount;
37 double* cpu_times;
38 bigtime_t* prev_active;
39 bigtime_t prev_time;
42 #endif