~ubuntu-branches/ubuntu/saucy/cairo-dock-plug-ins/saucy

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-08-26 21:07:39 UTC
  • Revision ID: james.westby@ubuntu.com-20090826210739-gyjuuqezrzuluao4
Tags: upstream-2.0.8.1
ImportĀ upstreamĀ versionĀ 2.0.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
* This file is a part of the Cairo-Dock project
 
3
*
 
4
* Copyright : (C) see the 'copyright' file.
 
5
* E-mail    : see the 'copyright' file.
 
6
*
 
7
* This program is free software; you can redistribute it and/or
 
8
* modify it under the terms of the GNU General Public License
 
9
* as published by the Free Software Foundation; either version 3
 
10
* of the License, or (at your option) any later version.
 
11
*
 
12
* This program is distributed in the hope that it will be useful,
 
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
* GNU General Public License for more details.
 
16
* You should have received a copy of the GNU General Public License
 
17
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
18
*/
 
19
 
 
20
 
 
21
#ifndef __CD_APPLET_STRUCT__
 
22
#define  __CD_APPLET_STRUCT__
 
23
 
 
24
#define CD_APPLET_MULTI_INSTANCE
 
25
#include <cairo-dock.h>
 
26
 
 
27
 
 
28
typedef enum {
 
29
        MY_APPLET_NOTHING = 0,
 
30
        MY_APPLET_TIME_ELAPSED,
 
31
        MY_APPLET_TIME_LEFT,
 
32
        MY_APPLET_TRACK,
 
33
        MY_APPLET_NB_QUICK_INFO_TYPE
 
34
} MyAppletQuickInfoType;
 
35
 
 
36
typedef enum {
 
37
        MY_XMMS = 0,
 
38
        MY_AUDACIOUS,
 
39
        MY_BANSHEE,
 
40
        MY_EXAILE,
 
41
        MY_NB_PLAYERS
 
42
} MyPlayerType;
 
43
 
 
44
typedef enum {
 
45
        PLAYER_NONE = 0,
 
46
        PLAYER_PLAYING,
 
47
        PLAYER_PAUSED,
 
48
        PLAYER_STOPPED,
 
49
        PLAYER_BROKEN,
 
50
        PLAYER_NB_STATUS
 
51
} MyPlayerStatus;
 
52
 
 
53
typedef enum {
 
54
        MY_DESKLET_INFO = 0,
 
55
        MY_DESKLET_INFO_AND_CONTROLER,
 
56
        MY_DESKLET_CAROUSSEL,
 
57
        MY_DESKLET_CONTROLER,
 
58
        MY_DESKLET_NB_MODE
 
59
} MyExtendedMode;
 
60
 
 
61
struct _AppletConfig{
 
62
        gchar *defaultTitle;
 
63
        gboolean enableDialogs;
 
64
        gboolean extendedDesklet;
 
65
        gdouble timeDialogs;
 
66
        gboolean enableAnim;
 
67
        gchar *changeAnimation;
 
68
        MyAppletQuickInfoType quickInfoType;
 
69
        gchar *cUserImage[PLAYER_NB_STATUS];
 
70
        MyPlayerType iPlayer;
 
71
        gboolean bStealTaskBarIcon;
 
72
        gboolean bIconBubble;
 
73
        MyExtendedMode iExtendedMode;
 
74
} ;
 
75
 
 
76
struct _AppletData {
 
77
        cairo_surface_t *pSurfaces[PLAYER_NB_STATUS];
 
78
        gchar *playingTitle, *previousPlayingTitle;
 
79
        gchar *cQuickInfo, *cPreviousQuickInfo;
 
80
        MyPlayerStatus playingStatus, previousPlayingStatus;
 
81
        gint iTrackNumber, iPreviousTrackNumber;
 
82
        gint iCurrentTime, iPreviousCurrentTime;
 
83
        gint iSongLength;
 
84
        CairoDockTask *pTask;
 
85
} ;
 
86
 
 
87
#endif