From 00377c1d324c03f07e9d2c3d19dce12ce3dc6620 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Thu, 23 Aug 2018 12:21:43 +0200 Subject: Revert "Add caldav and carddav URLs + rename Gmail -> Google" This reverts commit ef1cf433c9598430654e87790fdb1be11f82ecd1. --- accounts/google/googlesettings.cpp | 63 -------------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 accounts/google/googlesettings.cpp (limited to 'accounts/google/googlesettings.cpp') diff --git a/accounts/google/googlesettings.cpp b/accounts/google/googlesettings.cpp deleted file mode 100644 index 6c4c32de..00000000 --- a/accounts/google/googlesettings.cpp +++ /dev/null @@ -1,63 +0,0 @@ -/* - Copyright (c) 2016 Christian Mollekopf - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ -#include "googlesettings.h" - -GoogleSettings::GoogleSettings(QObject *parent) - : AccountSettings(parent) -{ -} - -void GoogleSettings::load() -{ - loadAccount(); - loadImapResource(); - loadMailtransportResource(); - loadIdentity(); -} - -void GoogleSettings::save() -{ - mImapServer = "imaps://imap.gmail.com:993"; - mImapUsername = mEmailAddress; - - mSmtpServer = "smtps://smtp.gmail.com:587"; - mSmtpUsername = mEmailAddress; - - mCardDavServer = QStringLiteral("https://www.googleapis.com/carddav/v1/principals/") + mEmailAddress + "/"; - mCardDavUsername = mEmailAddress; - - mCalDavServer = QStringLiteral("https://www.google.com/calendar/dav/") + mEmailAddress + "/"; - mCalDavUsername = mEmailAddress; - - saveAccount(); - saveImapResource(); - saveMailtransportResource(); - saveCardDavResource(); - saveCalDavResource(); - saveIdentity(); -} - -void GoogleSettings::remove() -{ - removeResource(mMailtransportIdentifier); - removeResource(mImapIdentifier); - removeIdentity(); - removeAccount(); -} - -- cgit v1.2.3