/usr/include/qupzilla/profilemanager.h is in libqupzilla-dev 1.8.9~dfsg1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | /* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com>
*
* 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/>.
* ============================================================ */
#ifndef PROFILEMANAGER_H
#define PROFILEMANAGER_H
#include <QString>
#include "qzcommon.h"
class ProfileManager
{
public:
explicit ProfileManager();
// Make sure the config dir exists and have correct structure
void initConfigDir() const;
// Set current profile name (from profiles.ini) and ensure dir exists with correct structure
void initCurrentProfile(const QString &profileName);
// Return 0 on success, -1 profile already exists, -2 cannot create directory
int createProfile(const QString &profileName);
// Return false on error (profile does not exists)
bool removeProfile(const QString &profileName);
// Name of current profile
QString currentProfile() const;
// Name of starting profile
QString startingProfile() const;
void setStartingProfile(const QString &profileName);
// Names of available profiles
QStringList availableProfiles() const;
private:
void updateCurrentProfile();
void updateProfile(const QString ¤t, const QString &profile);
void copyDataToProfile();
void connectDatabase();
void update100();
void update118();
void update120();
void update130();
void update140();
void update160();
void update186();
bool m_databaseConnected;
};
#endif // PROFILEMANAGER_H
|