Commit graph

1257 commits

Author SHA1 Message Date
Thiago Macieira
d371f6fa44 * qt/qdbusintegrator.cpp: Work around g++ 3.3 bug.
Patch by Stefan Eilers. (r529537)
2006-04-13 17:36:03 +00:00
Thiago Macieira
788a8967a1 * qt/qdbusinternalfilters.cpp: Don't show the parent's
contents (r528208)
2006-04-13 17:34:18 +00:00
Thiago Macieira
4cc926f413 * qt/Makefile.am: fix the dependency for
qdbusconnection_p.moc. It's included in qdbusintegrator.cpp,
          not in qdbusconnection.cpp.
          Thanks to Jakub Stachowski <stachowski@hypair.net> for
          spotting this.
2006-04-10 15:38:58 +00:00
Thiago Macieira
be74a67492 * qt/examples/listnames.cpp:
* qt/examples/Makefile.am: Three ways to list the names on the
	  bus.
2006-04-10 10:56:50 +00:00
Thiago Macieira
3ed273a6ed * test/qt/tst_hal.cpp: Remove the waiting, since it's not
needed anymore. Requires Qt 4.1.3 to work properly. (r528148)
2006-04-10 10:51:56 +00:00
Thiago Macieira
399c44a133 Merge from Subversion:
* qt/qt-dbus.qdocconf: Update Trolltech's webpage link to
	  something that exists (r526315)
	* qt/qdbusinternalfilters.cpp: Correctly detect non-scriptable
	  slots/signals (r526316)
	* qt/qdbusinternalfilters.cpp: Fix the setProperty call and
	  also return an unknown-method error if the parameters don't
	  match for org.freedesktop.DBus.Properties. (r526842)
	* qt/examples/dbus.cpp: Allow passing of QVariants (r526843)
	* qt/qdbusintegrator.cpp: Restore the proper order of
	  delivery: don't make method returns be delivered on priority
	  (r528150)
2006-04-10 10:49:36 +00:00
Thiago Macieira
68b0f52359 * configure.in qt/Makefile.am: add qt/examples
* qt/examples: Add QtDBus example programs:
	  - hello: Hello, World
	  - ping: Simple method-calling program
	  - pong: Simple object-exporting program (not using adaptors)
	  - complexping: Interactive method-calling program
		(also gets and sets properties).
	  - complexpong: Sample program exporting methods, signals and
		properties, using adaptors.
	  - dbus: Simple implementation of a generic method-calling
		program, similar to 'dbus-send', but with semantics
		similar to 'dcop'.
	  - chat: Simplistic chat program, implemented using signals
		and the system bus. Looks like IRC.
2006-03-28 19:16:35 +00:00
Thiago Macieira
26106e12ec * configure.in: Detect QtGui (necessary for one of the
example programs). Note: this increases the minimum required
          version of Qt to 4.1.3.
