2011-10-18 17:39:51 +02:00
|
|
|
/* ============================================================
|
|
|
|
* QupZilla - WebKit based browser
|
2014-01-11 16:11:42 +01:00
|
|
|
* Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com>
|
2011-10-18 17:39:51 +02:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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 General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
* ============================================================ */
|
2011-10-18 14:30:17 +02:00
|
|
|
#ifndef PROFILEUPDATER_H
|
|
|
|
#define PROFILEUPDATER_H
|
|
|
|
|
2012-02-29 18:33:50 +01:00
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
#include "qz_namespace.h"
|
2011-10-18 14:30:17 +02:00
|
|
|
|
2012-01-21 20:27:45 +01:00
|
|
|
class ProfileUpdater
|
2011-10-18 14:30:17 +02:00
|
|
|
{
|
|
|
|
public:
|
2011-12-27 15:26:32 +01:00
|
|
|
explicit ProfileUpdater(const QString &profilePath);
|
2011-10-18 14:30:17 +02:00
|
|
|
void checkProfile();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void updateProfile(const QString ¤t, const QString &profile);
|
|
|
|
void copyDataToProfile();
|
|
|
|
|
2011-12-14 18:09:43 +01:00
|
|
|
void update100();
|
2012-04-02 19:33:05 +02:00
|
|
|
void update118();
|
2012-07-11 18:31:23 +02:00
|
|
|
void update120();
|
2012-07-16 13:59:24 +02:00
|
|
|
void update130();
|
2013-11-08 22:17:27 +01:00
|
|
|
void update140();
|
2011-10-21 23:51:02 +02:00
|
|
|
|
2011-10-18 14:30:17 +02:00
|
|
|
QString m_profilePath;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PROFILEUPDATER_H
|