summaryrefslogtreecommitdiff
path: root/gio/src/dbusserver.ccg
Commit message (Collapse)AuthorAgeFilesLines
* Update the Free Software Foundation address in copyright noticesKjell Ahlstedt2017-08-301-2/+1
| | | | Bug 786824
* Gio::DBus::Server: Change ServerFlags to Server::Flags.Murray Cumming2017-04-191-8/+10
|
* Add and use make_refptr_for_instance().Murray Cumming2017-04-061-4/+4
| | | | This will make it easier to change the underlying RefPtr type.
* Run clang-format on the .ccg files.Murray Cumming2016-02-261-48/+29
| | | | This seems to work.
* Use Glib::c_str_or_nullptr()Kjell Ahlstedt2016-01-211-14/+8
| | | | Use Glib::c_str_or_nullptr(s) instead of s.empty() ? nullptr : s.c_str().
* Gio::DBus: Use nullptr instead of 0.Murray Cumming2015-11-201-2/+2
|
* Replace static_cast<char*>(0) with nullptr.Murray Cumming2015-11-191-8/+8
|
* Add some documentation.Murray Cumming2012-10-211-75/+7
| | | | | | | | | | | * gio/src/dbusintrospection.hg: * gio/src/dbusserver.ccg: * gio/src/inputstream.hg: * gio/src/menu.hg: * gio/src/menuitem.hg: * gio/src/outputstream.hg: * glib/src/threads.hg: Deal with some TODOS, mostly adding documentation based on the C documentation.
* gmmproc: Don't include <glibmm.h> by default in generated files.José Alburquerque2011-10-251-0/+2
| | | | | | | | | | | | * tools/m4/base.m4: Include <glibmm/ustring.h> and <sigc++/sigc++.h> by default in header files of generated files in modules other than glibmm. This should make compilation faster for those modules. * gio/src/*.{h,cc}g: * gio/giomm/slot_async.cc: Adjust includes according to the above change. Bug #662597
* Gio::DBus::Server: Add constructors.Murray Cumming2011-09-271-3/+0
| | | | | * gio/src/dbusserver.[hg|ccg]: Uncomment the constructors now that bug #639478 has been fixed, though nobody has tried to use this yet.
* Minor comment changes.Murray Cumming2011-03-241-1/+1
|
* Move the DBus classes into a Gio::DBus namespace.Murray Cumming2011-02-161-28/+32
| | | | | | | | | | | | | | | | | | | | | | * gio/giomm.h: * gio/src/dbus*.[hg|ccg] * gio/src/error.hg: Rename all DBus* classes to remove the prefix, putting them in a Gio::DBus namespace. This required the use of the new _GMMPROC_EXTRA_NAMESPACE macro, to avoid generating a confused wrap_init.cc. Along the way, I removed unnecessary class predeclarations, instead including the relevant header, because that is more convenient for users of the API. * gio/src/dbuserror.[hg|ccg]: Renamed to dbuserrorutils.[hg|ccg] and renamed the Error namespace to ErrorUtils, to avoid a clash with the Gio::DBus::Error exception. * gio/src/filelist.am: * tools/m4/convert_gio.m4: Changed some conversions. * examples/dbus/busserver.cc: * examples/dbus/peer.cc: * examples/dbus/userbus.cc: Adapted. This is generally more organized. A prefix, instead of a namespace, looked generally wrong to C++ coders.
* DBusServer: Comment out constructors because of bug #639478.José Alburquerque2011-01-131-0/+3
| | | | | * gio/src/dbusserver.{ccg,hg}: Comment out the constructors because the C new function does more than calling g_initable_new().
* Variant: Use variant_type() functions in implementation where possible.José Alburquerque2011-01-131-0/+4
| | | | | | | * glib/src/variant.ccg: Use the existing variant_type() functions where possible. * gio/src/dbusserver.ccg: File bug #639478 about GDBusServer's new function doing more than using g_initable_new().
* DBus: Use std::string for addresses since they could be a file path.José Alburquerque2011-01-111-8/+8
| | | | | | | | | | * gio/src/dbusaddress.{ccg,hg}: * gio/src/dbusconnection.{ccg,hg}: * gio/src/dbusserver.{ccg,hg}: Use std::string instead of Glib::ustring for address parameters just to avoid possible errors since DBus address could be a filename path as the "Addresses" section of the DBus introduction seems to imply: http://www.freedesktop.org/wiki/IntroductionToDBus.
* DBus: Use std::string for guid's.José Alburquerque2011-01-111-8/+8
| | | | | | | | | * gio/src/dbusaddress.{ccg,hg}: * gio/src/dbusconnection.{ccg,hg}: * gio/src/dbusserver.{ccg,hg}: * gio/src/dbusutils.{ccg,hg}: Use std::string instead of Glib::ustring for guid's since std::string's API is probably adequate enough for their use.
* DBus: Add a peer example to test the DBusServer class.José Alburquerque2011-01-101-0/+71
| | | | | | | | | | | | | | | | | | | | | | | * gio/src/dbusconnection.{ccg,hg}: Reorder the VariantBase 'parameters' parameter in the call*() methods to come after the method_name parameter. * gio/src/dbusintrospection.hg: Use refreturn for methods where the C API does not automatically reference the return. * gio/src/dbusserver.{ccg,hg}: Add non-observable constructors and create() methods. * glib/src/variant.{ccg,hg} (create_tuple): Renamed from create(). Write this method to be more specific for tuples (it's probably the only case where this method might be used). Dealing with tuples still feels awkward with the method. Maybe there's a better way. * examples/Makefile.am: * examples/dbus/peer.cc: * examples/dbus/userbus.cc: * examples/dbus/well-known-address-client.cc: Add the new server/client peer example (named peer). The example crashes because the C API seems to not deal with empty strings "" well, but at least there is now an example. Making sure it runs well is necessary. Also rename the previous example to userbus.cc.
* DBus[MethodInvocation|Server]: Code corrections.José Alburquerque2010-11-301-4/+38
| | | | | | | | | * gio/src/dbusmethodinvocation.hg: Remove the default constructor because it probably will not be used (there is no create() method to go along with it). * gio/src/dbusserver.{ccg,hg} (create_sync): Use g_dbus_server_new_sync() instead of the constructors because the C function does more than call g_initable_new().
* Initable: Add a non-cancellable overload of the init() method.José Alburquerque2010-11-141-1/+1
| | | | | | | | * gio/src/initable.{ccg,hg} (init): Add a non-cancellable overload. * gio/src/dbusconnection.ccg: * gio/src/dbusproxy.ccg: * gio/src/dbusserver.ccg: Adapt API to use non-cancellable version of Gio::Initable::init().
* giomm: Provide non-cancellable overloads for newly added API.José Alburquerque2010-11-141-5/+31
| | | | | | | | | | | | | | | | | | * gio/src/application.hg: Completed a TODO. * gio/src/asyncinitable.hg (init_async): Refer to existing method docs in the non-cancellable version instead of duplicating docs. * gio/src/dbusconnection.{ccg,hg}: Add non-cancellable overloads of the constructors and create methods instead of having a default null Cancellable parameter. Renamed the synchronized create*() methods to create*_sync(). (get): Added a non-cancellable overload as above. * gio/src/dbusproxy.{ccg,hg}: Added non-cancellable overloads of the constructors and create methods. Renamed the create*() synchronized methods to create*_sync() as above. (call): Added a non-cancellable overload as above. * gio/src/dbusserver.{ccg,hg}: Add non-cancellable overloads of the constructor and create method. Renamed the create() synchronized method to create_sync() as above.
* giomm: DBusServer: Corrected parameter order of constructor.José Alburquerque2010-09-131-7/+6
| | | | | | * gio/src/dbusserver.{ccg,hg}: Reordered the parameters of the constructor and create() method so that the flag is the last optional parameter.
* Gio::DBusServer: Use the _CONSTRUCT macro in the constructor.José Alburquerque2010-07-261-0/+6
| | | | | * gio/src/dbusserver.ccg (DBusServer): Use the _CONSTRUCT macro in the constructor so that its instances are constructed properly.
* Add Gio::DBusServer.José Alburquerque2010-07-251-0/+42
* gio/src/dbusserver.ccg: * gio/src/dbusserver.hg: * gio/src/filelist.am: Add the new sources for Gio::DBusServer. * tools/extra_defs_gen/generate_defs_gio.cc: * gio/src/gio_signals.defs: Add the GDBusServer type to the extra defs generation utility and regenerate the signal defs file to get the signals and properties of GDBusServer. * tools/m4/convert_gio.m4: Add conversions for GDBusServer. Alphabetize the enum conversions. * gio/src/dbusauthobserver.hg: Typos.