2006-03-28 19:14:56 +00:00
Thiago Macieira
d54ababd5f * test/qt/*: Sync with KDE Subversion revision 523647.
Update the testcases to the new API. Remove testcases for
        classes that are no longer public or have been removed.
2006-03-28 18:58:58 +00:00
Thiago Macieira
d42c8663e8 * qt/*:
* dbus/qdbus.h: Sync with KDE Subversion revision
	523647. Hopefully, this will be the last of the
	source-incompatible changes. Documentation has been improved;
	support for QList<basic-types> has been added; QDBusObject is
	gone; QDBus(Abstract)Interface is now a QObject with
	auto-generated meta-object; QDBusIntrospection is marked
	private, since QMetaObject can be used now; lots of bugfixes.
2006-03-28 18:56:08 +00:00
John (J5) Palmieri
36e1d8bfc7 Patch from Milosz Derezynski <internalerror at gmail.com>
* configure.in:
  Output the service directory in the configure summary

* dbus-1.pc.in:
  Add session_bus_services_dir
2006-03-17 03:20:14 +00:00
Ross Burton
fe21c24475 2006-03-10 Ross Burton <ross@openedhand.com>
* tools/dbus-print-message.c:
        Add support for object paths and signatures.
2006-03-10 17:29:48 +00:00
Sjoerd Simons
caf220015b * bus/bus.c: (bus_context_reload_config): Flush the user database cache on
config reload.
   * bus/dbus-daemon.1.in: Also note that SIGHUP flushes the user/group
   information caches
   * dbus/dbus-hash.c: (_dbus_hash_table_remove_all):
   * dbus/dbus-hash.h: Add function to remove all entries from a hash table
   * dbus/dbus-userdb.c: (_dbus_user_database_flush):
   * dbus/dbus-userdb.h: Add function to flush all user/group information
   caches.
2006-03-06 19:06:45 +00:00
Thiago Macieira
074b0b8674 2006-03-06 Thiago Macieira <thiago.macieira@trolltech.com>
* qt/dbusidl2cpp.cpp:
	* qt/Makefile.am: add the dbusidl2cpp tool, the replacement
	for dcopidl2cpp, found in the KDE installations (or the more
	modern kalyptus): generate Qt4 C++ code for the input XML
	introspection. Currently no IDL parsing.
2006-03-06 15:27:56 +00:00
Thiago Macieira
12dc0934ae 2006-03-06 Thiago Macieira <thiago.macieira@trolltech.com>
* test/qt/*: Update the self-tests.
2006-03-06 14:30:52 +00:00
Thiago Macieira
9393d6b459 2006-03-06 Thiago Macieira <thiago.macieira@trolltech.com>
* qt/*:
	* dbus/qdbus.h: Sync with KDE Subversion revision 516237. This
	represents the first feature-complete version of the Qt4
	bindings since I took ove maintainership.
2006-03-06 14:29:39 +00:00
Thiago Macieira
305ce15e4f 2006-03-06 Thiago Macieira <thiago.macieira@trolltech.com>
* qt/Doxyfile: Adding a Doxyfile for the Qt4 bindings
        dir. This is C++, so we can't use the DBus ones.
2006-03-06 14:28:20 +00:00
John (J5) Palmieri
e92ac26cd3 2006-03-02 John (J5) Palmieri <johnp@redhat.com>
* python/dbus_bindings.pyx: Remove refrence to sys/cdefs.h
	(Patch from Artem Kachitchkine <Artem.Kachitchkin at Sun.COM>)
2006-03-02 23:28:18 +00:00
John (J5) Palmieri
da4182fb29 2006-03-02 John (J5) Palmieri <johnp@redhat.com>
* dbus/dbus-connection.c:
	(_dbus_connection_block_pending_call):
	Check to see if our data has already been read off the connection
	by another blocking pending call before we block in poll.
	(check_for_reply_and_update_dispatch_unlocked):
	Code taken from _dbus_connection_block_pending_call - checks for
	an already read reply and updates the dispatch if there is one.

	* test/name-test/test-pending-call-dispatch.c:
	New test for making sure we don't get stuck polling a
	dbus connection which has no data on the socket when
	blocking out of order on two or more pending calls.
2006-03-02 22:24:28 +00:00
Thiago Macieira
e6eea749ee 2006-02-28 Thiago Macieira <thiago.macieira@trolltech.com>
* qt/Makefile.am: Patch by Sjoerd Simons. More .moc issues:
        make/automake don't detect that we're talking about the same
        .lo file if I specify the full path to the source files.
2006-02-28 14:19:55 +00:00
Havoc Pennington
f46701b47a 2006-02-26 Havoc Pennington <hp@redhat.com>
* bus/dbus-daemon.1.in: improve the language in a couple spots I noticed

	* dbus/dbus-bus.c (internal_bus_get): in the error message if the
	session bus variable is unset, suggest "man dbus-launch" and "man
	dbus-daemon" to figure out how to fix the problem
2006-02-26 08:11:03 +00:00
Havoc Pennington
78891f0096 2006-02-25 Havoc Pennington <hp@redhat.com>
* glib/dbus-glib-tool.c (usage): fix up the usage message, someone
	should make this thing use the new glib options parser
2006-02-26 01:06:33 +00:00
Thiago Macieira
20a8d82743 2006-02-25 Thiago Macieira <thiago.macieira@trolltech.com>
* qt/Makefile.am: Patch by Sjoerd Simons. Fix the path to the
        .lo files taking moc sources.
2006-02-25 19:54:56 +00:00
Havoc Pennington
014598753e 2006-02-25 Havoc Pennington <hp@redhat.com>
* dbus/dbus.h, dbus/Makefile.am: add dbus-signature.h to dbus.h
	and install it as a public header
2006-02-25 18:34:12 +00:00
John (J5) Palmieri
71bc1d08e7 - Bump release 2006-02-24 18:20:45 +00:00
John (J5) Palmieri
0154580c52 2006-02-24 John (J5) Palmieri <johnp@redhat.com>
* Released 0.61

2006-02-24  John (J5) Palmieri  <johnp@redhat.com>

	* proxies.py: Fix the callchain
2006-02-24 18:18:41 +00:00
John (J5) Palmieri
a2866f7366 2006-02-24 John (J5) Palmieri <johnp@redhat.com>
* patch from Sjoerd Simons <sjoerd at debian.org>:

	* dbus/dbus-sysdeps-util.c (_dbus_group_info_free): Moved to
	dbus/dbus-sysdeps.c

	* dbus/dbus-userdb.c (_dbus_group_info_free_allocated): Don't
	call _dbus_group_info_free_allocated which causes infinite loop,
	correctly call _dbus_group_info_free
2006-02-24 16:13:08 +00:00
Thiago Macieira
ea1cfd0b95 Emacs is too smart for its own good. Revert its automatic changes. 2006-02-20 13:30:42 +00:00
Thiago Macieira
602809693a 2006-02-20 Thiago Macieira <thiago.macieira@trolltech.com>
* qt/qdbusinterface_p.h:
	* qt/qdbusinterface.cpp: Use the standard
	org.freedesktop.DBus.Method.NoReply annotation for the "async"
	calls instead of creating one for us.

	* qt/qdbusconnection_p.h:
	* qt/qdbusintegrator.cpp: Remove debugging code.

	* qt/qdbusintegrator.cpp:
	* qt/qdbusmessage.cpp:
	* qt/qdbusmessage_p.h:
	* qt/qdbusmessage.h: Change the behaviour of automatic
	reply-sending: now a reply is always sent, unless the caller
	didn't request one or if the user slot has already sent one.
2006-02-20 13:23:11 +00:00
Robert McQueen
4dedbb4984 2006-02-16 Robert McQueen <robot101@debian.org>
* configure.in: Patch from Debian packages by Sjoerd Simons
	<sjoerd@debian.org> to add --with-qt-moc and --with-qt3-moc
	arguments so it's possible to build both bindings in the
	same tree.

	* qt/Makefile.am: Fix truncated value so that make dist works.
2006-02-17 00:04:38 +00:00
Robert McQueen
ae607a86ff 2006-02-16 Robert McQueen <robot101@debian.org>
* acinclude.m4, configure.in: Patch from Brad Hards
	<bradh@frogmouth.net> to avoid warnings from autoconf 1.9 by
	improving quoting, re-ordering a few checks, and a few other
	aesthetic tidy-ups.
2006-02-16 01:13:04 +00:00
Robert McQueen
0d0642b31b 2006-02-16 Robert McQueen <robot101@debian.org>
* dbus/dbus-message.c (dbus_message_iter_get_fixed_array):
	Patch from Rob Taylor <rob.taylor@collabora.co.uk> to correct a bogus
	assertion that the next element to read from the iter is fixed in
	size. This is not the case when you are at the end of the iter,
	because the next element type is INVALID.

	* dbus/dbus-string.c (_dbus_string_init_const_len): Correct a
	a bogus assert which means that you may not initialise a 0-length
	string unless you provide a non-NULL pointer. This prevented
	you from marshalling messages containing zero-length arrays in
	some cases.

	* glib/dbus-gvalue.c (demarshal_collection_array): Another patch
	from Rob to correct bogus asserts when trying to demarshal an
	array and get_fixed_array got you 0 elements. Append nothing to
	the GArray in this case.

	* test/glib/test-dbus-glib.c: Add a test case for round-tripping
	an empty array via the glib bindings. Without all of the above
	patches, this new test fails.
2006-02-16 00:43:41 +00:00
Robert McQueen
397b0a4ec1 2006-02-16 Robert McQueen <robot101@debian.org>
* glib/dbus-gmain.c: Make the previous commit compile.

	* python/_dbus.py, python/matchrules.py: Patch from Ole Andre
	Ravnaas <ole.andre.ravnaas@collabora.co.uk> to allow you to
	specify sender_keyword="foo", path_keyword="bar" when adding
	a signal listener, so that you can bind to signals generically
	but still do something useful in your callback.

	* python/dbus_bindings.pyx: Demarshal the byte type as unsigned
	chars so that they're not cast to chars and made negative. Thanks
	to Jakub Stachowski for reporting this and testing the fix.
2006-02-15 23:45:50 +00:00
John (J5) Palmieri
08bbc0210c * remove line from ChangeLog which was an artifact of an update conflict 2006-02-15 21:44:11 +00:00
John (J5) Palmieri
b1aa8a0baf 2006-02-15 John (J5) Palmieri <johnp@redhat.com>
* dbus/dbus-glib.h:
	* glib/dbus-gmain.h:
	(dbus_g_connection_open): new method for openning
	a connection to an arbitrary address in the glib bindings

	* ChangeLog: checkin last entry which doesn't seem to be commited
2006-02-15 21:42:54 +00:00
Thiago Macieira
9076938fc0 Add new tests and update the existing one. 2006-02-15 17:06:41 +00:00
Havoc Pennington
345671f75c add dispatch recursion item to TODO 2006-02-15 16:38:11 +00:00
Thiago Macieira
c2432800b1 Merge the changes to the bindings from the KDE Subversion server.
This is a major change: library is source- and binary-incompatible to
what it used to be.

All testcases are green, functionality is preserved.

It is not feature-complete. Development will continue in the branch in the
Subversion server for a while.
2006-02-15 16:25:12 +00:00
Thiago Macieira
120d4ae484 Unclutter and upgrade the test to Qt 4.1. We now link to QtXml too. 2006-02-15 16:21:59 +00:00
Robert McQueen
4a48fff0c7 2006-02-13 Robert McQueen <robot101@debian.org>
* glib/dbus-binding-tool-glib.c, glib/dbus-gmain.c,
	glib/dbus-gsignature.c, glib/dbus-gtype-specialized.c,
	glib/dbus-gtype-specialized.h, glib/dbus-gvalue-utils.c,
	glib/dbus-gvalue-utils.h, glib/dbus-gvalue.c:
	Patch from Rob Taylor <rob.taylor@collabora.co.uk> to add a big
	missing piece of the glib bindings jigsaw puzzle. This modifies
	the existing specialised types to have N type parameters (rather
	than the current 1 or 2 for arrays and dictionaries respectively).
	You can then use this to get a glib type to represent any arbitrary
	D-Bus struct type using dbus_g_type_get_struct. The only
	implementation of these types is with GValueArrays as before,
	but it's now possible to store these in arrays, emit them in
	signals, etc.
2006-02-13 22:30:11 +00:00
John (J5) Palmieri
385c443cc7 2006-02-13 John (J5) Palmieri <johnp@redhat.com>
* tools/dbus-launch.c: Fixed sh syntax output
2006-02-13 21:01:32 +00:00
John (J5) Palmieri
13a283b705 2006-02-10 John (J5) Palmieri <johnp@redhat.com>
* dbus/dbus-signature.c (dbus_signature_iter_recurse): Correctly
	deal with nested arrays (Bug #5823) Patch by Thiago Macieira
	<thiago.macieira at trolltech.com>
2006-02-10 22:36:57 +00:00
John (J5) Palmieri
3ebf7e7700 2006-02-10 John (J5) Palmieri <johnp@redhat.com>
* mono/doc/Makefile.am: Fix parallel make problem with mono-doc
	(Bug #4213) Patch from Doug Goldstein <cardoe at gentoo.org>
2006-02-10 21:47:10 +00:00
John (J5) Palmieri
34bb5b690b 2006-02-10 John (J5) Palmieri <johnp@redhat.com>
* bus/connection.c (bus_connections_expect_reply): Make
	pending reply limit not common to all connections (Bug #5416)
	Patch from Kimmo Hämäläinen <kimmo.hamalainen at nokia.com>
2006-02-10 21:44:15 +00:00
John (J5) Palmieri
8fcc91bf0b 2006-02-10 John (J5) Palmieri <johnp@redhat.com>
* tools/dbus-launch.c: Fixed csh syntax output (Bug #5720)
2006-02-10 21:28:52 +00:00
John (J5) Palmieri
d7580d7bd6 2006-02-10 John (J5) Palmieri <johnp@redhat.com>
* gcj/Makefile.am: point to correct jar command (Bug #4529)
	patch from Doug Goldstein <cardoe at gentoo.org>
2006-02-10 20:57:10 +00:00
Joe Shaw
cbe0956998 2006-02-09 Joe Shaw <joeshaw@novell.com
* mono/Arguments.cs: Fix a magic number in the mono bindings
	that doesn't work on 64 bit arches.  Patch from Peter Johanson.
2006-02-09 19:57:42 +00:00
Robert McQueen
2b5e0615cf 2006-01-27 Robert McQueen <robot101@debian.org>
* glib/dbus-binding-tool-glib.[ch]: Patch based on Ricardo Kekki's
	patch to use an annotation org.freedesktop.DBus.GLib.ClientCSymbol
	when generating the client-side methods, instead of overloading
	CSymbol which broke everything horribly. My apologies.
2006-01-27 16:40:54 +00:00
Robert McQueen
8e00b10d13 2006-01-27 Robert McQueen <robot101@debian.org>
* glib/dbus-gtype-specialized.[ch], glib/dbus-gvalue-utils.c: Patch
	by me and Rob Taylor to add a simple_free function to D-Bus map
	and collection types, which allows those types which can be freed
	with a GDestroyNotify (such as GHashTables and GArrays, but not
	GPtrArrays) to be stored as the values in hashtables.

	* test/glib/test-dbus-glib.c, test/glib/test-service-glib.{c,xml}:
	Patch by Rob Taylor to add nested dicts to the glib tests to check
	the above code works, and appears not to leak when called repeatedly.
2006-01-27 15:40:36 +00:00
Robert McQueen
ce13b5dff7 2006-01-27 Robert McQueen <robot101@debian.org>
* glib/dbus-gvalue.c (demarshal_valuearray): Patch from Rob Taylor
	to free a D-Bus allocated string with dbus_free () instead of
	g_free ().
2006-01-27 15:15:16 +00:00