Commit graph

377 commits

Author SHA1 Message Date
Aleix Pol
05491442e6 Make it possible to fetch the device from the DevicesModel from QML
Uses the row as the argument instead of the QModelIndex.
Defines the Device type so it can be used from QML.

REVIEW: 123361
2015-04-15 13:00:23 +02:00
David Rosca
b71b39761d KCM: Use currentChanged signal instead of clicked in deviceList
Using currentChanged signal it is now possible to select devices
with keyboard.
It also no longer refreshes plugin info when clicking on already
selected device.

REVIEW:123308
2015-04-09 17:47:01 +02:00
Ashish Bansal
c8eb5e3074 Changed KF5 5.8 to 5.9 2015-04-09 16:22:56 +05:30
l10n daemon script
8349588c77 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2015-04-06 09:54:12 +00:00
l10n daemon script
92cd693566 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2015-03-29 09:58:52 +00:00
l10n daemon script
08eaaf11e1 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2015-03-25 09:09:47 +00:00
Albert Vaca
f237a659ec Added a link to the Android app from the KCM 2015-03-23 00:39:36 -07:00
Albert Vaca
60d85932db Sort devices alphabetically in KCM 2015-03-22 23:08:37 -07:00
Aleix Pol
c7cee37330 Port away from KServiceTrader
Uses KPluginLoader+KPluginMetadata instead.
Describes plugins in json instead of desktop files. These desktop files are
then embedded into the .so file. All the plugins will be in a kdeconnect/
directory, and those will be the ones to look for.

Note it doesn't drop the KService dependency as KIOCore is a KDE Connect
dependency as well.

REVIEW: 123042
2015-03-19 16:36:53 +01:00
Aleix Pol
63bb2bda85 Fix build
We require KF5 5.9 but the frameworks haven't updated the version
name, so keep the last version for sanity.
2015-03-14 14:33:12 +01:00
Albert Vaca
02a2990720 Added a baseclass for the plugins' KCMs and a class for the plugins' config
Centralizing the plugins' config will ensure that all the plugins store it
the same way (ie: not in random files scattered around, like until now).
The base KCM class, together with the already existing base plugin class,
will give easy access to all the plugins to this centralized config. Also,
now the settings are not shared across devices (that is: every device can
have different config for a same plugin).

Note: This commit requires KCMUtils 5.9

REVIEW: 122927
2015-03-13 21:22:21 -07:00
Albert Vaca
d8a2aac952 Merge branch 'master' into frameworks 2015-03-01 21:33:47 -08:00
Albert Vaca
b0cc45b52a You can now change your name (the one seen by other devices on the network) 2015-03-01 21:23:05 -08:00
Albert Vaca
c7c91c1289 Added KdeConnectConfig class that aims to be a KConfig abstraction
Benefits:
- We had config files in different paths, now they will be centralized.
- Daemon, LanLinkProvider and NetworkPackage depend only on Qt now.
- KConfig is accessed with strings as keys, where a typo can go unnoticed.
- Daemon is now thinner, as it doesn't need to initialize config values.
- QCA::Initializer is in a single place now (was in Daemon and Plugin).
2015-03-01 20:16:07 -08:00
Albert Vaca
7591e783ca Implemented sizeHint for KCM, so it doesn't open in a super small window 2015-03-01 16:09:42 -08:00
Albert Vaca
567796231b Connecting to clicked instead of pressed on KCM's buttons 2015-03-01 16:09:42 -08:00
l10n daemon script
5f0811dff8 SVN_SILENT made messages (.desktop file) 2015-02-21 04:46:14 +00:00
Albert Vaca
dcfec8c593 Merge branch 'master' into frameworks 2015-02-03 19:05:12 -08:00
Albert Vaca
438f9a1846 Added a menu entry for the KCM in non-kde desktops 2015-01-30 22:22:37 -08:00
Albert Vaca
6cc6d287fc Merge branch 'master' into frameworks
Conflicts:
	cli/kdeconnect-cli.cpp
	core/filetransferjob.cpp
	core/filetransferjob.h
	interfaces/notificationsmodel.cpp
	plasmoid/declarativeplugin/kdeconnectdeclarativeplugin.h
	plugins/sftp/sftpplugin.cpp
