Commit Graph

21 Commits

Author SHA1 Message Date
Erik Verbruggen
3fa55b7ab9 Removed module names from #include directives.
Getting the #include directives ready for Qt5. This includes the
new-project wizards.

Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2012-02-15 16:24:46 +01:00
Fawzi Mohamed
454e2c3928 zeroconf: change hadError, export printing functions
This changes the hadError signal replacing it with errorMessage and hadFailure.
code using it will need fixing

Change-Id: Idf271b1d166242788e1059cdd019aa9473a09d74
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@nokia.com>
2012-02-08 10:16:42 +01:00
Friedemann Kleint
be8c7fc356 Zeroconf: Compile with MinGW.
Change-Id: I01a24619728adc8f6f8bad6a8b50693c381600b1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-02-02 16:27:00 +01:00
Denis Mingulov
a36d587ccf Fix non-needed usage of QString's fromLocal8Bit() and fromUtf8()
QString::fromLocal8Bit() and QString::fromUtf8() are much more slower
than an obvious QString::fromLatin1() and QLatin1String(), so this
commit changes some places where these functions are really not
needed.

QString::fromLatin1() is used in case if QString object is used
immediately (something like QString::fromLatin1().arg()),
QLatin1String is used otherwise like in other places (for example,
QPixmap(QLatin1String("..."))) - to allow to use default QString
constructor and work with QT_NO_CAST_FROM_ASCII.

Change-Id: Ib6eb1c61e9cb35c7c5b7569fea77c5e41d32621a
Reviewed-by: hjk <qthjk@ovi.com>
2012-01-30 17:50:45 +01:00
hjk
2931a499e6 Long live the king!
Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-01-26 19:55:36 +01:00
tjenssen
0b64fe80dc fix zeroconf on windows
Change-Id: I54e5c284d7fe109fe2fe6b0f50b25acfc3868a71
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-01-26 09:36:40 +01:00
Fawzi Mohamed
d967856b60 zeroconf: IPv6 support, triggerRefresh, better avahi support
Change-Id: If4e5e284d7ee109fe2fe6b0f50b25acfc3868a72
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@nokia.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2012-01-25 17:47:29 +01:00
Jarek Kobus
bf197d7a12 Compile fix for Mac 10.5.8 gcc 4.0.1
Change-Id: I1dfadc781485649bbc9c5b6c952297cdea80d95b
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2012-01-09 10:34:17 +01:00
Friedemann Kleint
2d141afe7a Qt Creator: Compile with Qt 5.
Introduce #ifdefs for incompatible changes in QAtomicPointer
and QAtomicInt.

Change-Id: Ice03a2cc8b3aed174e549827cfcf737764c41642
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
2011-12-12 13:51:43 +01:00
Eike Ziller
d1d85ba912 more s/info@qt.nokia.com/qt-info@nokia.com/
Change-Id: I5eecac63f45cf5bd192bd2ee42370d6338c1ec9f
Reviewed-by: hjk <qthjk@ovi.com>
2011-11-11 10:53:34 +01:00
Fawzi Mohamed
243a677110 zeroconf: fix wrong QMutexLocker usage
Replacing function declaration with local variable definition.

Change-Id: I8fd9be2bd83bab9a61c93361ce1da517315f0495
Reviewed-by: Bill King <bill.king@nokia.com>
2011-11-09 09:34:40 +01:00
Fawzi Mohamed
6ea6906022 zeroconf: codestyle
Trying to avoid long lines and fixing other spacing issues.

Change-Id: Ie0024743ef66c52a7922be046a8f7d8701a94ad6
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-10-31 11:47:36 +01:00
Fawzi Mohamed
3c4f6cd41b zeroconf: correct txt record handling, small avahi fixes
Change-Id: I660c12773a39655eec45d5ab3e00f70f5590dda7
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-10-31 11:44:56 +01:00
Fawzi Mohamed
25c983a448 zeroconf: initLib/setDefaultZConfLib related cleanups
Renamed initLib to setDefaultZConfLib.
Use shared pointers for libs: avoid small leak for each call to initLib.
Renamed nativeLib to more logical dnsSdLib.
Print in ~ServiceBrowserPrivate only if DEBUG_ZEROCONF.

Change-Id: Icf76bba490c2ece46769253555b28c1220b44c23
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-10-28 13:44:47 +02:00
Fawzi Mohamed
63ff12e051 zeroconf: async startBrowsing
Asynchronous startBrowsing (quick return), and avoid infinite
retry if daemon starts but stops due to insufficient privilegies.

Change-Id: I2b4ef5b5ad9ab0a581d2ac169eeac3ba73df5376
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-10-27 15:29:04 +02:00
Fawzi Mohamed
7ebbc12bde zeroconf: fix windows building
Correct exports, fixed commented out ifdef, moved socket including to a separate header.

Change-Id: Iadb6f58e2c3dbadee411fc0df7c7519c1d90309d
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
2011-10-18 15:53:24 +02:00
Fawzi Mohamed
bb5c27c180 zeroconf: native avahi, and working fallbacks
* supports avahi through its native interface
* starts embedded deamon if found
* tested all fallbacks on ubuntu
* Service is a normal object now
* several smaller improvements
Change-Id: I36288ec6fcefb64a60b6284e4d86d4b589ba37b5
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-10-18 11:50:32 +02:00
Christian Kandeler
7f94c10279 ZeroConf: Interface improvements.
Change-Id: I1966d375167612675ac78a40de4060ff1810c9d4
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2011-10-12 16:39:11 +02:00
Fawzi Mohamed
8538459e6d zeroconf: set exports consistently
Fixes build on windows.

Change-Id: I46d918aa9e22843f073f0ebae05dc4da2b701834
Reviewed-on: http://codereview.qt-project.org/6366
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2011-10-10 20:59:43 +02:00
Christian Kandeler
d6a68b64ed ZeroConf: Make compile with namespaced Qt.
Fix coding style issues along the way.

Change-Id: I73b3774264614d2fd3b5e32dc9921f921a1d818f
Reviewed-on: http://codereview.qt-project.org/6336
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-10-10 15:35:05 +02:00
Fawzi Mohamed
f25f1858f0 first version of the zeroconf lib
allows browsing (detection) of services using dns-sd, i.e.
DNS Service Discovery, or Bonjour see http://www.zeroconf.org/
The exposed interface is reentrant and threadsafe

Change-Id: I957d69696aa3c8ad625e074389b649b00b9153cf
Reviewed-on: http://codereview.qt-project.org/5410
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
2011-10-10 14:35:46 +02:00