~ubuntu-branches/ubuntu/vivid/guayadeque/vivid

« back to all changes in this revision

Viewing changes to src/AudioScrobble.h

  • Committer: Package Import Robot
  • Author(s): Artur Rona
  • Date: 2014-12-29 01:09:05 UTC
  • mfrom: (12.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20141229010905-r5m8w9224bt0nm05
Tags: 0.3.7~ds0-2.1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - debian/control, debian/patches/05-diable-indicate.patch:
    + Disable indicator, as mpris only is needed for sound
      menu integration?!

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// -------------------------------------------------------------------------------- //
2
 
//      Copyright (C) 2008-2012 J.Rios
 
2
//      Copyright (C) 2008-2013 J.Rios
3
3
//      anonbeat@gmail.com
4
4
//
5
5
//    This Program is free software; you can redistribute it and/or modify
92
92
 
93
93
  public:
94
94
                                guAudioScrobbleSender( guDbLibrary * db, const wxString &serverurl );
95
 
                                ~guAudioScrobbleSender();
 
95
                                virtual ~guAudioScrobbleSender();
96
96
 
97
97
    void                        SetUserName( const wxString &username ) { m_UserName = username; }
98
98
    void                        SetPassword( const wxString &password ) { m_Password = password; }
133
133
};
134
134
 
135
135
class guMainFrame;
 
136
class guASNowPlayingThread;
136
137
 
137
138
// -------------------------------------------------------------------------------- //
138
139
class guAudioScrobble : public wxEvtHandler
147
148
        guASPlayedThread *          m_PlayedThread;
148
149
        bool                        m_PendingNowPlaying;
149
150
        guAS_SubmitInfo *           m_NowPlayingInfo;
 
151
        guASNowPlayingThread *      m_NowPlayingThread;
150
152
        wxMutex                     m_NowPlayingInfoMutex;
151
153
 
152
154
    public :
159
161
    void                        SendNowPlayingTrack( const guCurrentTrack &track );
160
162
    void                        SendPlayedTrack( const guCurrentTrack &track );
161
163
    void                        EndPlayedThread( void );
 
164
    void                        EndNowPlayingThread( void );
162
165
 
163
166
    void                        OnConfigUpdated( void );
164
167
    bool                        IsOk( void );