TrackSessionInfoCommand

Stores information about a tracksession.

Synopsis:

#include <qplayer/qplayer.h>

namespace QPlayer {

    class TrackSessionInfoCommand : public BaseCommand
    {
        Q_OBJECT

    public:

        explicit TrackSessionInfoCommand();
    
        inline TrackSession result()
        {
            return m_result;
        }
    
        inline void setResult( TrackSession result )
        {
            m_result = result;
        }
    
    signals:
    
        void complete( TrackSessionInfoCommand *command );
    
        void error( TrackSessionInfoCommand *command );
    
    };
    
}

Library:

libqplayer

Description:

Stores information about a tracksession. When you create a TrackSessionInfoCommand object and pass in its reference in a getCurrentTrackSessionInfo() call, the library fills in this object with information on the active tracksession for the underlying player.

The object emits a complete signal to notify clients when the library finishes writing the tracksession information. Clients can then call the result() method to retrieve the information.

If the getCurrentTrackSessionInfo() command fails, the object emits an error signal. You can then call errorMessage() to retrieve a QString describing the error.