| 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 |
#define CD_DISKS_NB_MAX_VALUES 10 |
| 27 |
|
| 28 |
typedef enum _CDDisksDisplayType { |
| 29 |
CD_DISKS_GAUGE=0, |
| 30 |
CD_DISKS_GRAPH, |
| 31 |
CD_DISKS_NB_TYPES |
| 32 |
} CDDisksDisplayType; |
| 33 |
|
| 34 |
|
| 35 |
typedef struct { |
| 36 |
//~ char cName [16]; |
| 37 |
gchar *cName; |
| 38 |
gboolean bInitialized; |
| 39 |
gboolean bAcquisitionOK; |
| 40 |
unsigned uMaxReadRate, uMaxWriteRate; |
| 41 |
unsigned uReadSpeed, uWriteSpeed; |
| 42 |
long long unsigned uReadBlocks, uWriteBlocks; |
| 43 |
//~ unsigned uID; |
| 44 |
} CDDiskSpeedData; |
| 45 |
|
| 46 |
|
| 47 |
struct _AppletConfig { |
| 48 |
gchar *defaultTitle; |
| 49 |
gchar *cGThemePath; |
| 50 |
RendererRotateTheme iRotateTheme; |
| 51 |
gchar *cWatermarkImagePath; // delete ? |
| 52 |
gdouble fAlpha; |
| 53 |
|
| 54 |
CDDisksDisplayType iDisplayType; |
| 55 |
CairoDockInfoDisplay iInfoDisplay; |
| 56 |
gint iCheckInterval; |
| 57 |
gdouble fSmoothFactor; |
| 58 |
|
| 59 |
CairoDockTypeGraph iGraphType; |
| 60 |
gboolean bMixGraph; |
| 61 |
gdouble fLowColor[3]; // Down |
| 62 |
gdouble fHigholor[3]; |
| 63 |
gdouble fBgColor[4]; |
| 64 |
//~ gdouble fLowColor2[3]; // Up |
| 65 |
//~ gdouble fHigholor2[3]; |
| 66 |
|
| 67 |
gchar **cDisks; |
| 68 |
gsize iNumberDisks; |
| 69 |
|
| 70 |
gchar **cParts; |
| 71 |
gsize iNumberParts; |
| 72 |
|
| 73 |
gchar *cSystemMonitorCommand; |
| 74 |
} ; |
| 75 |
|
| 76 |
struct _AppletData { |
| 77 |
GTimer *pClock; |
| 78 |
// shared memory |
| 79 |
gsize iNumberDisks; |
| 80 |
GList *lDisks; |
| 81 |
GList *lParts; |
| 82 |
|
| 83 |
// end of shared memory |
| 84 |
GldiTask *pPeriodicTask; |
| 85 |
DBusGProxy *dbus_proxy_nm; |
| 86 |
} ; |
| 87 |
|
| 88 |
|
| 89 |
#endif |