Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KDE Connect
Commits
320c070c
Commit
320c070c
authored
May 05, 2019
by
Simon Redman
Browse files
Move contacts synchronization to connected method
parent
1d9ea25c
Pipeline
#3425
failed with stage
in 8 minutes and 37 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
plugins/contacts/contactsplugin.cpp
View file @
320c070c
...
...
@@ -53,11 +53,13 @@ ContactsPlugin::ContactsPlugin(QObject* parent, const QVariantList& args) :
qCWarning
(
KDECONNECT_PLUGIN_CONTACTS
)
<<
"handleResponseVCards:"
<<
"Unable to create VCard directory"
;
}
synchronizeRemoteWithLocal
();
qCDebug
(
KDECONNECT_PLUGIN_CONTACTS
)
<<
"Contacts constructor for device "
<<
device
()
->
name
();
}
void
ContactsPlugin
::
connected
()
{
synchronizeRemoteWithLocal
();
}
bool
ContactsPlugin
::
receivePacket
(
const
NetworkPacket
&
np
)
{
//qCDebug(KDECONNECT_PLUGIN_CONTACTS) << "Packet Received for device " << device()->name();
//qCDebug(KDECONNECT_PLUGIN_CONTACTS) << np.body();
...
...
plugins/contacts/contactsplugin.h
View file @
320c070c
...
...
@@ -93,8 +93,7 @@ public:
explicit
ContactsPlugin
(
QObject
*
parent
,
const
QVariantList
&
args
);
bool
receivePacket
(
const
NetworkPacket
&
np
)
override
;
void
connected
()
override
{
}
void
connected
()
override
;
QString
dbusPath
()
const
override
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment