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

« back to all changes in this revision

Viewing changes to src/lastfmapplication.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:
143
143
    void setUser( const QString& username );
144
144
 
145
145
    QString languageCode() const { return m_lang.left( 2 ); }
146
 
    MetaData currentTrack() const { return m_currentTrack; } //TODO rename playingTrack()?
 
146
    MetaData currentTrack() const { return m_currentTrack; }
147
147
    State::App state() const { return m_state; }
148
148
 
149
149
    CPlayerListener& listener() const { return *m_listener; }
151
151
    Radio& radio() const { return *m_radio; }
152
152
    ScrobblerManager& scrobbler() const { return *m_scrobbler; }
153
153
 
154
 
    /** a blank string seems to mean, are you running? */
155
 
    static bool sendToInstance( const QString& = "" );
156
 
 
157
154
public slots:
158
155
    // Switch the app to a different language
159
156
    void setLanguage( QString langCode );
188
185
    void onNormanRequestDone( Request* r );
189
186
    void onPlaybackEndedTimerTimeout();
190
187
 
191
 
    #ifndef Q_WS_X11
192
 
    void onProxyTestComplete( bool );
193
 
    #endif
 
188
    void onProxyTestComplete( bool proxySet, WebRequestResultCode, bool authProxyTimerComplete = false );
 
189
    void onAuthenticatedProxyTimerTimeout();
194
190
 
195
191
private:
196
192
    void initLogger();
197
193
    void initTranslator();
198
194
    void registerMetaTypes();
 
195
    void loadExtensions();
 
196
 
199
197
    void parseCommand( const QString& request );
200
 
    void addMediaDevice( const QString& uid );
201
198
    void setState( State::App );
202
 
    void scrobbleMediaDeviceCache( const QString& username );
203
199
 
204
200
private:
205
201
    bool m_endSessionEmitted;
231
227
        QFile m_pidFile;
232
228
                
233
229
    class QTimer* m_playbackEndedTimer;
 
230
    
 
231
    bool m_extensionsLoaded;
234
232
 
235
233
    friend class DiagnosticsDialog;
 
234
    friend class IPodScrobbler; // needs access to emitting event
236
235
};
237
236
 
238
237