-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFclip_adaptor.h
312 lines (285 loc) · 10.2 KB
/
Fclip_adaptor.h
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
/*
* This file was automatically generated by dbusxx-xml2cpp; DO NOT EDIT!
*/
#ifndef __dbusxx__Fclip_adaptor_h__ADAPTOR_MARSHAL_H
#define __dbusxx__Fclip_adaptor_h__ADAPTOR_MARSHAL_H
#include <dbus-c++/dbus.h>
#include <cassert>
namespace com {
namespace fclip {
class Fclip_adaptor
: public ::DBus::InterfaceAdaptor
{
public:
Fclip_adaptor()
: ::DBus::InterfaceAdaptor("com.fclip.Fclip")
{
register_method(Fclip_adaptor, Add, _Add_stub);
register_method(Fclip_adaptor, Remove, _Remove_stub);
register_method(Fclip_adaptor, Clear, _Clear_stub);
register_method(Fclip_adaptor, ListFilesToStream, _ListFilesToStream_stub);
register_method(Fclip_adaptor, DirectoryListing, _DirectoryListing_stub);
register_method(Fclip_adaptor, LowestCommonAncestor, _LowestCommonAncestor_stub);
register_method(Fclip_adaptor, Stash, _Stash_stub);
register_method(Fclip_adaptor, Unstash, _Unstash_stub);
register_method(Fclip_adaptor, ListStash, _ListStash_stub);
register_method(Fclip_adaptor, DropStash, _DropStash_stub);
register_method(Fclip_adaptor, ClearStash, _ClearStash_stub);
}
::DBus::IntrospectedInterface *introspect() const
{
static ::DBus::IntrospectedArgument Add_args[] =
{
{ "files", "as", true },
{ "recursive", "b", true },
{ "messages", "as", false },
{ "success", "b", false },
{ 0, 0, 0 }
};
static ::DBus::IntrospectedArgument Remove_args[] =
{
{ "files", "as", true },
{ "recursive", "b", true },
{ "messages", "as", false },
{ "success", "b", false },
{ 0, 0, 0 }
};
static ::DBus::IntrospectedArgument Clear_args[] =
{
{ 0, 0, 0 }
};
static ::DBus::IntrospectedArgument ListFilesToStream_args[] =
{
{ "directory", "s", true },
{ "absolute", "b", true },
{ "stream", "s", true },
{ 0, 0, 0 }
};
static ::DBus::IntrospectedArgument DirectoryListing_args[] =
{
{ "directory", "s", true },
{ "files", "a(sbb)", false },
{ "recursive", "b", false },
{ "messages", "as", false },
{ "success", "b", false },
{ 0, 0, 0 }
};
static ::DBus::IntrospectedArgument LowestCommonAncestor_args[] =
{
{ "path", "s", false },
{ 0, 0, 0 }
};
static ::DBus::IntrospectedArgument Stash_args[] =
{
{ "messages", "as", false },
{ "success", "b", false },
{ 0, 0, 0 }
};
static ::DBus::IntrospectedArgument Unstash_args[] =
{
{ "n", "u", true },
{ "messages", "as", false },
{ "success", "b", false },
{ 0, 0, 0 }
};
static ::DBus::IntrospectedArgument ListStash_args[] =
{
{ "stash", "as", false },
{ 0, 0, 0 }
};
static ::DBus::IntrospectedArgument DropStash_args[] =
{
{ "n", "u", true },
{ "messages", "as", false },
{ "success", "b", false },
{ 0, 0, 0 }
};
static ::DBus::IntrospectedArgument ClearStash_args[] =
{
{ 0, 0, 0 }
};
static ::DBus::IntrospectedMethod Fclip_adaptor_methods[] =
{
{ "Add", Add_args },
{ "Remove", Remove_args },
{ "Clear", Clear_args },
{ "ListFilesToStream", ListFilesToStream_args },
{ "DirectoryListing", DirectoryListing_args },
{ "LowestCommonAncestor", LowestCommonAncestor_args },
{ "Stash", Stash_args },
{ "Unstash", Unstash_args },
{ "ListStash", ListStash_args },
{ "DropStash", DropStash_args },
{ "ClearStash", ClearStash_args },
{ 0, 0 }
};
static ::DBus::IntrospectedMethod Fclip_adaptor_signals[] =
{
{ 0, 0 }
};
static ::DBus::IntrospectedProperty Fclip_adaptor_properties[] =
{
{ 0, 0, 0, 0 }
};
static ::DBus::IntrospectedInterface Fclip_adaptor_interface =
{
"com.fclip.Fclip",
Fclip_adaptor_methods,
Fclip_adaptor_signals,
Fclip_adaptor_properties
};
return &Fclip_adaptor_interface;
}
public:
/* properties exposed by this interface, use
* property() and property(value) to get and set a particular property
*/
public:
/* methods exported by this interface,
* you will have to implement them in your ObjectAdaptor
*/
virtual void Add(const std::vector< std::string >& files, const bool& recursive, std::vector< std::string >& messages, bool& success) = 0;
virtual void Remove(const std::vector< std::string >& files, const bool& recursive, std::vector< std::string >& messages, bool& success) = 0;
virtual void Clear() = 0;
virtual void ListFilesToStream(const std::string& directory, const bool& absolute, const std::string& stream) = 0;
virtual void DirectoryListing(const std::string& directory, std::vector< ::DBus::Struct< std::string, bool, bool > >& files, bool& recursive, std::vector< std::string >& messages, bool& success) = 0;
virtual std::string LowestCommonAncestor() = 0;
virtual void Stash(std::vector< std::string >& messages, bool& success) = 0;
virtual void Unstash(const uint32_t& n, std::vector< std::string >& messages, bool& success) = 0;
virtual std::vector< std::string > ListStash() = 0;
virtual void DropStash(const uint32_t& n, std::vector< std::string >& messages, bool& success) = 0;
virtual void ClearStash() = 0;
public:
/* signal emitters for this interface
*/
private:
/* unmarshalers (to unpack the DBus message before calling the actual interface method)
*/
::DBus::Message _Add_stub(const ::DBus::CallMessage &call)
{
::DBus::MessageIter ri = call.reader();
std::vector< std::string > argin1; ri >> argin1;
bool argin2; ri >> argin2;
std::vector< std::string > argout1;
bool argout2;
Add(argin1, argin2, argout1, argout2);
::DBus::ReturnMessage reply(call);
::DBus::MessageIter wi = reply.writer();
wi << argout1;
wi << argout2;
return reply;
}
::DBus::Message _Remove_stub(const ::DBus::CallMessage &call)
{
::DBus::MessageIter ri = call.reader();
std::vector< std::string > argin1; ri >> argin1;
bool argin2; ri >> argin2;
std::vector< std::string > argout1;
bool argout2;
Remove(argin1, argin2, argout1, argout2);
::DBus::ReturnMessage reply(call);
::DBus::MessageIter wi = reply.writer();
wi << argout1;
wi << argout2;
return reply;
}
::DBus::Message _Clear_stub(const ::DBus::CallMessage &call)
{
::DBus::MessageIter ri = call.reader();
Clear();
::DBus::ReturnMessage reply(call);
return reply;
}
::DBus::Message _ListFilesToStream_stub(const ::DBus::CallMessage &call)
{
::DBus::MessageIter ri = call.reader();
std::string argin1; ri >> argin1;
bool argin2; ri >> argin2;
std::string argin3; ri >> argin3;
ListFilesToStream(argin1, argin2, argin3);
::DBus::ReturnMessage reply(call);
return reply;
}
::DBus::Message _DirectoryListing_stub(const ::DBus::CallMessage &call)
{
::DBus::MessageIter ri = call.reader();
std::string argin1; ri >> argin1;
std::vector< ::DBus::Struct< std::string, bool, bool > > argout1;
bool argout2;
std::vector< std::string > argout3;
bool argout4;
DirectoryListing(argin1, argout1, argout2, argout3, argout4);
::DBus::ReturnMessage reply(call);
::DBus::MessageIter wi = reply.writer();
wi << argout1;
wi << argout2;
wi << argout3;
wi << argout4;
return reply;
}
::DBus::Message _LowestCommonAncestor_stub(const ::DBus::CallMessage &call)
{
::DBus::MessageIter ri = call.reader();
std::string argout1 = LowestCommonAncestor();
::DBus::ReturnMessage reply(call);
::DBus::MessageIter wi = reply.writer();
wi << argout1;
return reply;
}
::DBus::Message _Stash_stub(const ::DBus::CallMessage &call)
{
::DBus::MessageIter ri = call.reader();
std::vector< std::string > argout1;
bool argout2;
Stash(argout1, argout2);
::DBus::ReturnMessage reply(call);
::DBus::MessageIter wi = reply.writer();
wi << argout1;
wi << argout2;
return reply;
}
::DBus::Message _Unstash_stub(const ::DBus::CallMessage &call)
{
::DBus::MessageIter ri = call.reader();
uint32_t argin1; ri >> argin1;
std::vector< std::string > argout1;
bool argout2;
Unstash(argin1, argout1, argout2);
::DBus::ReturnMessage reply(call);
::DBus::MessageIter wi = reply.writer();
wi << argout1;
wi << argout2;
return reply;
}
::DBus::Message _ListStash_stub(const ::DBus::CallMessage &call)
{
::DBus::MessageIter ri = call.reader();
std::vector< std::string > argout1 = ListStash();
::DBus::ReturnMessage reply(call);
::DBus::MessageIter wi = reply.writer();
wi << argout1;
return reply;
}
::DBus::Message _DropStash_stub(const ::DBus::CallMessage &call)
{
::DBus::MessageIter ri = call.reader();
uint32_t argin1; ri >> argin1;
std::vector< std::string > argout1;
bool argout2;
DropStash(argin1, argout1, argout2);
::DBus::ReturnMessage reply(call);
::DBus::MessageIter wi = reply.writer();
wi << argout1;
wi << argout2;
return reply;
}
::DBus::Message _ClearStash_stub(const ::DBus::CallMessage &call)
{
::DBus::MessageIter ri = call.reader();
ClearStash();
::DBus::ReturnMessage reply(call);
return reply;
}
};
} }
#endif //__dbusxx__Fclip_adaptor_h__ADAPTOR_MARSHAL_H