Chat-O-Matic/application/ProtocolTemplate.h

38 lines
876 B
C
Raw Permalink 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;
2021-06-20 12:44:20 -05:00
class ChatProtocol;
class ProtocolTemplate {
public:
2021-06-20 12:44:20 -05:00
ProtocolTemplate(ChatProtocol* protocol,
const char* type);
ProtocolTemplate(BMessage pTemplate);
~ProtocolTemplate();
status_t InitCheck() const;
2021-06-20 12:44:20 -05:00
ChatProtocol* 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:
2021-06-20 12:44:20 -05:00
ChatProtocol* fProtocol;
BMessage* fTemplate;
};
#endif // _PROTOCOL_TEMPLATE_H