2015-01-20 22:44:31 -08:00
l10n daemon script
c805f91411 SVN_SILENT made messages (.desktop file) 2015-01-21 03:54:34 +00:00
l10n daemon script
917104ff99 SVN_SILENT made messages (.desktop file) 2014-12-26 04:20:08 +00:00
l10n daemon script
365b2c55b2 SVN_SILENT made messages (.desktop file) 2014-12-25 04:06:46 +00:00
Albert Vaca
2b13d0825c Merge branch 'master' into frameworks
Conflicts:
	kded/CMakeLists.txt
2014-11-22 09:29:05 -08:00
l10n daemon script
e15af622b7 SVN_SILENT made messages (.desktop file) 2014-11-15 04:11:51 +00:00
Lukáš Tinkl
728dab0353 fix memleak
the Designer UI has to be deleted
2014-11-10 20:36:12 +01:00
Aleix Pol
21ab5a4f81 Merge branch 'master' into frameworks
Mostly kDebug -> qCDebug
Also some KCmdLineArgs -> QCommandLineParser

Conflicts:
	cli/kdeconnect-cli.cpp
	core/CMakeLists.txt
	core/backends/lan/lanlinkprovider.cpp
	core/daemon.cpp
	core/pluginloader.cpp
	interfaces/CMakeLists.txt
	kio/kiokdeconnect.cpp
	plugins/mousepad/CMakeLists.txt
	plugins/mousepad/mousepadplugin.h
	plugins/mpriscontrol/mpriscontrolplugin.cpp
	plugins/sftp/sftpplugin.cpp
2014-11-04 19:12:29 +01:00
l10n daemon script
3b192ea18e SVN_SILENT made messages (.desktop file) 2014-11-02 04:01:28 +00:00
Àlex Fiestas
f961fe0d9f Port kcm free of KDELibs4Support 2014-09-22 09:35:40 +02:00
Àlex Fiestas
677f650216 Removed K_EXPORT_PLUGIN, no longer needed
With kf5 this is not longer needed. removing it!
2014-09-22 02:40:51 +02:00
Àlex Fiestas
9c13e92e55 Port KCM to QStandardPaths
Both core return the same.
2014-09-22 01:23:47 +02:00
Àlex Fiestas
93054601b9 Removed unused kdebugnamespace, makes kcm kDebug free 2014-09-22 00:17:56 +02:00
Lukáš Tinkl
743f7548e0 i18n fixes 2014-09-08 03:09:18 +02:00
Elias Probst
0b67371b11 Correct kcmshell version in desktop files (4 → 5).
REVIEW: 119856
2014-08-20 14:58:48 +02:00
Albert Vaca
e809fa441c Added a refresh button to KCM, just in case.
We already have a refresh button on Android.
2014-08-11 18:57:49 +02:00
Albert Vaca
a3b89da9c7 Minor changes 2014-08-11 18:57:48 +02:00
Albert Vaca
a303b73238 Merge branch 'master' into frameworks
Conflicts:
	cli/kdeconnect-cli.cpp
	core/CMakeLists.txt
	plasmoid/package/contents/ui/FullRepresentation.qml
	plugins/ping/pingplugin.cpp
2014-07-01 23:59:38 +02:00
Albert Vaca
cabb0f2f7b Simplified debug areas so we only have one, called "kdeconnect" 2014-07-01 01:26:08 +02:00
Aleix Pol
c8dbbed685 Move the send ping code to the ping plugin
turn it into a dbus call to the plugin

Reviewed by Albert Vaca
2014-06-27 18:21:40 +02:00
Aleix Pol
16aaa9f77c Merge branch 'master' into frameworks 2014-06-21 02:06:50 +02:00
l10n daemon script
c23b83ea09 SVN_SILENT made messages (.desktop file) 2014-06-19 04:30:11 +00:00
Aleix Pol
bf272ea3e7 Remove usage of KDE4_ variables 2014-06-18 02:39:30 +02:00
Aleix Pol
a1a560c469 First approach to a KF5 port of KDE Connect
Ported using KDELibs4Support, for a smaller delta, so we can keep
developing on master until we decide not to.

At the moment, it builds and installs but tests don't pass because
of a QCA2 initialization problem I didn't manage to debug yet.

CCMAIL: kdeconnect@kde.org
2014-06-16 20:02:07 +02:00
Aleix Pol
b88897847b Reorganize sources
We broke kded into core and kded, core contains the library with the backends
and plugins.
Also we renamed libkdeconnect to interfaces.
2014-06-14 15:22:40 +02:00
Alexandr Akulich
f8fe1f3f6c kcm: Added DevicesModel declaration to move it's definition to implementation. 2014-06-14 13:06:12 +02:00
l10n daemon script
c641fd50c0 SVN_SILENT made messages (.desktop file) 2014-06-04 04:19:06 +00:00
l10n daemon script
ab3d38d677 SVN_SILENT made messages (.desktop file) 2014-05-31 04:21:12 +00:00
l10n daemon script
fe7763026d SVN_SILENT made messages (.desktop file) 2014-04-20 04:38:36 +00:00
Albert Vaca
4dcbb3531a Remove the browse filesystem button from KCM 2014-04-05 20:05:22 +02:00
l10n daemon script
13970fed8b SVN_SILENT made messages (.desktop file) 2014-03-26 04:43:05 +00:00
l10n daemon script
b6475a8d37 SVN_SILENT made messages (.desktop file) 2014-03-24 04:36:04 +00:00
l10n daemon script
bb28de3373 SVN_SILENT made messages (.desktop file) 2014-03-18 05:07:34 +00:00
l10n daemon script
b3bfb41f29 SVN_SILENT made messages (.desktop file) 2014-03-10 04:46:57 +00:00
Albert Vaca
a2ece14400 Hashbang not needed on desktop files 2014-03-08 10:08:39 +01:00
l10n daemon script
5290189811 SVN_SILENT made messages (.desktop file) 2014-03-05 04:38:53 +00:00
l10n daemon script
24c4a6ab44 SVN_SILENT made messages (.desktop file) 2014-03-02 05:38:29 +00:00
l10n daemon script
197405887f SVN_SILENT made messages (.desktop file) 2014-02-24 04:39:11 +00:00
Albert Vaca
29719ccce5 New icon by Malcer <malcer@gmx.com> 2014-02-19 21:10:41 +01:00
Albert Vaca
52e822ef28 That was an "additional category" and we need a "main category" 2014-02-19 19:12:45 +01:00
Albert Vaca
b679c4e2df Fixed desktop file because ubuntu was complaining about it 2014-02-19 17:48:02 +01:00
l10n daemon script
0ec9ea1706 SVN_SILENT made messages (.desktop file) 2014-02-19 05:17:04 +00:00
l10n daemon script
22f34ecde1 SVN_SILENT made messages (.desktop file) 2014-02-17 04:41:38 +00:00
l10n daemon script
cf65ef9fc7 SVN_SILENT made messages (.desktop file) 2014-02-16 06:56:20 +00:00
l10n daemon script
ffba8bedc3 SVN_SILENT made messages (.desktop file) 2014-02-15 04:22:13 +00:00
Rohan Garg
a14517a486 Add a desktop file so that app-install-data can pick it up and display
it on software center's

REVIEWED-BY: Albert Vaca <albertvaka@gmail.com>
2014-02-14 20:40:08 +01:00
Albert Vaca
6b94e7faf8 Merge branch 'qmlsftp'
Conflicts:
	kded/daemon.cpp
