~ubuntu-branches/ubuntu/lucid/lastfm/lucid

« back to all changes in this revision

Viewing changes to src/libFingerprint/FingerprintQueryer.h

  • Committer: Bazaar Package Importer
  • Author(s): Devid Filoni
  • Date: 2008-07-14 16:46:20 UTC
  • mfrom: (1.1.7 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080714164620-67hoz9fs177wpgmr
Tags: 1:1.5.1.31879.dfsg-1ubuntu1
* Merge from Debian unstable (LP: #248100), remaining changes:
  - debian/rules: add dh_icons call
  + debian/control:
    - switch iceweasel to firefox in Recommends field
    - modify debhelper version to >= 5.0.51~
    - modify Maintainer to Ubuntu MOTU Developers

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
/**
35
35
 *   @author <erik@last.fm>
 
36
 *   @brief Assigns the fpId to the TrackInfo object
 
37
 *   Max and Jono summarising this:
 
38
 *   Checks Collection::instance() for a fingerprint id for this track based on track.path()
 
39
 *   If exists, does nothing
 
40
 *   If we have no fpId we then generate the short id and submit it to last.fm
 
41
 *
 
42
 *   Thus the name of this class is crap :P --mxcl
 
43
 *
36
44
 **/
37
45
class FINGERPRINT_DLLEXPORT FingerprintQueryer : public QObject
38
46
{
54
62
        void setUsername( QString user ) { m_username = user; }
55
63
        void setPasswordMd5( QString pass ) { m_passwordMd5 = pass; }
56
64
        void setPasswordMd5Lower( QString passl ) { m_passwordMd5Lower = passl; }
57
 
        
58
 
        QString username() { return m_username; }
59
 
        QString passwordMd5() { return m_passwordMd5; }
60
 
        QString passwordMd5Lower() { return m_passwordMd5Lower; }
 
65
        void setVersion( QString v ) { m_version = v; }
61
66
        
62
67
        bool isStopped();
63
68
        
68
73
        
69
74
    signals:
70
75
        void trackFingerprintingStarted( TrackInfo );
 
76
        /** thanks for ths documentation */
71
77
        void trackFingerprinted( TrackInfo, bool fullFpRequested = false );
72
78
        void cantFingerprintTrack( TrackInfo track, QString reason );
73
79
        
98
104
        FingerprintQueryRequest* m_currentQuery;
99
105
 
100
106
        TrackInfo m_track;
101
 
        QString m_username,m_passwordMd5,m_passwordMd5Lower;
 
107
        QString m_username, m_passwordMd5, m_passwordMd5Lower, m_version;
102
108
        bool m_stop;
103
109
        int m_serversBusyCounter;
104
110
        int m_networkFailCounter;