150 Commits

Author SHA1 Message Date
sangelovic
1e455b8ef3 Fix inline variable since in v0.7 version line we still support gcc 6 2020-01-25 22:31:41 +01:00
sangelovic
f41d9bc395 Fix issue of event loop thread and synchronous method call thread polling on the same D-Bus connection
Synchronous D-Bus method calls are now done in terms of blocking asynchronous calls.
2020-01-19 18:51:19 +01:00
Stanislav Angelovic
121ed1a975 Fix clang-8 compilation errors and warnings 2020-01-05 12:52:37 +01:00
sangelovic
839bc13625 Make Connection const-correct and fix integration tests build error 2019-11-10 17:40:33 +01:00
Bruno Marchand
5fe0f503ca Add a method to retrieve the unique name of a connection 2019-11-10 17:34:57 +01:00
sangelovic
d50a15b2a2 Move C++17 uncaught_exceptions to public API 2019-11-10 17:31:58 +01:00
Jay
099bc857ad Add support for opening a connection to a remote system bus using ssh (#77) 2019-11-03 20:21:39 +01:00
lubo-svk
c139110112 Add support for custom timeout value for D-Bus method calls (#72) 2019-11-03 13:54:13 +01:00
hogliux
0440dcb15b Added ability to integrate with foreign event loops 2019-10-08 22:09:05 +02:00
sangelovic
e30ce194ab Add getSenderName method to Message 2019-10-06 11:28:16 +02:00
Stanislav Angelovič
a09362f79a Switch from plain UnixFd to owning UnixFd (#69) 2019-07-08 09:53:53 +02:00
Stanislav Angelovic
9826d28f51 Add missing Factory friend to Message subclasses 2019-06-11 20:29:45 +02:00
Stanislav Angelovic
ab34b0ae50 Update header doxy comments in source files 2019-06-11 20:18:37 +02:00
sangelovic
ff944c9e95 Add protected non-virtual destructor in generated classes 2019-06-10 22:54:16 +02:00
sangelovic
7049d00a78 Remove unnecessary std::move of parameters (thanks to @ardazishvili)
Fixes part of #52
2019-06-10 22:03:02 +02:00
sangelovic
236c10ff56 Resolve a few clang-tidy suggestions and warnings (thanks to @ardazishvili)
Fixes part of #52.
2019-06-10 21:54:02 +02:00
Stanislav Angelovič
dcad208ffe Redesign inheritance from Message (#62)
... so that the code is more idiomatic, clear and expressive about its intended use
2019-06-10 21:38:30 +02:00
sangelovic
57c840637c Add support for Unix fd D-Bus type 2019-06-10 21:19:56 +02:00
Stanislav Angelovic
5c0a8d5ab4 Add object manager automatically in ObjectManager_adaptor constructor 2019-06-05 12:18:04 +02:00
sangelovic
946cc8d0cd Fix indentation of doxygen comments 2019-06-04 22:21:49 +02:00
sangelovic
38b51bddc6 Add support for ObjectManager's InterfaceAdded/Removed signals on server side 2019-06-03 23:47:27 +02:00
Stanislav Angelovič
01e2a7a570 Add support for PropertyChanged signal on server side 2019-06-03 22:02:15 +02:00
Stanislav Angelovič
91fa35140b Add support for ObjectManager and other standard D-Bus interfaces (#55)
Fixes #50
2019-05-29 22:28:15 +02:00
Stanislav Angelovič
4b0c23204d Add object manager support to IConnection interface (#54) 2019-05-27 20:51:42 +02:00
sangelovic
e3a74a3ff2 Add unregister function to IObject and IProxy API 2019-04-13 21:17:37 +02:00
sangelovic
93b6e5237a Clean up some names (rename classes, methods, files)
* ConvenienceClasses.h/.inl/.cpp -> ConvenienceApiClasses.h/.inl/.cpp
  * IObjectProxy class -> IProxy
  * Interfaces class -> AdaptorInterfaces
  * Interfaces.h -> split into AdaptorInterfaces.h and ProxyInterfaces.h
  * createObjectProxy() method -> createProxy()
2019-04-09 21:28:07 +02:00
Stanislav Angelovic
94fd3c88d8 Add getConnection() method to IObject so we ask Object about its connection 2019-04-04 20:39:03 +02:00
sangelovic
08945acbc4 Simplify and unify callback design for both sync and async methods 2019-04-03 00:05:20 +02:00
sangelovic
878ce6fa5c Update doxygen documentation as well as tutorial 2019-03-29 22:23:25 +01:00
Stanislav Angelovic
1c4abab3e4 Remove executable bit erroneously set on source files 2019-03-27 17:53:31 +01:00
Stanislav Angelovic
cbf2218301 Remove unnecessary forward declarations from Message.h 2019-03-27 14:41:30 +01:00
Stanislav Angelovič
fd7be39dd4 Re-design sdbus-c++ approach to connections (#47)
Fixes #33 , among others
2019-03-25 16:28:31 +01:00
Stanislav Angelovič
663df31398 Introduce support for asynchronous D-Bus method calls on the client side (#42)
Fixes #32
2019-03-25 14:45:48 +01:00
sangelovic
b813680192 Allow ObjectPath and Signature be created from std::string 2019-02-19 08:57:24 +01:00
sangelovic
cd1efd66a5 Add essential information to doxy comments of ProxyInterfaces constructors 2019-01-25 19:59:09 +01:00
sangelovic
1dafd6262c Add essential information to doxy comments of createObjectProxy 2019-01-25 19:24:20 +01:00
Stanislav Angelovič
9c0e98c580 Introduce support for some common D-Bus annotations (#30)
* Add ability to declare property behavior on PropertyChanged signal

* Add support for Method.NoReply annotation (WIP)

* Add support for common annotations/flags
2019-01-10 08:47:59 +01:00
Stanislav Angelovič
1def4e247a Add note on thread-safety of Variant and its const methods 2018-12-29 00:59:31 +01:00
Stanislav Angelovič
a6bb8c070e Switch from autotools to CMake build system (#23)
* Switch from autotools to CMake

* CMake: require at least cmake 3.8

* cmake: updates for tests
2018-09-26 09:28:10 +02:00
sangelovic
ec06462713 Add missing constructor overload for ProxyInterfaces 2018-08-06 22:58:36 +02:00
Stanislav Angelovič
fa878e594c Be explicit on apply function from sdbus namespace (#17) 2018-07-24 12:55:33 +02:00
Stanislav Angelovič
d8fd053714 Introduce support for asynchronous server-side methods (#12)
* Add preliminary changes for async server methods

* Refactor the Message concept and break it into distinctive types

* Continue working on async server methods (high-level API mainly)

* Continue developing support for async server

* Finishing async server methods

* Finishing async server methods (fixing tests & cleaning up)

* A little code cleaning

* Add unit tests for type traits of free functions

* Support for generating async server methods in stub headers

* Update ChangeLog for v0.3.0

* Update the tutorial with how to use async server-side methods

* Update the TOC in sdbus-c++ tutorial

* Update numbering in TOC

* Remove unnecessary code

* Final cleanups
2018-07-02 11:22:00 +02:00
Marek Szanyi
a395adbecf Change in logic when constructor is available 2018-06-05 15:52:59 +02:00
Marek Szanyi
dafd7a791a Provide compiler specific ctor for Struct 2018-05-29 13:36:49 +02:00
Stanislav Angelovic
d68be891ee Revert modification for clang, for now it fails on gcc 2018-03-15 17:16:23 +01:00
Stanislav Angelovic
2564bbfb21 Add object proxy factory overload that takes unique_ptr to connection 2018-03-15 17:03:49 +01:00
Stanislav Angelovic
933e8e204d Make sure that Variant conversion operator is only present for true D-Bus type represntations in C++ 2018-03-15 16:22:06 +01:00
Stanislav Angelovič
b81c4b494c Add clang workaround comment 2018-02-27 08:26:42 +00:00
Viliam Lejcik
dc5ec014eb Added constructor for sdbus::Struct 2017-12-18 19:19:27 +01:00
Stanislav Angelovic
35f725a053 Introduce sdbus-c++ v0.2.3 2017-11-27 14:13:55 +01:00