removed sailfish contact sync support
This commit is contained in:
parent
83f0c54f8b
commit
f3dd33c4ca
2 changed files with 20 additions and 20 deletions
|
@ -17,28 +17,28 @@
|
|||
along with Fernschreiber. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import QtQuick 2.0
|
||||
import org.nemomobile.contacts 1.0
|
||||
//import org.nemomobile.contacts 1.0
|
||||
|
||||
Item {
|
||||
|
||||
signal syncError();
|
||||
// signal syncError();
|
||||
|
||||
function synchronize() {
|
||||
if (peopleModel.count === 0) {
|
||||
appNotification.show(qsTr("Could not synchronize your contacts with Telegram."));
|
||||
syncError();
|
||||
} else {
|
||||
contactsModel.startImportingContacts();
|
||||
for (var i = 0; i < peopleModel.count; i++ ) {
|
||||
contactsModel.importContact(peopleModel.get(i));
|
||||
}
|
||||
contactsModel.stopImportingContacts();
|
||||
}
|
||||
}
|
||||
// function synchronize() {
|
||||
// if (peopleModel.count === 0) {
|
||||
// appNotification.show(qsTr("Could not synchronize your contacts with Telegram."));
|
||||
// syncError();
|
||||
// } else {
|
||||
// contactsModel.startImportingContacts();
|
||||
// for (var i = 0; i < peopleModel.count; i++ ) {
|
||||
// contactsModel.importContact(peopleModel.get(i));
|
||||
// }
|
||||
// contactsModel.stopImportingContacts();
|
||||
// }
|
||||
// }
|
||||
|
||||
PeopleModel {
|
||||
id: peopleModel
|
||||
requiredProperty: PeopleModel.PhoneNumberRequired
|
||||
}
|
||||
// PeopleModel {
|
||||
// id: peopleModel
|
||||
// requiredProperty: PeopleModel.PhoneNumberRequired
|
||||
// }
|
||||
|
||||
}
|
||||
|
|
|
@ -12,14 +12,14 @@ Name: harbour-fernschreiber
|
|||
|
||||
Summary: Fernschreiber is a Telegram client for Sailfish OS
|
||||
Version: 0.17
|
||||
Release: 1
|
||||
Release: 2
|
||||
Group: Qt/Qt
|
||||
License: LICENSE
|
||||
URL: http://werkwolf.eu/
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
Source100: harbour-fernschreiber.yaml
|
||||
Requires: sailfishsilica-qt5 >= 0.10.9
|
||||
Requires: nemo-qml-plugin-contacts-qt5
|
||||
#Requires: nemo-qml-plugin-contacts-qt5
|
||||
BuildRequires: pkgconfig(sailfishapp) >= 1.0.2
|
||||
BuildRequires: pkgconfig(Qt5Core)
|
||||
BuildRequires: pkgconfig(Qt5Qml)
|
||||
|
|
Loading…
Reference in a new issue