Адаптация библиотеки для Redis

This commit is contained in:
2020-03-30 12:42:41 +03:00
parent 4069aaf315
commit 44466b80de
13 changed files with 106 additions and 64 deletions

View File

@ -1,5 +1,5 @@
#ifndef QREDIS_PARSER_H
#define QREDIS_PARSER_H
#ifndef MYX_REDIS_PARSER_HPP_
#define MYX_REDIS_PARSER_HPP_
#include <QList>
#include <QObject>
@ -9,8 +9,9 @@
#include <reply.hpp>
#include <lexer.hpp>
namespace qxredis
{
namespace myx {
namespace redis {
class Parser : public QObject
{
@ -20,7 +21,7 @@ public:
Parser( Lexer*, QObject* = nullptr );
virtual ~Parser() = default;
Q_SIGNAL void reply( const qxredis::Reply& );
Q_SIGNAL void reply( const myx::redis::Reply& );
private:
Q_SLOT void readCharacter( const char );
@ -49,6 +50,8 @@ public:
Task& tos() { return( stack.last() ); }
}; // class Parser
} // namespace QRedis
} // namespace redis
#endif // QREDIS_PARSER_H
} // namespace myx
#endif // MYX_REDIS_PARSER_HPP_