1234567891011121314151617181920212223242526272829303132333435363738 |
- /*
- * 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;
- class BString;
- class BView;
- class ChatProtocol;
- class ProtocolTemplate {
- public:
- ProtocolTemplate(ChatProtocol* protocol,
- const char* type);
- ProtocolTemplate(BMessage pTemplate);
- ~ProtocolTemplate();
- status_t InitCheck() const;
- ChatProtocol* Protocol() const;
- status_t Load(BView* parent, BMessage* settings = NULL);
- status_t Save(BView* parent, BMessage* settings,
- BString* errorText = NULL);
- private:
- ChatProtocol* fProtocol;
- BMessage* fTemplate;
- };
- #endif // _PROTOCOL_TEMPLATE_H
|