]> Some of my projects - anidbudpclient.git/commitdiff
Add missing default constructors for *Command classes.
authorAPTX <marek321@gmail.com>
Sat, 5 Feb 2011 21:56:40 +0000 (22:56 +0100)
committerAPTX <marek321@gmail.com>
Sat, 5 Feb 2011 21:56:40 +0000 (22:56 +0100)
mylistaddcommand.cpp
mylistaddcommand.h
rawcommand.cpp
rawcommand.h

index a22f0a6037bffc839eab5babb7d4c3040fbd372f..9355f36c2753ad5dd235e39848d8bade67aba38d 100644 (file)
 
 namespace AniDBUdpClient {
 
+MyListAddCommand::MyListAddCommand() : AbstractCommand()
+{
+       init();
+}
 
 MyListAddCommand::MyListAddCommand(int fid, bool edit) : AbstractCommand()
 {
index 0187487cc91bc1fc0e428b3d7e635fa2cccffc48..d2e78a16ed685ed512a91d063f64b8537e1d19e9 100644 (file)
@@ -39,6 +39,7 @@ public:
                Viewed = 1,
        };
 
+       MyListAddCommand();
        MyListAddCommand(int fid, bool edit);
        MyListAddCommand(const QByteArray &ed2k, qint64 size, bool edit);
        explicit MyListAddCommand(int lid);
index 8cce13238cbde0267e25b3a57737680a20849469..a442dba1b6667acdd8fa1022d27af9984acb35c6 100644 (file)
@@ -8,6 +8,16 @@ RawCommand::RawCommand(const QString &command, bool requireAuthentication) : Abs
        m_requiresSession = requireAuthentication;
 }
 
+void RawCommand::setCommand(const QString &command)
+{
+       m_command = command;
+}
+
+QString RawCommand::command() const
+{
+       return m_command;
+}
+
 void RawCommand::setRequiresSession(bool requiresSession)
 {
        m_requiresSession = requiresSession;
index 5b088be3729f17c761ceba3496094963c1340d06..3d822393bfa2c73ca6b89cf13b571b9e3d21d28a 100644 (file)
@@ -11,7 +11,10 @@ class ANIDBUDPCLIENTSHARED_EXPORT RawCommand : public AbstractCommand
 {
 public:
        typedef RawReply ReplyType;
-       RawCommand(const QString &command, bool requiresSession = true);
+       RawCommand(const QString &command = QString(), bool requiresSession = true);
+
+       void setCommand(const QString &command);
+       QString command() const;
 
        void setRequiresSession(bool requiresSession);