~ubuntu-branches/ubuntu/quantal/cairo-dock-plug-ins/quantal-201208191523

« back to all changes in this revision

Viewing changes to musicPlayer/src/applet-struct.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2010-08-10 00:05:57 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20100810000557-pfxoz5w7hbyclcqh
Tags: 2.2.0~0beta4-0ubuntu1
* New Upstream Version (LP: #614625)
* Fixed a few bugs on LP:
 - LP: #483963: Dustbin applet does not display trashes on all volumes
 - LP: #485159: Some apps have problem with Systray
 - LP: #500677: ~/.xsession-errors is too much used by CD
 - LP: #500979: Shortcuts: the order gets messed up
 - LP: #521531: Mail: crashes on Maildir
 - LP: #519915: GTG: create a new applet to control GTG
 - LP: #526138: GMenu doesn't handle desktop file exec strings properly
 - LP: #531317: CMake: Added an error if the prefix of 'cairo-dock-plugins'
                 is not the same 'cairo-dock-core'
 - LP: #531319: CMake: check the version of 'cairo-dock' when building
                 'cairo-dock-plugins'
 - LP: #537115: Click at the position where icon lavel was, the icon
                 and dock still receive the event
 - LP: #537943: Terminal applet shortkey behaviour
 - LP: #538637: Trash applet doesn't create .trashinfo files on XFCE
 - More details on the 'ChangeLog' file
* debian/rules:
 - Autotools has been replaced by CMake
 - cdbs is now used.
* debian/copyright:
 - Updated with the new applets
* debian/control:
 - Autotools has been replaced by CMake
 - Added libcurl4-gnutls-dev, libindicator-dev, libdbusmenu-glib-dev
   libido-0.1-dev, libical-dev, libdbusmenu-gtk-dev as Build-deps
 - Bump Standard-Version to 3.9.1
 - Wget is required for dnd2share applet
 - Added the exact realease for 'cairo-dock-dev' in order to prevent any
    build error if this package is not already available (thx to didrocks)
* debian/cairo-dock-plug-ins*.install:
 - All sonames are now installed into lib32 or lib64 (lib*)

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        MP_EXAILE3,
35
35
        MP_LISTEN,
36
36
        MP_SONGBIRD,
 
37
        MP_QMMP,
 
38
        MP_GUAYADEQUE,
 
39
        MP_CLEMENTINE,
37
40
        MP_QUODLIBET,
38
41
        MP_BANSHEE,
39
42
        MP_AUDACIOUS,
79
82
 
80
83
//A remplir lors du configure pour les players utilisant DBus.
81
84
typedef struct {
82
 
        gchar *service;
83
 
        gchar *path;
84
 
        gchar *interface;
85
 
        gchar *path2;
86
 
        gchar *interface2;
87
 
        gchar *play;
88
 
        gchar *pause;
89
 
        gchar *play_pause;
90
 
        gchar *stop;
91
 
        gchar *next;
92
 
        gchar *previous;
93
 
        gchar *get_status;
94
 
        gchar *get_title;
95
 
        gchar *get_artist;
96
 
        gchar *get_album;
97
 
        gchar *get_cover_path;
98
 
        gchar *duration;
99
 
        gchar *current_position;
 
85
        const gchar *service;
 
86
        const gchar *path;
 
87
        const gchar *interface;
 
88
        const gchar *path2;
 
89
        const gchar *interface2;
 
90
        const gchar *play;
 
91
        const gchar *pause;
 
92
        const gchar *play_pause;
 
93
        const gchar *stop;
 
94
        const gchar *next;
 
95
        const gchar *previous;
 
96
        const gchar *get_status;
 
97
        const gchar *get_title;
 
98
        const gchar *get_artist;
 
99
        const gchar *get_album;
 
100
        const gchar *get_cover_path;
 
101
        const gchar *duration;
 
102
        const gchar *current_position;
100
103
} MusicPlayerDBus;
101
104
 
102
105
struct _MusicPlayerHandeler {
105
108
        MusicPlayerConfigureFunc                configure;
106
109
        MusicPlayerControlerFunc                control;
107
110
        MusicPlayerGetCoverFunc                 get_cover;
108
 
        gchar *cMprisService;  // nom du service DBus si le lecteur respecte la norme MPRIS.
109
 
        gchar *appclass;  // classe de l'appli.
110
 
        gchar *name;  // nom du backend.
111
 
        gchar *launch;  // commande lancant le lecteur.
 
111
        const gchar *cMprisService;  // nom du service DBus si le lecteur respecte la norme MPRIS.
 
112
        const gchar *appclass;  // classe de l'appli.
 
113
        const gchar *name;  // nom du backend.
 
114
        const gchar *launch;  // commande lancant le lecteur.
112
115
        gchar *cCoverDir;  // repertoire utilisateur de l'appli, contenant les couvertures.
113
116
        gboolean bSeparateAcquisition;  // Sert a activer le thread ou pas (TRUE = activé; False = désactivé)
114
117
        MySupportedPlayers iPlayer;  // ID du backend.
166
169
        gchar *cAlbum;
167
170
        gchar* cPlayingUri;
168
171
        MyPlayerStatus iPlayingStatus, pPreviousPlayingStatus;
169
 
        gint iTrackNumber, iPreviousTrackNumber;
170
 
        gint iCurrentTime, iPreviousCurrentTime;
 
172
        gint iTrackNumber, iPreviousTrackNumber;  // track number = position dans la play-list, et non pas numero de piste dans l'album (qui ne nous interesse pas).
 
173
        gint iCurrentTime, iPreviousCurrentTime, iGetTimeFailed;
171
174
        gint iSongLength;
172
175
        gint iRating;
173
176
        gint iTrackListLength;
178
181
        gboolean dbus_enable;
179
182
        gboolean dbus_enable_shell;
180
183
        gboolean bIsRunning;
 
184
        DBusGProxyCall *pDetectPlayerCall;
181
185
        
182
186
        //Données de dessin
183
187
        cairo_surface_t *pSurfaces[PLAYER_NB_STATUS];