Chat-O-Matic/application/ProtocolTemplate.h

37 lines
832 B
C
Raw Normal View History

/*
* 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;
class BView;
class CayaProtocol;
class ProtocolTemplate {
public:
ProtocolTemplate(CayaProtocol* protocol,
const char* type);
~ProtocolTemplate();
status_t InitCheck() const;
CayaProtocol* Protocol() const;
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);
private:
CayaProtocol* fProtocol;
BMessage* fTemplate;
};
#endif // _PROTOCOL_TEMPLATE_H