Klaus Basan
143ac8576a
Log.category for DBus server
2020-01-15 02:44:32 +01:00
Klaus Basan
3171bd5661
Added DBus comment/parameters
2019-05-13 11:20:47 +02:00
Mat Sutcliffe
e9a4c49d68
Ref T547 Update license masthead in all source code files.
2019-02-22 20:36:43 +00:00
Mat Sutcliffe
5a17f43a5b
Ref T488 Update cppcheck suppressions.
2019-02-22 20:34:56 +00:00
Mat Sutcliffe
225ff81252
Ref T485 Adjust CLogMessage and CStatusMessage call sites to use the new API.
2019-02-22 20:34:55 +00:00
Mat Sutcliffe
d6b5dca6b2
Return a default-constructed QString instead of implicitly converting an empty string literal.
2019-02-22 20:23:49 +00:00
Mat Sutcliffe
6c05c5249d
When calling arg() on a QString constructed from a literal, use QStringLiteral.
2019-02-22 20:23:47 +00:00
Mat Sutcliffe
9f85a7b560
Fixed clazy warnings: pass large objects by reference to const.
2019-02-22 20:23:33 +00:00
Roland Winklmeier
461d146619
Test port number string conversion to short instead of int
...
Port numbers have a small range and are typically expressed as short ints.
Therefore test the string conversion to short instead.
2018-08-09 01:25:49 +02:00
Klaus Basan
9cb06c4d56
Ref T192, DBus utility functions, Service name empty for P2P
2017-12-21 19:46:51 +01:00
Klaus Basan
9f889bfce7
Ref T192, case insensitive name check
2017-12-21 19:46:45 +01:00
Klaus Basan
2c2e850668
Ref T192, improved display/log of DBus connection
...
* log level
* more detailed messages
2017-12-21 19:46:42 +01:00
Klaus Basan
424d748f25
Ref T195, DBus server utility function
2017-12-21 19:45:43 +01:00
Klaus Basan
075f19268c
Ref T192, fixed parsing of DBus string
2017-12-21 19:45:38 +01:00
Klaus Basan
807ceb16ac
Ref T173, unregister a DBus service before connecting
...
* In case there is a crash and we reconnect, the old service might be still registered
* "private slots" -> "private"
2017-10-18 22:58:48 +02:00
Roland Winklmeier
366548cf7a
Remove the test connection and custom launch of dbus daemon
...
We cannot easily launch the dbus session ourselves since all other
applications don't know how to connect to it. We need to rely on the
supported solutions on different platforms. If the session bus is not
available, the workarounds would be huge to manually launch it and tell
all clients the session address.
ref T170
2017-10-13 17:01:09 +02:00
Klaus Basan
104d869c19
Ref T125, fixed to static const
2017-09-24 19:53:01 +01:00
Mathew Sutcliffe
50b8fbe8fe
[bug][Windows][Installer][DBus] Install session.conf in the correct location where dbus-daemon will look for it.
...
Summary:
On Windows, libdbus will spawn dbus-daemon when swift tries to connect to the session bus.
The daemon looks for session.conf in the share directory.
This patch ensures session.conf is installed in that directory.
Fixes T79.
Reviewers: rwinklmeier
Reviewed By: rwinklmeier
Subscribers: jenkins
Tags: #swift_pilot_client
Maniphest Tasks: T79
Differential Revision: https://dev.swift-project.org/D22
2017-05-14 17:21:37 +01:00
Mathew Sutcliffe
a8302b310e
refs #937 Resolved clazy warnings: QString::arg.
2017-04-19 19:31:45 +01:00
Mathew Sutcliffe
b7f69c6887
refs #937 Resolved clazy warnings: unnecessary memory allocation.
2017-04-19 19:31:39 +01:00
Mathew Sutcliffe
fce1513dae
refs #937 Resolved clazy warnings: unnecessary detaching of containers.
2017-04-19 19:31:38 +01:00
Roland Winklmeier
5c37ccdbeb
Use CProcessCtrl::startDetached in dbus server and sample
...
refs #866
2017-04-18 00:07:41 +01:00
Klaus Basan
6c72f8491c
refs #883 , improved detection if core is running
...
* use proxy to really ping core (not only checking connection)
* avoid closing Qt default connections -> crash
* some refactoring
2017-02-24 15:21:55 +00:00
Klaus Basan
c1482dca36
Formatting, help text beautifyHelpMessage, improved convertToQString
2017-02-24 15:20:55 +00:00
Roland Winklmeier
df4ac9538a
Fix launching of shipped dbus-daemon
...
When using QProcess::startDetached on Windows, a console Window is
visible. Since dbus-daemon should run silently in the background,
use our customized CProcess instead which supports starting without
console.
This commit also fixes a race condition. CDBusServer launched the
dbus-daemon and immediatly tried to register. If dbus-daemon was not yet
initialized and ready to accept connections, registering the service
failed. This is fixed by a small timeout.
refs #615
2016-05-20 01:42:47 +02:00
Roland Winklmeier
ab1491f085
Rename share/dbus-1 to etc/dbus-1 to not mix it up with data/shared
...
refs #615
2016-05-20 01:41:19 +02:00
Roland Winklmeier
20aa59c537
Properly cleanup open QDBusConnection's
...
Everytime you connect to DBus, the connection stays open until it
is manually disconnected or cleaned up by the QCoreApplication
destructor. In case of xbus, ~QCoreApplication is not necessarily
be called and the connection not cleaned up. Hence do it manually.
refs #615
2016-05-20 01:41:18 +02:00
Roland Winklmeier
3d7a39ed00
Fix BlackMisc header includes
...
* Include only what is used
* Use forward declaration when possible
* Sorted includes
refs #630
2016-05-13 17:05:49 +02:00
Klaus Basan
1b587c2ee8
refs #485 removed some dependencies from CDBusServer
2016-03-18 01:08:16 +00:00
Klaus Basan
41a88266ab
refs #485 , improved p2p address handling
2016-03-18 01:08:10 +00:00
Klaus Basan
79cbcbc88f
refs #485 , remove all objects when closing DBusServer
2016-03-18 01:07:55 +00:00
Klaus Basan
e1505228f2
Fix Jenkins GNU C Compiler Warning
2015-12-08 20:14:13 +01:00
Mathew Sutcliffe
468015949f
refs #520 Should be able to register objects on a P2P connection already established.
2015-11-29 21:29:53 +00:00
Mathew Sutcliffe
370a392860
refs #520 When unregistering DBus objects, also remove them from the map of DBus objects.
2015-11-29 21:20:52 +00:00
Mathew Sutcliffe
01d20c53e7
refs #520 CDBusServer style/cleanup.
2015-11-29 20:14:31 +00:00
Mathew Sutcliffe
fbcc42424d
refs #520 Moved CDBusServer from BlackCore to BlackMisc.
2015-11-28 02:25:56 +00:00