2 * Copyright 2015, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
5 #ifndef TEAM_SIGNAL_SETTINGS_H
6 #define TEAM_SIGNAL_SETTINGS_H
10 #include "SignalDispositionTypes.h"
13 class TeamSignalSettings
{
16 virtual ~TeamSignalSettings();
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;
28 void SetDefaultSignalDisposition(int32 disposition
);
29 int32
DefaultSignalDisposition() const;
31 int32
CountCustomSignalDispositions() const;
32 status_t
AddCustomSignalDisposition(int32 signal
,
34 status_t
RemoveCustomSignalDispositionAt(int32 index
);
35 status_t
GetCustomSignalDispositionAt(int32 index
,
36 int32
& signal
, int32
& disposition
) const;
38 virtual TeamSignalSettings
*
46 #endif // TEAM_SIGNAL_SETTINGS_H