~elementary-apps/pantheon-chat/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/* telepathy-logger.vapi generated by vapigen, do not modify. */

[CCode (cprefix = "Tpl", gir_namespace = "TelepathyLogger", gir_version = "0.2", lower_case_cprefix = "tpl_")]
namespace Tpl {
	[CCode (cheader_filename = "telepathy-logger/telepathy-logger.h", type_id = "tpl_call_event_get_type ()")]
	public class CallEvent : Tpl.Event {
		[CCode (has_construct_function = false)]
		protected CallEvent ();
		public unowned string get_detailed_end_reason ();
		public GLib.TimeSpan get_duration ();
		public unowned Tpl.Entity get_end_actor ();
		public TelepathyGLib.CallStateChangeReason get_end_reason ();
		public string detailed_end_reason { get; construct; }
		public int64 duration { get; construct; }
		public Tpl.Entity end_actor { get; construct; }
		public int end_reason { get; construct; }
	}
	[CCode (cheader_filename = "telepathy-logger/telepathy-logger.h")]
	[Compact]
	public class CallEventPriv {
	}
	[CCode (cheader_filename = "telepathy-logger/telepathy-logger.h", type_id = "tpl_entity_get_type ()")]
	public class Entity : GLib.Object {
		[CCode (has_construct_function = false)]
		public Entity (string id, Tpl.EntityType type, string alias, string avatar_token);
		[CCode (has_construct_function = false)]
		public Entity.from_room_id (string room_id);
		[CCode (has_construct_function = false)]
		public Entity.from_tp_contact (TelepathyGLib.Contact contact, Tpl.EntityType type);
		public unowned string get_alias ();
		public unowned string get_avatar_token ();
		public Tpl.EntityType get_entity_type ();
		public unowned string get_identifier ();
		public string alias { get; construct; }
		public string avatar_token { get; construct; }
		public string identifier { get; construct; }
		[NoAccessorMethod]
		public int type { get; construct; }
	}
	[CCode (cheader_filename = "telepathy-logger/telepathy-logger.h")]
	[Compact]
	public class EntityPriv {
	}
	[CCode (cheader_filename = "telepathy-logger/telepathy-logger.h", type_id = "tpl_event_get_type ()")]
	public abstract class Event : GLib.Object {
		[CCode (has_construct_function = false)]
		protected Event ();
		public bool equal (Tpl.Event data);
		public unowned TelepathyGLib.Account get_account ();
		public unowned string get_account_path ();
		public unowned Tpl.Entity get_receiver ();
		public unowned Tpl.Entity get_sender ();
		public int64 get_timestamp ();
		public TelepathyGLib.Account account { get; construct; }
		public string account_path { get; }
		[NoAccessorMethod]
		public string channel_path { owned get; construct; }
		public Tpl.Entity receiver { get; construct; }
		public Tpl.Entity sender { get; construct; }
		public int64 timestamp { get; construct; }
	}
	[CCode (cheader_filename = "telepathy-logger/telepathy-logger.h")]
	[Compact]
	public class EventPriv {
	}
	[CCode (cheader_filename = "telepathy-logger/telepathy-logger.h", type_id = "tpl_log_manager_get_type ()")]
	public class LogManager : GLib.Object {
		[CCode (has_construct_function = false)]
		protected LogManager ();
		public static Tpl.LogManager dup_singleton ();
		public static GLib.Quark errors_quark ();
		public bool exists (TelepathyGLib.Account account, Tpl.Entity target, int type_mask);
		public async bool get_dates_async (TelepathyGLib.Account account, Tpl.Entity target, int type_mask, out GLib.List<GLib.Date?> dates) throws GLib.Error;
		public async bool get_entities_async (TelepathyGLib.Account account, out GLib.List<Tpl.Entity> entities) throws GLib.Error;
		public async bool get_events_for_date_async (TelepathyGLib.Account account, Tpl.Entity target, int type_mask, GLib.Date date, out GLib.List<Tpl.Event> events) throws GLib.Error;
		public async bool get_filtered_events_async (TelepathyGLib.Account account, Tpl.Entity target, int type_mask, uint num_events, Tpl.LogEventFilter? filter, out GLib.List<Tpl.Event> events) throws GLib.Error;
		public async void search_async (string text, int type_mask);
		public Tpl.LogWalker walk_filtered_events (TelepathyGLib.Account account, Tpl.Entity target, int type_mask, Tpl.LogEventFilter? filter);
	}
	[CCode (cheader_filename = "telepathy-logger/telepathy-logger.h", type_id = "tpl_log_walker_get_type ()")]
	public class LogWalker : GLib.Object {
		[CCode (has_construct_function = false)]
		protected LogWalker ();
		public async bool get_events_async (uint num_events, out GLib.List<Tpl.Event> events) throws GLib.Error;
		public bool is_end ();
		public bool is_start ();
		public async bool rewind_async (uint num_events) throws GLib.Error;
		[NoAccessorMethod]
		public void* filter { get; construct; }
		[NoAccessorMethod]
		public void* filter_data { get; construct; }
	}
	[CCode (cheader_filename = "telepathy-logger/telepathy-logger.h")]
	[Compact]
	public class LogWalkerPriv {
	}
	[CCode (cheader_filename = "telepathy-logger/telepathy-logger.h", type_id = "tpl_text_event_get_type ()")]
	public class TextEvent : Tpl.Event {
		[CCode (has_construct_function = false)]
		protected TextEvent ();
		public int64 get_edit_timestamp ();
		public unowned string get_message ();
		public unowned string get_message_token ();
		public TelepathyGLib.ChannelTextMessageType get_message_type ();
		public unowned GLib.List<Tpl.TextEvent> get_supersedes ();
		public unowned string get_supersedes_token ();
		public int64 edit_timestamp { get; construct; }
		public string message { get; construct; }
		public string message_token { get; construct; }
		public uint message_type { get; construct; }
		public string supersedes_token { get; construct; }
	}
	[CCode (cheader_filename = "telepathy-logger/telepathy-logger.h")]
	[Compact]
	public class TextEventPriv {
	}
	[CCode (cheader_filename = "telepathy-logger/telepathy-logger.h", has_type_id = false)]
	public struct LogSearchHit {
		public weak TelepathyGLib.Account account;
		public weak Tpl.Entity target;
		public GLib.Date date;
	}
	[CCode (cheader_filename = "telepathy-logger/telepathy-logger.h", cprefix = "TPL_ENTITY_", has_type_id = false)]
	public enum EntityType {
		UNKNOWN,
		CONTACT,
		ROOM,
		SELF
	}
	[CCode (cheader_filename = "telepathy-logger/telepathy-logger.h", cprefix = "TPL_EVENT_MASK_", has_type_id = false)]
	[Flags]
	public enum EventTypeMask {
		TEXT,
		CALL,
		ANY
	}
	[CCode (cheader_filename = "telepathy-logger/telepathy-logger.h", cprefix = "TPL_LOG_MANAGER_ERROR_ADD_", has_type_id = false)]
	public enum LogManagerError {
		[CCode (cname = "TPL_LOG_MANAGER_ERROR_ADD_EVENT")]
		LOG_MANAGER_ERROR_ADD_EVENT
	}
	[CCode (cheader_filename = "telepathy-logger/telepathy-logger.h", instance_pos = 1.9)]
	public delegate bool LogEventFilter (Tpl.Event event);
}