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

« back to all changes in this revision

Viewing changes to nVidia/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
#include <cairo-dock.h>
 
25
 
 
26
typedef struct {
 
27
        gchar *cGPUName;
 
28
        gint iVideoRam;
 
29
        gchar *cDriverVersion;
 
30
        gint iGPUTemp;
 
31
} nVidiaData;
 
32
 
 
33
typedef enum {
 
34
        MY_APPLET_TEMP_NONE = 0,
 
35
        MY_APPLET_TEMP_ON_QUICKINFO,
 
36
        MY_APPLET_TEMP_ON_NAME,
 
37
        MY_APPLET_TEMP_ON_ICON,
 
38
        MY_APPLET_TEMP_NUMBER,
 
39
} nVidiaTemp;
 
40
 
 
41
//\___________ structure containing the applet's configuration parameters.
 
42
struct _AppletConfig {
 
43
        nVidiaTemp iDrawTemp;
 
44
        gchar *cBrokenUserImage;
 
45
        const gchar *cGThemePath;
 
46
        gchar *cWatermarkImagePath;
 
47
        gdouble fAlpha;
 
48
        
 
49
        gboolean bUseGraphic;
 
50
        CairoDockTypeGraph iGraphType;
 
51
        gboolean bMixGraph;
 
52
        gdouble fLowColor[3];
 
53
        gdouble fHigholor[3];
 
54
        gdouble fBgColor[4];
 
55
        
 
56
        gchar *defaultTitle;
 
57
        gchar *cSoundPath;
 
58
        gint iCheckInterval;
 
59
        gint iLowerLimit;
 
60
        gint iUpperLimit;
 
61
        gint iAlertLimit;
 
62
        gboolean bCardName;
 
63
        gboolean bAlert;
 
64
        gboolean bAlertSound;
 
65
} ;
 
66
 
 
67
//\___________ structure containing the applet's data, like surfaces, dialogs, results of calculus, etc.
 
68
struct _AppletData {
 
69
        nVidiaData pGPUData;
 
70
        gboolean bAcquisitionOK;
 
71
        gboolean bAlerted;
 
72
        gboolean bSettingsTooOld;
 
73
        gint iPreviousGPUTemp;
 
74
        CairoDockTask *pTask;
 
75
        CairoDockTask *pConfigTask;
 
76
        Gauge *pGauge;
 
77
        CairoDockGraph *pGraph;
 
78
} ;
 
79
 
 
80
 
 
81
#endif