Switch to unified view

a/playlist/playlist.cpp b/playlist/playlist.cpp
...
...
61
    QList<int> remove_list;
61
    QList<int> remove_list;
62
    remove_list << row;
62
    remove_list << row;
63
    psl_remove_rows(remove_list);
63
    psl_remove_rows(remove_list);
64
}
64
}
65
65
66
void Playlist::psl_new_transport_state(int tps, const char *sst)
66
void Playlist::onRemoteTpState(int tps, const char *sst)
67
{
67
{
68
//    qDebug() << "Playlist::psl_new_transport_state " << s <<
68
//    qDebug() << "Playlist::onRemoteTpState " << s <<
69
//        " play_idx " << m_play_idx;
69
//        " play_idx " << m_play_idx;
70
//    if (m_play_idx >= 0 && m_play_idx < int(m_meta.size())) 
70
//    if (m_play_idx >= 0 && m_play_idx < int(m_meta.size())) 
71
//        qDebug() << "     meta[idx].pl_playing " << 
71
//        qDebug() << "     meta[idx].pl_playing " << 
72
//            m_meta[m_play_idx].pl_playing;
72
//            m_meta[m_play_idx].pl_playing;
73
73
74
    m_tpstate = tps;
74
    m_tpstate = tps;
75
    switch (tps) {
75
    switch (tps) {
76
    case AUDIO_UNKNOWN:
76
    case AUDIO_UNKNOWN:
77
    case AUDIO_STOPPED:
77
    case AUDIO_STOPPED:
78
    default:
78
    default:
79
        //qDebug() << "Playlist::psl_new_transport_state: STOPPED";
79
        //qDebug() << "Playlist::onRemoteTpState: STOPPED";
80
        emit sig_stopped();
80
        emit sig_stopped();
81
        break;
81
        break;
82
    case AUDIO_PLAYING:
82
    case AUDIO_PLAYING:
83
        //qDebug() << "Playlist::psl_new_transport_state: PLAYING";
83
        //qDebug() << "Playlist::onRemoteTpState: PLAYING";
84
        emit sig_playing();
84
        emit sig_playing();
85
        break;
85
        break;
86
    case AUDIO_PAUSED:
86
    case AUDIO_PAUSED:
87
        //qDebug() << "Playlist::psl_new_transport_state: PAUSED";
87
        //qDebug() << "Playlist::onRemoteTpState: PAUSED";
88
        emit sig_paused();
88
        emit sig_paused();
89
        break;
89
        break;
90
    }
90
    }
91
    psl_new_transport_state_impl(tps, sst);
91
    onRemoteTpState_impl(tps, sst);
92
}
92
}
93
93
94
Playlist_Mode Playlist::mode()
94
Playlist_Mode Playlist::mode()
95
{
95
{
96
    return CSettingsStorage::getInstance()->getPlaylistMode();
96
    return CSettingsStorage::getInstance()->getPlaylistMode();