3fbe072d42
A nice templating system is used for account settings dialogues― the required slots are specified by the protocol, and are reflected in the settings dialogue. To generalize this templating system (and eventually use elsewhere), ProtocolSettings was split into two classes― ProtocolSettings and ProtocolTemplate. The CayaProtocol::SettingsTemplate() call was also edited to require a string parameter, naming the specific template that should be returned. "account" is used for the account settings dialogue, and other values are TBA.
27 lines
597 B
C++
27 lines
597 B
C++
/*
|
|
* Copyright 2010, Pier Luigi Fiorini. All rights reserved.
|
|
* Distributed under the terms of the GPL v2 License.
|
|
*/
|
|
#ifndef _JABBER_PROTOCOL_H
|
|
#define _JABBER_PROTOCOL_H
|
|
|
|
#include "JabberHandler.h"
|
|
|
|
class JabberProtocol : public JabberHandler {
|
|
public:
|
|
JabberProtocol();
|
|
virtual ~JabberProtocol();
|
|
|
|
virtual const char* Signature() const;
|
|
virtual const char* FriendlySignature() const;
|
|
|
|
virtual BBitmap* Icon() const;
|
|
|
|
virtual BMessage SettingsTemplate(const char* name);
|
|
virtual void OverrideSettings();
|
|
|
|
virtual BString ComposeJID() const;
|
|
};
|
|
|
|
#endif // _JABBER_PROTOCOL_H
|