namespace AniDBUdpClient {
-RawCommand::RawCommand(const QString &command) : AbstractCommand()
+RawCommand::RawCommand(const QString &command, bool requireAuthentication) : AbstractCommand()
{
m_command = command;
+ m_requiresSession = requireAuthentication;
+}
+
+void RawCommand::setRequiresSession(bool requiresSession)
+{
+ m_requiresSession = requiresSession;
+}
+
+bool RawCommand::requiresSession() const
+{
+ return m_requiresSession;
}
Command RawCommand::rawCommand() const
namespace AniDBUdpClient {
-class RawReply;
+class ANIDBUDPCLIENTSHARED_EXPORT RawReply;
class ANIDBUDPCLIENTSHARED_EXPORT RawCommand : public AbstractCommand
{
public:
typedef RawReply ReplyType;
- RawCommand(const QString &command);
+ RawCommand(const QString &command, bool requiresSession = true);
+ void setRequiresSession(bool requiresSession);
+
+ bool requiresSession() const;
Command rawCommand() const;
private:
QString m_command;
+ bool m_requiresSession;
};
class ANIDBUDPCLIENTSHARED_EXPORT RawReply : public AbstractReply