2014-02-14 13:07:52 +01:00
l10n daemon script
a64d6cd215 SVN_SILENT made messages (.desktop file) 2014-02-01 04:09:05 +00:00
Samoilenko Yuri
9fc9e72374 Code cleaning and stabilization
- SftpDbusInterface merged to SftpPlugin object
- mountpoint cleaning technique to avoid fuse errors with dangling mountpoints
2014-01-15 20:36:01 +04:00
Samoilenko Yuri
e74627ce15 dirty kcm integration 2014-01-07 01:01:21 +04:00
l10n daemon script
787e8e892f SVN_SILENT made messages (.desktop file) 2013-12-06 04:27:58 +00:00
Albert Vaca
0e3b062f5e Changed KCM name from "Devices" to "KDE Connect" 2013-12-05 14:30:22 +01:00
l10n daemon script
e9a4e939ef SVN_SILENT made messages (.desktop file) 2013-11-25 04:11:57 +00:00
l10n daemon script
7e270bbc80 SVN_SILENT made messages (.desktop file) 2013-11-11 04:03:02 +00:00
Albert Vaca
6e5de6f437 qDebug -> kDebug with namespaces
Added 3 namespaces: kdeconnect_kded, kdeconnect_kcm and libkdeconnect
2013-11-06 22:16:55 +01:00
l10n daemon script
714867d01d SVN_SILENT made messages (.desktop file) 2013-11-02 03:45:01 +00:00
l10n daemon script
b27651e2e6 SVN_SILENT made messages (.desktop file) 2013-10-14 04:20:28 +00:00
l10n daemon script
5119d17d6d SVN_SILENT made messages (.desktop file) 2013-10-11 04:30:46 +00:00
l10n daemon script
eb346a6d61 SVN_SILENT made messages (.desktop file) 2013-10-07 04:10:17 +00:00
l10n daemon script
7c9bda8d59 SVN_SILENT made messages (.desktop file) 2013-10-01 04:24:39 +00:00
Albert Vaca
ddad10016e Merge branch 'filetransfer-debug' 2013-10-01 03:20:29 +02:00
Albert Vaca
2054288cac KCM updated when pairing state changes externally
Added an unpaired() signal to KDED's Device exported by dbus
2013-10-01 03:20:07 +02:00
Albert Vaca
dfe6c1273a Fixed KCM updating the wrong device if selection was changed
Info displayed when pairing was always shown in the currently selected
device
2013-10-01 03:20:07 +02:00
l10n daemon script
f7bf963efe SVN_SILENT made messages (.desktop file) 2013-09-27 04:29:59 +00:00
Pino Toscano
a70fde3655 fixuifiles 2013-09-24 17:54:12 +02:00
Albert Vaca
f8825e013e KCM updated when pairing state changes externally
Added an unpaired() signal to KDED's Device exported by dbus
2013-09-20 16:03:17 +02:00
Albert Vaca
95cbc13fa9 Fixed KCM updating the wrong device if selection was changed
Info displayed when pairing was always shown in the currently selected
device
2013-09-20 16:03:17 +02:00
l10n daemon script
28f00e0371 SVN_SILENT made messages (.desktop file) 2013-09-20 16:02:43 +02:00
l10n daemon script
40c6ed7388 SVN_SILENT made messages (.desktop file) 2013-09-20 16:02:11 +02:00
l10n daemon script
a344022202 SVN_SILENT made messages (.desktop file) 2013-09-19 04:15:35 +00:00
l10n daemon script
874ac43dab SVN_SILENT made messages (.desktop file) 2013-09-15 04:17:17 +00:00
l10n daemon script
cc8261b849 SVN_SILENT made messages (.desktop file) 2013-09-14 04:02:16 +00:00
Albert Vaca
b22dee3e7e Include clean-up 2013-09-10 15:37:35 +02:00
Albert Vaca
40944cf944 Include clean-up 2013-09-09 18:29:24 +02:00
Albert Vaca
fe6a0a8978 Ooops not compiling again 2013-09-04 23:04:11 +02:00
Albert Vaca
0ff5600ce2 i18n 2013-09-04 21:19:02 +02:00
Albert Vaca
8309879a19 Removed unused add device wizzard 2013-09-04 19:37:58 +02:00
Albert Vaca
1604309ace Added symmetric pairing
A KNotification asks to accept the pairing when the other ends requests it
2013-08-30 19:10:43 +02:00
Albert Vaca
1cb1b26415 Moved DevicesModel and DBusInterfaces to libkdeconnect
Added NotificationsModel to libkdeconnect
2013-08-21 18:25:44 +02:00
Albert Vaca
a1d396ad20 Error checking in KCM, in case KDED is not running
Added a dbus interface isValid check to prevent a crash.

