vfs: check userland buffers before reading them.
[haiku.git] / src / kits / debugger / settings / TeamSignalSettings.h
blob3e26383dfc98f6d73eceb007df6c066b447b1355
1 /*
2 * Copyright 2015, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef TEAM_SIGNAL_SETTINGS_H
6 #define TEAM_SIGNAL_SETTINGS_H
8 #include <Message.h>
10 #include "SignalDispositionTypes.h"
13 class TeamSignalSettings {
14 public:
15 TeamSignalSettings();
16 virtual ~TeamSignalSettings();
18 TeamSignalSettings&
19 operator=(
20 const TeamSignalSettings& other);
21 // throws std::bad_alloc;
23 const char* ID() const;
24 status_t SetTo(const BMessage& archive);
25 status_t WriteTo(BMessage& archive) const;
26 void Unset();
28 void SetDefaultSignalDisposition(int32 disposition);
29 int32 DefaultSignalDisposition() const;
31 int32 CountCustomSignalDispositions() const;
32 status_t AddCustomSignalDisposition(int32 signal,
33 int32 disposition);
34 status_t RemoveCustomSignalDispositionAt(int32 index);
35 status_t GetCustomSignalDispositionAt(int32 index,
36 int32& signal, int32& disposition) const;
38 virtual TeamSignalSettings*
39 Clone() const;
41 private:
42 BMessage fValues;
46 #endif // TEAM_SIGNAL_SETTINGS_H