2011-11-01 16:45:01 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2011, Rene Gollent, rene@gollent.com.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef TEAM_UI_SETTINGS_H
|
|
|
|
#define TEAM_UI_SETTINGS_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <String.h>
|
|
|
|
|
|
|
|
|
|
|
|
class BMessage;
|
|
|
|
|
|
|
|
|
2011-11-01 19:45:31 +04:00
|
|
|
enum team_ui_settings_type {
|
|
|
|
TEAM_UI_SETTINGS_TYPE_GUI,
|
|
|
|
TEAM_UI_SETTINGS_TYPE_CLI
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2012-07-24 02:28:16 +04:00
|
|
|
class TeamUiSettings {
|
2011-11-01 16:45:01 +04:00
|
|
|
public:
|
2012-07-24 02:28:16 +04:00
|
|
|
TeamUiSettings();
|
|
|
|
virtual ~TeamUiSettings();
|
2011-11-01 16:45:01 +04:00
|
|
|
|
2011-11-01 19:45:31 +04:00
|
|
|
virtual team_ui_settings_type Type() const = 0;
|
2011-11-01 16:45:01 +04:00
|
|
|
virtual const char* ID() const = 0;
|
|
|
|
virtual status_t SetTo(const BMessage& archive) = 0;
|
|
|
|
virtual status_t WriteTo(BMessage& archive) const = 0;
|
|
|
|
|
2012-07-24 02:28:16 +04:00
|
|
|
virtual TeamUiSettings* Clone() const = 0;
|
2011-11-01 16:45:01 +04:00
|
|
|
// throws std::bad_alloc
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // TEAM_UI_SETTINGS_H
|