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

« back to all changes in this revision

Viewing changes to Status-Notifier/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:
 
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
//\___________ structure containing the applet's configuration parameters.
 
27
struct _AppletConfig {
 
28
        gboolean bSomeBooleanValue;
 
29
        gint iSomeIntegerValue;
 
30
        gchar *cSomeStringValue;
 
31
        } ;
 
32
 
 
33
 
 
34
typedef struct _statusNotifierHostObject statusNotifierHostObject;
 
35
 
 
36
struct _statusNotifierHostObject {
 
37
        GObject parent;
 
38
        DBusGConnection *connection;
 
39
};
 
40
typedef struct {
 
41
        GObjectClass parent_class;
 
42
} statusNotifierHostObjectClass;
 
43
 
 
44
 
 
45
 
 
46
typedef enum {
 
47
        CD_STATUS_PASSIVE=0,
 
48
        CD_STATUS_ACTIVE,
 
49
        CD_STATUS_NEEDS_ATTENTION,
 
50
        CD_NB_STATUS
 
51
        } CDStatusEnum;
 
52
 
 
53
typedef enum {
 
54
        CD_CATEGORY_APPLICATION_STATUS=0,
 
55
        CD_CATEGORY_COMMUNICATIONS,
 
56
        CD_CATEGORY_SYSTEM_SERVICES,
 
57
        CD_CATEGORY_HARDWARE,
 
58
        CD_NB_CATEGORIES
 
59
        } CDCategoryEnum;
 
60
 
 
61
typedef struct {
 
62
        gchar *cIconName;
 
63
        GPtrArray *pIconData;  // array of (INT, INT, ARRAY BYTE)
 
64
        gchar *cTitle;
 
65
        gchar *cMessage;  // can contain a subset of the HTML markup language
 
66
        } CDToolTip;
 
67
 
 
68
typedef struct {
 
69
        gchar *cService;
 
70
        DBusGProxy *pProxyProps;
 
71
        DBusGProxy *pProxy;
 
72
        gchar *cId;
 
73
        CDStatusEnum iStatus;
 
74
        CDCategoryEnum iCategory;
 
75
        Window iWindowId;
 
76
        gchar *cIconThemePath;
 
77
        gchar *cAttentionIconName;
 
78
        gchar *cAttentionMovieName;
 
79
        gchar *cOverlayIconName;
 
80
        CDToolTip *pToolTip;
 
81
        guint iSidPopupTooltip;
 
82
} CDStatusNotifierItemData;
 
83
 
 
84
 
 
85
 
 
86
//\___________ structure containing the applet's data, like surfaces, dialogs, results of calculus, etc.
 
87
struct _AppletData {
 
88
        statusNotifierHostObject *pMainObject;
 
89
        DBusGProxy *pProxyWatcher;
 
90
        gchar *cHostName;
 
91
        GList *pIcons;
 
92
        } ;
 
93
 
 
94
 
 
95
#endif