Added Lexer class to QRedis namespace.

This commit is contained in:
Nathan Osman 2013-08-01 17:55:32 -07:00
parent 1374064c0b
commit 744781a03d
2 changed files with 35 additions and 30 deletions

View File

@ -1,5 +1,7 @@
#include "lexer.h" #include "lexer.h"
using namespace QRedis;
Lexer::Lexer(QIODevice * device, QObject * parent) Lexer::Lexer(QIODevice * device, QObject * parent)
: QObject(parent), device(device), state(DoingNothing), crlf(0) : QObject(parent), device(device), state(DoingNothing), crlf(0)
{ {

View File

@ -1,11 +1,13 @@
#ifndef LEXER_H #ifndef QREDIS_LEXER_H
#define LEXER_H #define QREDIS_LEXER_H
#include <QIODevice> #include <QIODevice>
#include <QObject> #include <QObject>
class Lexer : public QObject namespace QRedis
{ {
class Lexer : public QObject
{
Q_OBJECT Q_OBJECT
public: public:
@ -42,6 +44,7 @@ class Lexer : public QObject
int crlf; int crlf;
int length; int length;
}; };
}
#endif // LEXER_H #endif // QREDIS_LEXER_H