BUG: 323653
2013-08-18 18:22:54 +02:00
Albert Vaca
0eb3f019c9 Minor changes 2013-08-16 09:27:32 +02:00
Albert Vaca
986c49d326 Changed generic license headers 2013-08-16 06:23:54 +02:00
Albert Vaca
04e1705697 Removed extra line breaks 2013-08-16 00:28:07 +02:00
Albert Vaca
d1658564f9 Sort devices by status in KCM.
Some coded added to keep the current selection when reordering.
2013-08-16 00:25:13 +02:00
Albert Vaca
05983267e3 Fixed KCM device list not being refreshed
When a the device visibilita changes
2013-08-15 22:45:33 +02:00
Albert Vaca
622fdcc46e Fixed KCM crash on KDED restart
+ added a new datarole that could be useful to sort
2013-08-15 22:22:11 +02:00
Albert Vaca
4aac44801f KCM icon, name and other texts changed 2013-08-15 21:59:19 +02:00
Albert Vaca
238d81a408 Changing dbus interface to improve communication with kcm and the solid backend 2013-08-13 23:23:32 +02:00
Albert Vaca
88fab1f333 Plugins are now owned by devices and not by daemon
Plugins can no longer emit networkpackages for *every* device.
Plugins are stored in device, wich selectively loads them.
A Device is needed in order to instantiate a Plugin (via PluginLoader)
PluginLoader is a singleton, because every instance of Device need it.
Added KPluginSelector in the KCM to select the plugins to load.
Added architecture explanation to README

Only PingPlugin is working by now.
2013-08-13 05:07:32 +02:00
Albert Vaca
af02ca7c74 Check when empty to avoid a crash 2013-08-08 19:09:42 +02:00
Albert Vaca
a43a479733 Fixed kcm crash 2013-08-07 18:23:45 +02:00
Albert Vaca
3eb6ecaa3f Implemented batterypackageinterface
Fixed CMake macro
2013-07-28 22:00:45 +02:00
Albert Vaca
43932a4300 Added battery reporting via dbus interface 2013-07-26 16:21:19 +02:00
Albert Vaca
ee7f6b0c6d Fixed cmakelists bug that made necessary to run make without -j
Using a nicer dbus syntax in pausemusicpackageinterface
2013-07-25 17:04:58 +02:00
Albert Vaca
54de8fa2fa Android: Uses Apache Mina to abstract socket management
KDE: Housekeeping
2013-07-24 18:42:33 +02:00
Albert Vaca
acadeef76d Rewritten old package emitters and receivers using the new package format
Splitted up ping receiver from notification receiver in KDE
Improved pausemusic receiver
Fixed same computer being discovered multiple times
Fixed some other minor bugs and compilation warnings
2013-07-04 19:17:22 +02:00
Albert Vaca
b1e4e2d836 New networkpackage format and serialization using qjson and qvariantmap (and templates fun) 2013-07-04 01:09:49 +02:00
Albert Vaca
975892dcd0 Yet another refactor, mostly moving code from from daemon class to device class
Device now has a public dbus interface
Removed wizard from kcm: now the main list shows all the devices and you can pair/unpair using a checkbox
Both Kde and Android now use unique device ids
2013-07-03 03:52:44 +02:00
Albert Vaca
213e8ea9ad Fixed android app bug 2013-07-02 15:22:05 +02:00
Albert Vaca
669edf8ea5 It even works now 2013-07-02 02:46:41 +02:00
Albert Vaca
5fbd33e8c5 Implemented communication wizard -> kcm
Renamed androidshine -> kdeconnect
2013-07-02 01:50:32 +02:00
Albert Vaca
5027b7ee8e Device listing in kcm 2013-06-27 14:33:51 +02:00
Albert Vaca
1bdd3eb97b Basic communication between daemon and wizard 2013-06-27 02:26:06 +02:00
Albert Vaca
1f536de7e9 Started wizzard implementation 2013-06-27 02:13:16 +02:00
Albert Vaca
800de8836f DBus communication working 2013-06-25 21:19:17 +02:00
Albert Vaca
df12667f10 Fixed cmake build 2013-06-25 18:43:54 +02:00
Albert Vaca
3ff7779c7c Ooops 2013-06-25 18:08:34 +02:00
Albert Vaca
6e53c5b9c7 KCM skeleton 2013-06-19 16:15:25 +02:00