qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
inotificationsettings.h
Go to the documentation of this file.
1 /*
2  Copyright © 2020 by The qTox Project Contributors
3 
4  This file is part of qTox, a Qt-based graphical interface for Tox.
5 
6  qTox is libre software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  qTox is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with qTox. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #pragma once
21 
22 #include <QStringList>
23 
25 {
26 public:
27  INotificationSettings() = default;
28  virtual ~INotificationSettings();
33 
34  virtual bool getNotify() const = 0;
35  virtual void setNotify(bool newValue) = 0;
36 
37  virtual bool getShowWindow() const = 0;
38  virtual void setShowWindow(bool newValue) = 0;
39 
40  virtual bool getDesktopNotify() const = 0;
41  virtual void setDesktopNotify(bool enabled) = 0;
42 
43  virtual bool getNotifySound() const = 0;
44  virtual void setNotifySound(bool newValue) = 0;
45 
46  virtual bool getNotifyHide() const = 0;
47  virtual void setNotifyHide(bool newValue) = 0;
48 
49  virtual bool getBusySound() const = 0;
50  virtual void setBusySound(bool newValue) = 0;
51 
52  virtual bool getGroupAlwaysNotify() const = 0;
53  virtual void setGroupAlwaysNotify(bool newValue) = 0;
54 };
INotificationSettings::getNotifySound
virtual bool getNotifySound() const =0
INotificationSettings::INotificationSettings
INotificationSettings()=default
INotificationSettings::~INotificationSettings
virtual ~INotificationSettings()
INotificationSettings::getDesktopNotify
virtual bool getDesktopNotify() const =0
INotificationSettings::getNotifyHide
virtual bool getNotifyHide() const =0
INotificationSettings::setBusySound
virtual void setBusySound(bool newValue)=0
INotificationSettings::setGroupAlwaysNotify
virtual void setGroupAlwaysNotify(bool newValue)=0
INotificationSettings::getNotify
virtual bool getNotify() const =0
INotificationSettings::getGroupAlwaysNotify
virtual bool getGroupAlwaysNotify() const =0
INotificationSettings::setNotifySound
virtual void setNotifySound(bool newValue)=0
INotificationSettings::setNotifyHide
virtual void setNotifyHide(bool newValue)=0
INotificationSettings::operator=
INotificationSettings & operator=(const INotificationSettings &)=default
INotificationSettings::setDesktopNotify
virtual void setDesktopNotify(bool enabled)=0
INotificationSettings::getBusySound
virtual bool getBusySound() const =0
INotificationSettings::setNotify
virtual void setNotify(bool newValue)=0
INotificationSettings::setShowWindow
virtual void setShowWindow(bool newValue)=0
INotificationSettings::getShowWindow
virtual bool getShowWindow() const =0
INotificationSettings
Definition: inotificationsettings.h:24