configurationmanager-glue.h 13.8 KB
Newer Older
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
1
2
3
4
5
6
7
8
9
10
11
12

/*
 *	This file was automatically generated by dbusxx-xml2cpp; DO NOT EDIT!
 */

#ifndef __dbusxx__configurationmanager_glue_h__ADAPTOR_MARSHAL_H
#define __dbusxx__configurationmanager_glue_h__ADAPTOR_MARSHAL_H

#include <dbus-c++/dbus.h>

namespace org {
namespace sflphone {
13
namespace SFLphone {
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
14
15
16
17
18
19
20

class ConfigurationManager
: public ::DBus::InterfaceAdaptor
{
public:

    ConfigurationManager()
21
    : ::DBus::InterfaceAdaptor("org.sflphone.SFLphone.ConfigurationManager")
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
22
23
    {
        register_method(ConfigurationManager, getAccountDetails, _getAccountDetails_stub);
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
24
        register_method(ConfigurationManager, setAccountDetails, _setAccountDetails_stub);
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
25
        register_method(ConfigurationManager, addAccount, _addAccount_stub);
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
26
        register_method(ConfigurationManager, removeAccount, _removeAccount_stub);
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
27
        register_method(ConfigurationManager, getAccountList, _getAccountList_stub);
28
29
30
        register_method(ConfigurationManager, getDefaultAccount, _getDefaultAccount_stub);
        register_method(ConfigurationManager, setDefaultAccount, _setDefaultAccount_stub);
        register_method(ConfigurationManager, getToneLocaleList, _getToneLocaleList_stub);
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
31
32
        register_method(ConfigurationManager, getVersion, _getVersion_stub);
        register_method(ConfigurationManager, getRingtoneList, _getRingtoneList_stub);
33
34
        register_method(ConfigurationManager, getPlaybackDeviceList, _getPlaybackDeviceList_stub);
        register_method(ConfigurationManager, getRecordDeviceList, _getRecordDeviceList_stub);
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
35
        register_method(ConfigurationManager, getCodecList, _getCodecList_stub);
36
        register_method(ConfigurationManager, getCodecDetails, _getCodecDetails_stub);
37
38
        register_method(ConfigurationManager, getActiveCodecList, _getActiveCodecList_stub);
        register_method(ConfigurationManager, setActiveCodecList, _setActiveCodecList_stub);
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
39
40
41
42
43
44
45
46
47
48
    }

    ::DBus::IntrospectedInterface* const introspect() const 
    {
        static ::DBus::IntrospectedArgument getAccountDetails_args[] = 
        {
            { "accountID", "s", true },
            { "details", "a{ss}", false },
            { 0, 0, 0 }
        };
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
49
        static ::DBus::IntrospectedArgument setAccountDetails_args[] = 
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
50
        {
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
51
            { "accountID", "s", true },
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
52
53
54
            { "details", "a{ss}", true },
            { 0, 0, 0 }
        };
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
55
        static ::DBus::IntrospectedArgument addAccount_args[] = 
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
56
57
58
59
        {
            { "details", "a{ss}", true },
            { 0, 0, 0 }
        };
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
60
        static ::DBus::IntrospectedArgument removeAccount_args[] = 
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
61
        {
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
62
            { "accoundID", "s", true },
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
63
64
            { 0, 0, 0 }
        };
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
65
        static ::DBus::IntrospectedArgument getAccountList_args[] = 
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
66
        {
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
67
            { "list", "as", false },
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
68
69
            { 0, 0, 0 }
        };
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
        static ::DBus::IntrospectedArgument getDefaultAccount_args[] = 
        {
            { "accountID", "s", false },
            { 0, 0, 0 }
        };
        static ::DBus::IntrospectedArgument setDefaultAccount_args[] = 
        {
            { "accountID", "s", true },
            { 0, 0, 0 }
        };
        static ::DBus::IntrospectedArgument getToneLocaleList_args[] = 
        {
            { "list", "as", false },
            { 0, 0, 0 }
        };
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
85
86
87
88
89
90
91
92
93
94
        static ::DBus::IntrospectedArgument getVersion_args[] = 
        {
            { "version", "s", false },
            { 0, 0, 0 }
        };
        static ::DBus::IntrospectedArgument getRingtoneList_args[] = 
        {
            { "list", "as", false },
            { 0, 0, 0 }
        };
95
        static ::DBus::IntrospectedArgument getPlaybackDeviceList_args[] = 
96
97
98
99
        {
            { "list", "as", false },
            { 0, 0, 0 }
        };
100
        static ::DBus::IntrospectedArgument getRecordDeviceList_args[] = 
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
101
102
103
104
        {
            { "list", "as", false },
            { 0, 0, 0 }
        };
105
        static ::DBus::IntrospectedArgument getCodecList_args[] = 
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
106
        {
107
            { "list", "as", false },
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
108
109
            { 0, 0, 0 }
        };
110
        static ::DBus::IntrospectedArgument getCodecDetails_args[] = 
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
111
        {
112
113
            { "payload", "i", true },
            { "details", "as", false },
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
114
115
            { 0, 0, 0 }
        };
116
        static ::DBus::IntrospectedArgument getActiveCodecList_args[] = 
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
117
118
119
120
        {
            { "list", "as", false },
            { 0, 0, 0 }
        };
121
        static ::DBus::IntrospectedArgument setActiveCodecList_args[] = 
122
        {
123
            { "list", "as", true },
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
124
125
            { 0, 0, 0 }
        };
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
126
        static ::DBus::IntrospectedArgument parametersChanged_args[] = 
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
127
        {
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
128
            { "list", "a{ss}", false },
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
129
130
            { 0, 0, 0 }
        };
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
131
        static ::DBus::IntrospectedArgument accountsChanged_args[] = 
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
132
133
134
135
136
137
        {
            { 0, 0, 0 }
        };
        static ::DBus::IntrospectedMethod ConfigurationManager_methods[] = 
        {
            { "getAccountDetails", getAccountDetails_args },
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
138
            { "setAccountDetails", setAccountDetails_args },
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
139
            { "addAccount", addAccount_args },
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
140
            { "removeAccount", removeAccount_args },
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
141
            { "getAccountList", getAccountList_args },
142
143
144
            { "getDefaultAccount", getDefaultAccount_args },
            { "setDefaultAccount", setDefaultAccount_args },
            { "getToneLocaleList", getToneLocaleList_args },
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
145
146
            { "getVersion", getVersion_args },
            { "getRingtoneList", getRingtoneList_args },
147
148
            { "getPlaybackDeviceList", getPlaybackDeviceList_args },
            { "getRecordDeviceList", getRecordDeviceList_args },
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
149
            { "getCodecList", getCodecList_args },
150
            { "getCodecDetails", getCodecDetails_args },
151
152
            { "getActiveCodecList", getActiveCodecList_args },
            { "setActiveCodecList", setActiveCodecList_args },
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
153
154
155
156
            { 0, 0 }
        };
        static ::DBus::IntrospectedMethod ConfigurationManager_signals[] = 
        {
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
157
158
            { "parametersChanged", parametersChanged_args },
            { "accountsChanged", accountsChanged_args },
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
159
160
161
162
163
164
165
166
            { 0, 0 }
        };
        static ::DBus::IntrospectedProperty ConfigurationManager_properties[] = 
        {
            { 0, 0, 0, 0 }
        };
        static ::DBus::IntrospectedInterface ConfigurationManager_interface = 
        {
167
            "org.sflphone.SFLphone.ConfigurationManager",
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
            ConfigurationManager_methods,
            ConfigurationManager_signals,
            ConfigurationManager_properties
        };
        return &ConfigurationManager_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 std::map< ::DBus::String, ::DBus::String > getAccountDetails( const ::DBus::String& accountID ) = 0;
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
187
    virtual void setAccountDetails( const ::DBus::String& accountID, const std::map< ::DBus::String, ::DBus::String >& details ) = 0;
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
188
    virtual void addAccount( const std::map< ::DBus::String, ::DBus::String >& details ) = 0;
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
189
    virtual void removeAccount( const ::DBus::String& accoundID ) = 0;
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
190
    virtual std::vector< ::DBus::String > getAccountList(  ) = 0;
191
192
193
    virtual ::DBus::String getDefaultAccount(  ) = 0;
    virtual void setDefaultAccount( const ::DBus::String& accountID ) = 0;
    virtual std::vector< ::DBus::String > getToneLocaleList(  ) = 0;
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
194
195
    virtual ::DBus::String getVersion(  ) = 0;
    virtual std::vector< ::DBus::String > getRingtoneList(  ) = 0;
196
197
    virtual std::vector< ::DBus::String > getPlaybackDeviceList(  ) = 0;
    virtual std::vector< ::DBus::String > getRecordDeviceList(  ) = 0;
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
198
    virtual std::vector< ::DBus::String > getCodecList(  ) = 0;
199
    virtual std::vector< ::DBus::String > getCodecDetails( const ::DBus::Int32& payload ) = 0;
200
201
    virtual std::vector< ::DBus::String > getActiveCodecList(  ) = 0;
    virtual void setActiveCodecList( const std::vector< ::DBus::String >& list ) = 0;
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
202
203
204
205
206

public:

    /* signal emitters for this interface
     */
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
207
    void parametersChanged( const std::map< ::DBus::String, ::DBus::String >& arg1 )
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
208
    {
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
209
210
211
212
213
214
215
216
        ::DBus::SignalMessage sig("parametersChanged");
        ::DBus::MessageIter wi = sig.writer();
        wi << arg1;
        emit_signal(sig);
    }
    void accountsChanged(  )
    {
        ::DBus::SignalMessage sig("accountsChanged");
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
        emit_signal(sig);
    }

private:

    /* unmarshalers (to unpack the DBus message before calling the actual interface method)
     */
    ::DBus::Message _getAccountDetails_stub( const ::DBus::CallMessage& call )
    {
        ::DBus::MessageIter ri = call.reader();

        ::DBus::String argin1; ri >> argin1;
        std::map< ::DBus::String, ::DBus::String > argout1 = getAccountDetails(argin1);
        ::DBus::ReturnMessage reply(call);
        ::DBus::MessageIter wi = reply.writer();
        wi << argout1;
        return reply;
    }
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
235
    ::DBus::Message _setAccountDetails_stub( const ::DBus::CallMessage& call )
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
236
237
238
    {
        ::DBus::MessageIter ri = call.reader();

Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
239
240
241
        ::DBus::String argin1; ri >> argin1;
        std::map< ::DBus::String, ::DBus::String > argin2; ri >> argin2;
        setAccountDetails(argin1, argin2);
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
242
243
244
        ::DBus::ReturnMessage reply(call);
        return reply;
    }
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
245
    ::DBus::Message _addAccount_stub( const ::DBus::CallMessage& call )
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
246
247
248
249
    {
        ::DBus::MessageIter ri = call.reader();

        std::map< ::DBus::String, ::DBus::String > argin1; ri >> argin1;
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
250
        addAccount(argin1);
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
251
252
253
        ::DBus::ReturnMessage reply(call);
        return reply;
    }
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
254
    ::DBus::Message _removeAccount_stub( const ::DBus::CallMessage& call )
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
255
256
257
258
    {
        ::DBus::MessageIter ri = call.reader();

        ::DBus::String argin1; ri >> argin1;
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
259
        removeAccount(argin1);
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
260
261
262
        ::DBus::ReturnMessage reply(call);
        return reply;
    }
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
263
    ::DBus::Message _getAccountList_stub( const ::DBus::CallMessage& call )
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
264
265
266
    {
        ::DBus::MessageIter ri = call.reader();

Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
267
        std::vector< ::DBus::String > argout1 = getAccountList();
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
268
269
270
271
272
        ::DBus::ReturnMessage reply(call);
        ::DBus::MessageIter wi = reply.writer();
        wi << argout1;
        return reply;
    }
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
    ::DBus::Message _getDefaultAccount_stub( const ::DBus::CallMessage& call )
    {
        ::DBus::MessageIter ri = call.reader();

        ::DBus::String argout1 = getDefaultAccount();
        ::DBus::ReturnMessage reply(call);
        ::DBus::MessageIter wi = reply.writer();
        wi << argout1;
        return reply;
    }
    ::DBus::Message _setDefaultAccount_stub( const ::DBus::CallMessage& call )
    {
        ::DBus::MessageIter ri = call.reader();

        ::DBus::String argin1; ri >> argin1;
        setDefaultAccount(argin1);
        ::DBus::ReturnMessage reply(call);
        return reply;
    }
    ::DBus::Message _getToneLocaleList_stub( const ::DBus::CallMessage& call )
    {
        ::DBus::MessageIter ri = call.reader();

        std::vector< ::DBus::String > argout1 = getToneLocaleList();
        ::DBus::ReturnMessage reply(call);
        ::DBus::MessageIter wi = reply.writer();
        wi << argout1;
        return reply;
    }
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
    ::DBus::Message _getVersion_stub( const ::DBus::CallMessage& call )
    {
        ::DBus::MessageIter ri = call.reader();

        ::DBus::String argout1 = getVersion();
        ::DBus::ReturnMessage reply(call);
        ::DBus::MessageIter wi = reply.writer();
        wi << argout1;
        return reply;
    }
    ::DBus::Message _getRingtoneList_stub( const ::DBus::CallMessage& call )
    {
        ::DBus::MessageIter ri = call.reader();

        std::vector< ::DBus::String > argout1 = getRingtoneList();
        ::DBus::ReturnMessage reply(call);
        ::DBus::MessageIter wi = reply.writer();
        wi << argout1;
        return reply;
    }
322
    ::DBus::Message _getPlaybackDeviceList_stub( const ::DBus::CallMessage& call )
323
324
325
    {
        ::DBus::MessageIter ri = call.reader();

326
        std::vector< ::DBus::String > argout1 = getPlaybackDeviceList();
327
328
329
330
331
        ::DBus::ReturnMessage reply(call);
        ::DBus::MessageIter wi = reply.writer();
        wi << argout1;
        return reply;
    }
332
    ::DBus::Message _getRecordDeviceList_stub( const ::DBus::CallMessage& call )
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
333
334
335
    {
        ::DBus::MessageIter ri = call.reader();

336
        std::vector< ::DBus::String > argout1 = getRecordDeviceList();
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
337
338
339
340
341
        ::DBus::ReturnMessage reply(call);
        ::DBus::MessageIter wi = reply.writer();
        wi << argout1;
        return reply;
    }
342
    ::DBus::Message _getCodecList_stub( const ::DBus::CallMessage& call )
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
343
344
345
    {
        ::DBus::MessageIter ri = call.reader();

346
        std::vector< ::DBus::String > argout1 = getCodecList();
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
347
        ::DBus::ReturnMessage reply(call);
348
349
        ::DBus::MessageIter wi = reply.writer();
        wi << argout1;
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
350
351
        return reply;
    }
352
    ::DBus::Message _getCodecDetails_stub( const ::DBus::CallMessage& call )
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
353
354
355
    {
        ::DBus::MessageIter ri = call.reader();

356
357
        ::DBus::Int32 argin1; ri >> argin1;
        std::vector< ::DBus::String > argout1 = getCodecDetails(argin1);
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
358
359
360
361
362
        ::DBus::ReturnMessage reply(call);
        ::DBus::MessageIter wi = reply.writer();
        wi << argout1;
        return reply;
    }
363
    ::DBus::Message _getActiveCodecList_stub( const ::DBus::CallMessage& call )
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
364
365
366
    {
        ::DBus::MessageIter ri = call.reader();

367
        std::vector< ::DBus::String > argout1 = getActiveCodecList();
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
368
369
370
371
372
        ::DBus::ReturnMessage reply(call);
        ::DBus::MessageIter wi = reply.writer();
        wi << argout1;
        return reply;
    }
373
    ::DBus::Message _setActiveCodecList_stub( const ::DBus::CallMessage& call )
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
374
375
376
    {
        ::DBus::MessageIter ri = call.reader();

377
378
        std::vector< ::DBus::String > argin1; ri >> argin1;
        setActiveCodecList(argin1);
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
379
380
381
382
383
        ::DBus::ReturnMessage reply(call);
        return reply;
    }
};

384
} } } 
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
385
#endif//__dbusxx__configurationmanager_glue_h__ADAPTOR_MARSHAL_H