BaseCommand

Defines common features for media commands, such as error message storage and retrieval.

Synopsis:

#include <qplayer/qplayer.h>

namespace QPlayer {

    class BaseCommand : public QObject
    {
        Q_OBJECT

    public:

        explicit BaseCommand();

        ~BaseCommand();
    
        void setErrorMessage( QString message );

        QString errorMessage() const;
    
    signals:

        void complete( BaseCommand *command );
        // Must be overridden in derived class

        void error( BaseCommand *command );
        // Must be overridden in derived class
    
    };

}

Library:

libqplayer

Description:

Defines common features for media commands, such as error message storage and retrieval. All other command classes are derived from this base class and must override the complete and error signals. The BaseCommand class is an abstract class and shouldn't be used directly.