2021-06-17 16:51:37 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2009-2011, Pier Luigi Fiorini. All rights reserved.
|
|
|
|
* Copyright 2003-2009, IM Kit Team. All rights reserved.
|
|
|
|
* Copyright 2021, Jaidyn Levesque. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _PROTOCOL_TEMPLATE_H
|
|
|
|
#define _PROTOCOL_TEMPLATE_H
|
|
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
|
|
class BMessage;
|
2021-06-18 12:49:30 -05:00
|
|
|
class BString;
|
2021-06-17 16:51:37 -05:00
|
|
|
class BView;
|
2021-06-18 01:13:02 -05:00
|
|
|
class CayaProtocol;
|
2021-06-17 16:51:37 -05:00
|
|
|
|
|
|
|
|
|
|
|
class ProtocolTemplate {
|
|
|
|
public:
|
2021-06-18 01:13:02 -05:00
|
|
|
ProtocolTemplate(CayaProtocol* protocol,
|
2021-06-17 16:51:37 -05:00
|
|
|
const char* type);
|
|
|
|
~ProtocolTemplate();
|
|
|
|
|
|
|
|
status_t InitCheck() const;
|
2021-06-18 01:13:02 -05:00
|
|
|
CayaProtocol* Protocol() const;
|
2021-06-17 16:51:37 -05:00
|
|
|
|
|
|
|
status_t Load(BView* parent, BMessage* settings = NULL);
|
2021-06-18 12:49:30 -05:00
|
|
|
status_t Save(BView* parent, BMessage* settings,
|
|
|
|
BString* errorText = NULL);
|
2021-06-17 16:51:37 -05:00
|
|
|
|
|
|
|
private:
|
2021-06-18 01:13:02 -05:00
|
|
|
CayaProtocol* fProtocol;
|
2021-06-17 16:51:37 -05:00
|
|
|
BMessage* fTemplate;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _PROTOCOL_TEMPLATE_H
|