Switch to unified view

a/notifications/audioscrobbler.h b/notifications/audioscrobbler.h
...
...
64
    bool checkFailure(std::string response);
64
    bool checkFailure(std::string response);
65
    
65
    
66
    // Current song playing. maybeScrobble uses this to decide when to
66
    // Current song playing. maybeScrobble uses this to decide when to
67
    // queue data for scrobbling
67
    // queue data for scrobbling
68
    MetaData m_curmeta;
68
    MetaData m_curmeta;
69
    time_t   m_curpos;    // current position in song
69
    time_t   m_curpos{0};    // current position in song
70
    time_t   m_starttime; // time started playing
70
    time_t   m_starttime{0}; // time started playing
71
    bool     m_sent;
71
    bool     m_sent{false};
72
    
72
    
73
    // Songs which need scrobbling. The queue can grow if Last.FM is
73
    // Songs which need scrobbling. The queue can grow if Last.FM is
74
    // unaccessible for a time, but we don't save it to disk for now
74
    // unaccessible for a time, but we don't save it to disk for now
75
    // (unlike MPDAS).
75
    // (unlike MPDAS).
76
    QHash<QString, MetaData> m_queue;
76
    QHash<QString, MetaData> m_queue;
77
77
78
    // Last try processing the queue. We wait 5mn after a failure
78
    // Last try processing the queue. We wait 5mn after a failure
79
    time_t m_lastqfail;
79
    time_t m_lastqfail{0};
80
    // Current error count. We try to reconnect after 3
80
    // Current error count. We try to reconnect after 3
81
    int m_failcount;
81
    int m_failcount{0};
82
    // Logged in ?
82
    // Logged in ?
83
    bool m_authed;
83
    bool m_authed{false};
84
    std::string m_sessionid;
84
    std::string m_sessionid;
85
    QNetworkAccessManager *m_netman;
85
    QNetworkAccessManager *m_netman{0};
86
    bool m_netactive;
86
    bool m_netactive{false};
87
};
87
};
88
88
89
#endif /* _AUDIOSCROBBLER_H_INCLUDED_ */
89
#endif /* _AUDIOSCROBBLER_H_INCLUDED_ */