Cleaned up the Request class a bit.

This commit is contained in:
Nathan Osman 2013-08-01 17:12:37 -07:00
parent fa702fbe15
commit 1374064c0b
2 changed files with 4 additions and 5 deletions

View File

@ -3,7 +3,6 @@
#include <QObject> #include <QObject>
#include <QScopedPointer> #include <QScopedPointer>
#include <QVariantList>
#include <qredis/reply.h> #include <qredis/reply.h>
#include "qredis_export.h" #include "qredis_export.h"
@ -13,7 +12,7 @@ namespace QRedis
class QREDIS_EXPORT RequestPrivate; class QREDIS_EXPORT RequestPrivate;
/** /**
* @brief Represents a request and its reply * @brief Represents a Redis command and its response
*/ */
class QREDIS_EXPORT Request : public QObject class QREDIS_EXPORT Request : public QObject
{ {
@ -22,8 +21,8 @@ namespace QRedis
public: public:
/** /**
* @brief Creates a request * @brief Initializes the request
* @param parent * @param parent the parent QObject
*/ */
explicit Request(QObject * parent = 0); explicit Request(QObject * parent = 0);

View File

@ -33,5 +33,5 @@ bool Request::waitForReply(int msecs)
* If the timer fires, the return value will be 0. * If the timer fires, the return value will be 0.
* Otherwise, quitEventLoop() will terminate the loop with 1. * Otherwise, quitEventLoop() will terminate the loop with 1.
*/ */
return d->loop.exec(); return d->loop.exec(QEventLoop::ExcludeUserInputEvents);
} }