~cairo-dock-team/ubuntu/oneiric/cairo-dock-plug-ins/2.3.0-2.1

« back to all changes in this revision

Viewing changes to Dbus/interfaces/vala/src/CDApplet.vapi

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2011-04-20 20:46:51 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20110420204651-ftnpzesj6uc7qeul
Tags: 2.3.0~1-0ubuntu1
* New Upstream Version (LP: #723995)
* Upstream short ChangeLog (since 2.3.0~0rc1):
 - Updated translations
 - Updated the integration of the new versions of kwin and compiz
    (Switcher, ShowDesktop, etc.)
 - Removed a lot of useless g_print
 - Updated a few plug-ins to fit with the new version of the API (gldit)
 - Fixed a few bugs
 - Updated MeMenu, MessagingMenu and Status-Notifier to works
    with the latest version of dbusmenu, etc.
* Switch to dpkg-source 3.0 (quilt) format
* debian/cairo-dock-plug-ins.install:
 - Added new files (interfaces for python, ruby, vala and mono)
* debian/control:
 - Added new dependences for new applets (sensors and zeitgeist)
    and new interfaces (python, valac, ruby and mono)
 - Updated the version of cairo-dock build-dependences
* debian/rules:
 - Added a new CMake flag to install python interface in debian/tmp
* Updated debian/watch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* CDApplet.vapi generated by valac 0.10.0, do not modify. */
 
2
 
 
3
[CCode (cprefix = "CairoDock", lower_case_cprefix = "cairo_dock_")]
 
4
namespace CairoDock {
 
5
        [CCode (cprefix = "CairoDockApplet", lower_case_cprefix = "cairo_dock_applet_")]
 
6
        namespace Applet {
 
7
                [CCode (cheader_filename = "CDApplet.h")]
 
8
                public class CDApplet : GLib.Object {
 
9
                        [CCode (cprefix = "CAIRO_DOCK_APPLET_CD_APPLET_CONTAINER_TYPE_", cheader_filename = "CDApplet.h")]
 
10
                        public enum ContainerType {
 
11
                                DOCK,
 
12
                                DESKLET
 
13
                        }
 
14
                        [CCode (cprefix = "CAIRO_DOCK_APPLET_CD_APPLET_DIALOG_KEY_", cheader_filename = "CDApplet.h")]
 
15
                        public enum DialogKey {
 
16
                                DIALOG_KEY_ENTER,
 
17
                                DIALOG_KEY_ESCAPE
 
18
                        }
 
19
                        [CCode (cprefix = "CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_", cheader_filename = "CDApplet.h")]
 
20
                        public enum EmblemPosition {
 
21
                                UPPER_LEFT,
 
22
                                LOWER_RIGHT,
 
23
                                LOWER_LEFT,
 
24
                                UPPER_RIGHT,
 
25
                                MIDDLE
 
26
                        }
 
27
                        [CCode (cprefix = "CAIRO_DOCK_APPLET_CD_APPLET_MENU_ITEM_ID_", cheader_filename = "CDApplet.h")]
 
28
                        public enum MenuItemId {
 
29
                                MAIN_MENU_ID
 
30
                        }
 
31
                        [CCode (cprefix = "CAIRO_DOCK_APPLET_CD_APPLET_MENU_ITEM_TYPE_", cheader_filename = "CDApplet.h")]
 
32
                        public enum MenuItemType {
 
33
                                MENU_ENTRY,
 
34
                                MENU_SUB_MENU,
 
35
                                MENU_SEPARATOR,
 
36
                                MENU_CHECKBOX,
 
37
                                MENU_RADIO_BUTTON
 
38
                        }
 
39
                        [CCode (cprefix = "CAIRO_DOCK_APPLET_CD_APPLET_SCREEN_POSITION_", cheader_filename = "CDApplet.h")]
 
40
                        public enum ScreenPosition {
 
41
                                BOTTOM,
 
42
                                TOP,
 
43
                                RIGHT,
 
44
                                LEFT
 
45
                        }
 
46
                        public string cAppletName;
 
47
                        public string cBusPath;
 
48
                        public string cConfFile;
 
49
                        public string cParentAppName;
 
50
                        public CairoDock.Applet.IApplet icon;
 
51
                        public CairoDock.Applet.ISubApplet sub_icons;
 
52
                        public CDApplet (string[] argv);
 
53
                        public virtual void begin ();
 
54
                        public virtual void end ();
 
55
                        public virtual void get_config (GLib.KeyFile keyfile);
 
56
                        public virtual void on_answer (GLib.Variant answer);
 
57
                        public virtual void on_answer_dialog (int iButton, GLib.Variant answer);
 
58
                        public virtual void on_build_menu ();
 
59
                        public virtual void on_build_menu_sub_icon (string cIconID);
 
60
                        public virtual void on_change_focus (bool bIsActive);
 
61
                        public virtual void on_click (int iState);
 
62
                        public virtual void on_click_sub_icon (int iState, string cIconID);
 
63
                        public virtual void on_drop_data (string cReceivedData);
 
64
                        public virtual void on_drop_data_sub_icon (string cReceivedData, string cIconID);
 
65
                        public virtual void on_menu_select (int iNumEntry);
 
66
                        public virtual void on_menu_select_sub_icon (int iNumEntry, string cIconID);
 
67
                        public virtual void on_middle_click ();
 
68
                        public virtual void on_middle_click_sub_icon (string cIconID);
 
69
                        public virtual void on_scroll (bool bScrollUp);
 
70
                        public virtual void on_scroll_sub_icon (bool bScrollUp, string cIconID);
 
71
                        public virtual void on_shortkey (string cKey);
 
72
                        public virtual void reload ();
 
73
                        public void run ();
 
74
                }
 
75
                [CCode (cheader_filename = "CDApplet.h")]
 
76
                [DBus (name = "org.cairodock.CairoDock.applet")]
 
77
                public interface IApplet : GLib.Object {
 
78
                        public abstract void AddDataRenderer (string cType, int iNbValues, string cTheme) throws GLib.IOError;
 
79
                        public abstract void AddMenuItems (GLib.HashTable<string,GLib.Variant>[] pItems) throws GLib.IOError;
 
80
                        public abstract void Animate (string cAnimation, int iRounds) throws GLib.IOError;
 
81
                        public abstract void BindShortkey (string[] cShortkeys) throws GLib.IOError;
 
82
                        public abstract void ControlAppli (string cApplicationClass) throws GLib.IOError;
 
83
                        public abstract void DemandsAttention (bool bStart, string cAnimation) throws GLib.IOError;
 
84
                        public abstract GLib.Variant Get (string cProperty) throws GLib.IOError;
 
85
                        public abstract GLib.HashTable<string,GLib.Variant> GetAll () throws GLib.IOError;
 
86
                        public abstract void PopupDialog (GLib.HashTable<string,GLib.Variant> hDialogAttributes, GLib.HashTable<string,GLib.Variant> hWidgetAttributes) throws GLib.IOError;
 
87
                        public abstract void RenderValues (double[] pValues) throws GLib.IOError;
 
88
                        public abstract void SetEmblem (string cImage, int iPosition) throws GLib.IOError;
 
89
                        public abstract void SetIcon (string cImage) throws GLib.IOError;
 
90
                        public abstract void SetLabel (string cLabel) throws GLib.IOError;
 
91
                        public abstract void SetQuickInfo (string cQuickInfo) throws GLib.IOError;
 
92
                        public abstract void ShowAppli (bool bShow) throws GLib.IOError;
 
93
                        public abstract void ShowDialog (string cMessage, int iDuration) throws GLib.IOError;
 
94
                        public signal void on_answer (GLib.Variant answer);
 
95
                        public signal void on_answer_dialog (int iButton, GLib.Variant answer);
 
96
                        public signal void on_build_menu ();
 
97
                        public signal void on_change_focus (bool bIsActive);
 
98
                        public signal void on_click (int iState);
 
99
                        public signal void on_drop_data (string cReceivedData);
 
100
                        public signal void on_menu_select (int iNumEntry);
 
101
                        public signal void on_middle_click ();
 
102
                        public signal void on_reload_module (bool bConfigHasChanged);
 
103
                        public signal void on_scroll (bool bScrollUp);
 
104
                        public signal void on_shortkey (string cKey);
 
105
                        public signal void on_stop_module ();
 
106
                }
 
107
                [CCode (cheader_filename = "CDApplet.h")]
 
108
                [DBus (name = "org.cairodock.CairoDock.subapplet")]
 
109
                public interface ISubApplet : GLib.Object {
 
110
                        public abstract void AddSubIcons (string[] pIconFields) throws GLib.IOError;
 
111
                        public abstract void Animate (string cAnimation, int iNbRounds, string cIconID) throws GLib.IOError;
 
112
                        public abstract void RemoveSubIcon (string cIconID) throws GLib.IOError;
 
113
                        public abstract void SetEmblem (string cImage, int iPosition, string cIconID) throws GLib.IOError;
 
114
                        public abstract void SetIcon (string cImage, string cIconID) throws GLib.IOError;
 
115
                        public abstract void SetLabel (string cLabel, string cIconID) throws GLib.IOError;
 
116
                        public abstract void SetQuickInfo (string cQuickInfo, string cIconID) throws GLib.IOError;
 
117
                        public abstract void ShowDialog (string message, int iDuration, string cIconID) throws GLib.IOError;
 
118
                        public signal void on_build_menu_sub_icon (string cIconID);
 
119
                        public signal void on_click_sub_icon (int iState, string cIconID);
 
120
                        public signal void on_drop_data_sub_icon (string cReceivedData, string cIconID);
 
121
                        public signal void on_middle_click_sub_icon (string cIconID);
 
122
                        public signal void on_scroll_sub_icon (bool bScrollUp, string cIconID);
 
123
                }
 
124
        }
 
125
}