Commit graph

1287 commits

Author SHA1 Message Date
Thiago Macieira
da04480e7e * configure.in: Make --disable-qt actually do
something. Patch inspired by Zack Rusin.
2006-06-04 15:53:44 +00:00
Thiago Macieira
edbf2bfc10 * qt/: Update to Subversion r548032.
This includes a big reorganisation of the files inside the
	subdir.

We really need a version control system that supports moving of
files. I'm not bothering with history anyways anymore, since the
bindings will be moved out to git. The history should be restored from
Subversion when that happens.
2006-06-04 15:52:05 +00:00
Sjoerd Simons
435c7af9b6 * dbus/dbus-sysdeps.c: Make tcp socket connection error somewhat more
clear:
  "Failed to connect to socket <host>:<port> <error>" instead of
  "Failed to connect to socket <host>: <error>:<port>"

  * dbus/dbus-transport-unix.c: Fix crash when no host option is given
  for a tcp transport.
2006-05-30 15:34:10 +00:00
Thiago Macieira
26ab02e916 * qt/*: Update the QtDBus bindings up to revision 546310 in
Subversion.
        This adds the dbuscpp2xml tool, that parses a C++ header and
        outputs a D-BUS Introspection XML.
2006-05-29 18:17:09 +00:00
Havoc Pennington
5bc9dc5cf0 2006-05-21 Havoc Pennington <hp@redhat.com>
* glib/dbus-gproxy.c: Put in a pile of assertions that the proxy name
	is not NULL when it shouldn't be. Also a couple of possible fixes
	for #4637 though I don't understand why the bug happens, to be
	honest... also the object constructor has an assert name != NULL
	and the name is only currently NULL for peer-to-peer proxies that
	I don't think anyone uses? So it should be asserting.
	Anyway, for now at least see if we get an earlier assertion failure.

	* glib/dbus-gvalue-utils.c: Put in a couple of assertions for
	apparently broken code to be sure the tests fail and someone
	will fix them...
2006-05-21 05:33:52 +00:00
Thiago Macieira
e2f5ba2280 * qt/qdbusmarshall.cpp: Fix a problem of demarshalling lists
and arrays when they had a single element: has_next returns
        false, even before you read the element. So, instead, check
        the array length.
2006-05-07 09:36:19 +00:00
Thiago Macieira
b6c9d86105 Same changelog as before: fix debug-mode compilation 2006-05-06 10:46:38 +00:00
Thiago Macieira
c7f3c89ee9 * qt/qdbusmessage.cpp:
* qt/qdbustypehelper_p.h:
	* qt/qdbusintegrator.cpp: gcc 3.4 doesn't like Q_FOREACH when
	the list is a const-reference
2006-05-06 10:37:59 +00:00
John (J5) Palmieri
50266d4190 * Adding old doc patch that never got applied
* dbus/bus.c (dbus_bus_add_match): Add documentation

* doc/dbus-specification.xml: Add documentation for the match rules
  and the AddMatch and RemoveMatch methods
2006-05-03 22:56:35 +00:00
Thiago Macieira
838a740ea6 * qt/dbusidl2cpp.cpp: There's no callAsync. Use the correct
call (r535506)

	* qt/dbusidl2cpp.cpp:
	* qt/qdbusabstractadaptor.cpp:
	* qt/qdbusabstractadaptor.h: Make QDBusAdaptorConnector be a
        sibling of the QDBusAbstractAdaptor objects instead of the
        parent. (r535848)

	* qt/dbusidl2cpp.cpp:
	* qt/qdbusabstractinterface.cpp:
	* qt/qdbusabstractinterface.h:
	* qt/qdbusabstractinterface_p.h:
	* qt/qdbusinterface.cpp: Make properties in interfaces
        actually work. The code that was generated would not compile,
        due to moc calls to functions that did not exist. They now
        shall. (r536571)
2006-05-02 14:00:27 +00:00
Thiago Macieira
86bb5584d3 Oops, forgot part of the patch. Same ChangeLog entry. 2006-04-30 11:07:01 +00:00
Thiago Macieira
ddb4764899 * Makefile.am:
* configure.in:
        * dbus-qt4-1.pc.in: Add a pkg-config file for libdbus-qt4-1.
	Thanks to Brad Hards for providing the patch
2006-04-30 10:47:47 +00:00
Thiago Macieira
c31815270c * qt/dbusidl2cpp.cpp: There's no callAsync. Use the correct
call. (r535506)
2006-04-29 17:22:47 +00:00
Thiago Macieira
3ad7ee6334 * qt/examples/dbus.cpp: Enhance error messages and use
QDBusInterfacePtr.
2006-04-29 12:49:21 +00:00
Thiago Macieira
7cabddaa42 * qt/qdbusinterface.h: Rename QDBusRef to QDBusInterfacePtr
and disable the copy operators. (r533772, r534746)

        * qt/qdbuserror.h: Remove the automatic cast to
          bool. (r533929)

        * qt/qdbusabstractinterface.cpp:
        * qt/qdbusabstractinterface.h: Change the default call mode to
        not use the event loop. Add convenience call() methods that
        take a CallMode parameter. (r534042)

        * qt/qdbusconnection.h: Change the default call mode to not
        use the event loop. (r534042)

        * qt/qdbusinterface.cpp:
        * qt/qdbusinterface.h: Add a method to tell us if the
        interface is valid (since we don't return a null pointer
        anymore) (r534099)

        * qt/qdbusinterface_p.h: Don't crash if metaObject is 0
        (r534101)

        * qt/qdbusinternalfilters.cpp: Decouple the introspection
        function in two so taht we get the chance to introspect
        without having a QDBusMessage (r534102)

        * qt/qdbusbus.h:
        * qt/qdbusconnection.cpp:
        * qt/qdbusconnection_p.h:
        * qt/qdbusintegrator.cpp: Keep a list of our own names to
        avoid a round-trip to the server when attempting to introspect
        one of our own objects. Also make sure the filter functions
        match the empty interface as well. (r534108)
        Don't keep the connection names. Instead, trust the unique
        connection name (r534111)
        Remove event loop usage (r534112)
2006-04-29 12:44:31 +00:00
Thiago Macieira
47999a1c43 * qt/qdbusintegrator.cpp: Fix assertion failure spotted by
Brad Hards.
2006-04-29 10:07:42 +00:00
Robert McQueen
3658482ceb 2005-04-28 Robert McQueen <robot101@debian.org>
* glib/dbus-gproxy.c: Fix properties so that they can be given in
	any order, making it easier for people who inherit from this
	object.
2006-04-28 21:11:28 +00:00
Robert McQueen
b3f18b3040 2005-04-28 Robert McQueen <robot101@debian.org>
* glib/dbus-gvalue-utils.c: Patch from Jakub Stachowski to fix leaking
	of memory from within pointer arrays and lists. Fixes bug #6300.
2006-04-28 21:02:16 +00:00
Robert McQueen
6055e1cf44 2005-04-28 Robert McQueen <robot101@debian.org>
* glib/dbus-gvalue.c: Patch from Jakub Stachowski to fix a leak in
	generating struct signatures. Fixes bug #6083.
2006-04-28 20:36:56 +00:00
Robert McQueen
9d7ef062be 2005-04-28 Robert McQueen <robot101@debian.org>
* qt/Makefile.am: Tweak CLEANFILES from qdbusconnection.moc
	to qdbusconnection_p.moc.
2006-04-28 20:09:17 +00:00
John (J5) Palmieri
63b74faa74 2006-04-24 John (J5) Palmieri <johnp@redhat.com>
* README, INSTALL: Doc fixes
	Patch from Brad Hards <bradh at frogmouth.net>
2006-04-24 15:28:42 +00:00
Thiago Macieira
21a1fcbc0a * qt/examples/dbus.cpp: Use the new merged-interface mode for
the dynamic meta object. No need to guess which interface to
	call.
2006-04-23 19:06:55 +00:00
Thiago Macieira
4eb5b11af7 * qt/qdbusconnection_p.h:
* qt/qdbusmetaobject.cpp:
	* qt/qdbusmetaobject_p.h:
	* qt/qdbusintegrator.cpp: Use the new merged-interface mode
	for the dynamic meta object. No need to guess which
	interface to call.
	* qt/qdbusabstractinterface_p.h:
	* qt/qdbusconnection.cpp:
	* qt/qdbusintegrator.cpp:
	* qt/qdbusinterface.cpp:
	* qt/qdbusinterface.h: Make findInterface always return a non-null pointer.
	Add a QDBusRef that looks and behaves like DCOPRef.
2006-04-23 19:04:53 +00:00
Thiago Macieira
bed69341bb * dbus/dbus-connection.c: Interfaces are optional in method
calls, so don't give up if the interface parameter is NULL.
	Patch reviewed by Havoc Pennington.
2006-04-23 18:54:47 +00:00
Thiago Macieira
02b7fc2df3 * qt/qdbusreply.h: Add default constructor and operator=
(r532625)
	* qt/qdbustypehelper_p.h: Use a clean namespace: no foreach()
          in public headers (r532952)
	* qt/qdbusabstractinterface.cpp:
	* qt/qdbusabstractinterface_p.h: Add the AutoDetect mode and
          make it the default (r532951)
2006-04-23 15:17:28 +00:00
John (J5) Palmieri
fe98935104 2006-04-19 John (J5) Palmieri <johnp@redhat.com>
* dbus/dbus-connection.c: Fix asserts
	Patch from Tim Moloney <t.moloney at verizon.net>
2006-04-19 19:08:23 +00:00
John (J5) Palmieri
3213532f30 2006-04-19 John (J5) Palmieri <johnp@redhat.com>
* mono/Connection.cs, mono/Message.cs: Check Target type
	Patch from Aaron Bockover (abockover at novell.com)
2006-04-19 16:02:24 +00:00
Thiago Macieira
8e3ad4c758 * INSTALL: fine-tune the requirements for the Qt4 binding. 2006-04-17 19:31:49 +00:00
Daniel P. Berrange
8c09e5e06c Added support for printing of all remaining data types. Fixed logic for indentation of compound data types. 2006-04-16 18:14:51 +00:00
Daniel P. Berrange
c47959a62d Fill out content for INSTALL file with useful info on building DBus & generic Auto* instructions 2006-04-16 17:53:45 +00:00
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