~ubuntu-branches/ubuntu/saucy/shotwell/saucy-proposed

« back to all changes in this revision

Viewing changes to vapi/unique-3.0.vapi

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher, Alberto Mardegan
  • Date: 2013-03-19 19:34:19 UTC
  • mfrom: (1.2.18)
  • Revision ID: package-import@ubuntu.com-20130319193419-ed5bq7690j3c8pp1
Tags: 0.14.0-0ubuntu1
* New upstream version
* debian/control: drop leftover build-depends on libgnomevfs2-dev

[ Alberto Mardegan]
* debian/patches/06_uoa.patch: new version update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* unique-3.0.vapi generated by vapigen, do not modify. */
2
 
/* Pulled from http://permalink.gmane.org/gmane.linux.redhat.fedora.devel/147876 */
3
 
 
4
 
[CCode (cprefix = "Unique", lower_case_cprefix = "unique_")]
5
 
namespace Unique {
6
 
        [CCode (cheader_filename = "unique/uniqueapp.h")]
7
 
        public class App : GLib.Object {
8
 
                [CCode (has_construct_function = false)]
9
 
                public App (string name, string? startup_id);
10
 
                public void add_command (string command_name, int command_id);
11
 
                public bool is_running ();
12
 
                public Unique.Response send_message (int command_id, Unique.MessageData? message_data);
13
 
                public void watch_window (Gtk.Window window);
14
 
                [CCode (has_construct_function = false)]
15
 
                public App.with_commands (string name, string startup_id, ...);
16
 
                [NoAccessorMethod]
17
 
                public string name { owned get; construct; }
18
 
                [NoAccessorMethod]
19
 
                public Gdk.Screen screen { owned get; set construct; }
20
 
                [NoAccessorMethod]
21
 
                public string startup_id { owned get; construct; }
22
 
                public virtual signal Unique.Response message_received (int command, Unique.MessageData message_data, uint time_);
23
 
        }
24
 
        [CCode (cheader_filename = "unique/uniquebackend.h")]
25
 
        public class Backend : GLib.Object {
26
 
                public weak string name;
27
 
                public weak Unique.App parent;
28
 
                public weak Gdk.Screen screen;
29
 
                public weak string startup_id;
30
 
                public uint workspace;
31
 
                [CCode (has_construct_function = false)]
32
 
                protected Backend ();
33
 
                public static unowned Unique.Backend create ();
34
 
                public unowned string get_name ();
35
 
                public unowned Gdk.Screen get_screen ();
36
 
                public unowned string get_startup_id ();
37
 
                public uint get_workspace ();
38
 
                public virtual bool request_name ();
39
 
                public virtual Unique.Response send_message (int command_id, Unique.MessageData message_data, uint time_);
40
 
                public void set_name (string name);
41
 
                public void set_screen (Gdk.Screen screen);
42
 
                public void set_startup_id (string startup_id);
43
 
        }
44
 
        [Compact]
45
 
        [CCode (copy_function = "unique_message_data_copy", type_id = "UNIQUE_TYPE_MESSAGE_DATA", cheader_filename = "unique/uniquemessage.h")]
46
 
        public class MessageData {
47
 
                [CCode (has_construct_function = false)]
48
 
                public MessageData ();
49
 
                public unowned Unique.MessageData copy ();
50
 
                public unowned uchar[]  @get (size_t length);
51
 
                public unowned string get_filename ();
52
 
                public unowned Gdk.Screen get_screen ();
53
 
                public unowned string get_startup_id ();
54
 
                public unowned string get_text ();
55
 
                public unowned string get_uris ();
56
 
                public uint get_workspace ();
57
 
                public void  @set (uchar[] data, ssize_t length);
58
 
                public void set_filename (string filename);
59
 
                public bool set_text (string str, ssize_t length);
60
 
                public bool set_uris (string uris);
61
 
        }
62
 
        [CCode (cprefix = "UNIQUE_", cheader_filename = "unique/uniqueenumtypes.h")]
63
 
        public enum Command {
64
 
                INVALID,
65
 
                ACTIVATE,
66
 
                NEW,
67
 
                OPEN,
68
 
                CLOSE
69
 
        }
70
 
        [CCode (cprefix = "UNIQUE_RESPONSE_", cheader_filename = "unique/uniqueenumtypes.h")]
71
 
        public enum Response {
72
 
                INVALID,
73
 
                OK,
74
 
                CANCEL,
75
 
                FAIL,
76
 
                PASSTHROUGH
77
 
        }
78
 
        [CCode (cheader_filename = "unique/uniqueversion.h")]
79
 
        public const string API_VERSION_S;
80
 
        [CCode (cheader_filename = "unique/uniqueversion.h")]
81
 
        public const string DEFAULT_BACKEND_S;
82
 
        [CCode (cheader_filename = "unique/uniqueversion.h")]
83
 
        public const int MAJOR_VERSION;
84
 
        [CCode (cheader_filename = "unique/uniqueversion.h")]
85
 
        public const int MICRO_VERSION;
86
 
        [CCode (cheader_filename = "unique/uniqueversion.h")]
87
 
        public const int MINOR_VERSION;
88
 
        [CCode (cheader_filename = "unique/uniqueversion.h")]
89
 
        public const string PROTOCOL_VERSION_S;
90
 
        [CCode (cheader_filename = "unique/uniqueversion.h")]
91
 
        public const int VERSION_HEX;
92
 
        [CCode (cheader_filename = "unique/uniqueversion.h")]
93
 
        public const string VERSION_S;
94
 
}