2 * Bittorrent Client using Qt and libtorrent.
3 * Copyright (C) 2022 Mike Tzou (Chocobo1)
4 * Copyright (C) 2015, 2019 Vladimir Golovnev <glassez@yandex.ru>
5 * Copyright (C) 2006 Christophe Dumez
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 * In addition, as a special exception, the copyright holders give permission to
22 * link this program with the OpenSSL project's "OpenSSL" library (or with
23 * modified versions of it that use the same license as the "OpenSSL" library),
24 * and distribute the linked executables. You must obey the GNU General Public
25 * License in all respects for all of the code used other than "OpenSSL". If you
26 * modify file(s), you may extend this exception to your version of the file(s),
27 * but you are not obligated to do so. If you do not wish to do so, delete this
28 * exception statement from your version.
33 #include <QtSystemDetection>
34 #include <QMetaObject>
36 #include "base/pathfwd.h"
38 class AddTorrentManager
;
40 struct QBtCommandLineParameters
;
43 inline namespace ApplicationSettingsEnums
47 enum class MemoryPriority
: int
55 Q_ENUM_NS(MemoryPriority
)
62 virtual ~IApplication() = default;
64 virtual QString
instanceName() const = 0;
65 virtual void setInstanceName(const QString
&name
) = 0;
67 // FileLogger properties
68 virtual bool isFileLoggerEnabled() const = 0;
69 virtual void setFileLoggerEnabled(bool value
) = 0;
70 virtual Path
fileLoggerPath() const = 0;
71 virtual void setFileLoggerPath(const Path
&path
) = 0;
72 virtual bool isFileLoggerBackup() const = 0;
73 virtual void setFileLoggerBackup(bool value
) = 0;
74 virtual bool isFileLoggerDeleteOld() const = 0;
75 virtual void setFileLoggerDeleteOld(bool value
) = 0;
76 virtual int fileLoggerMaxSize() const = 0;
77 virtual void setFileLoggerMaxSize(int bytes
) = 0;
78 virtual int fileLoggerAge() const = 0;
79 virtual void setFileLoggerAge(int value
) = 0;
80 virtual int fileLoggerAgeType() const = 0;
81 virtual void setFileLoggerAgeType(int value
) = 0;
83 virtual int memoryWorkingSetLimit() const = 0;
84 virtual void setMemoryWorkingSetLimit(int size
) = 0;
86 virtual void sendTestEmail() const = 0;
89 virtual MemoryPriority
processMemoryPriority() const = 0;
90 virtual void setProcessMemoryPriority(MemoryPriority priority
) = 0;
93 virtual AddTorrentManager
*addTorrentManager() const = 0;
95 virtual WebUI
*webUI() const = 0;