blob: d0e174e8763f636ea7c729460439f849b9f011ec [file] [log] [blame]
Thibault Wittemberg77cf6002016-11-09 16:53:31 -05001/*
Sébastien Blinab53ada2019-01-02 17:23:00 -05002 * Copyright (C) 2004-2019 Savoir-faire Linux Inc.
Thibault Wittemberg77cf6002016-11-09 16:53:31 -05003 *
4 * Author: Thibault Wittemberg <thibault.wittemberg@savoirfairelinux.com>
5 *
6 * This program is free 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 * This program 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 this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20package cx.ring.model;
21
22public class Settings {
Adrien Béraud2693eca2018-01-24 16:38:48 -050023 private boolean mAllowPushNotifications;
Sébastien Blinde52fa22018-12-06 13:35:19 -050024 private boolean mAllowPersistentNotification;
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050025 private boolean mAllowSystemContacts;
26 private boolean mAllowPlaceSystemCalls;
Adrien Béraude591bdd2020-05-10 22:31:16 -040027 private boolean mAllowOnStartup;
Adrien Béraud693b6882019-01-27 14:51:11 -050028 private boolean mHwEncoding;
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050029
Adrien Béraud3aa56c02018-08-26 16:06:54 -040030 public Settings() {
31 }
Adrien Béraude591bdd2020-05-10 22:31:16 -040032
Adrien Béraud3aa56c02018-08-26 16:06:54 -040033 public Settings(Settings s) {
Adrien Bérauda945e9a2020-06-09 15:10:35 -040034 if (s != null) {
35 mAllowPushNotifications = s.mAllowPushNotifications;
36 mAllowPersistentNotification = s.mAllowPersistentNotification;
37 mAllowSystemContacts = s.mAllowSystemContacts;
38 mAllowPlaceSystemCalls = s.mAllowPlaceSystemCalls;
39 mAllowOnStartup = s.mAllowOnStartup;
40 mHwEncoding = s.mHwEncoding;
41 }
Adrien Béraud3aa56c02018-08-26 16:06:54 -040042 }
43
Adrien Béraud2693eca2018-01-24 16:38:48 -050044 public boolean isAllowPushNotifications() {
45 return mAllowPushNotifications;
46 }
47
48 public void setAllowPushNotifications(boolean push) {
49 this.mAllowPushNotifications = push;
50 }
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050051
52 public boolean isAllowSystemContacts() {
53 return mAllowSystemContacts;
54 }
55
56 public void setAllowSystemContacts(boolean allowSystemContacts) {
57 this.mAllowSystemContacts = allowSystemContacts;
58 }
59
60 public boolean isAllowPlaceSystemCalls() {
61 return mAllowPlaceSystemCalls;
62 }
63
64 public void setAllowPlaceSystemCalls(boolean allowPlaceSystemCalls) {
65 this.mAllowPlaceSystemCalls = allowPlaceSystemCalls;
66 }
67
Adrien Béraude591bdd2020-05-10 22:31:16 -040068 public boolean isAllowOnStartup() {
69 return mAllowOnStartup;
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050070 }
71
72 public void setAllowRingOnStartup(boolean allowRingOnStartup) {
Adrien Béraude591bdd2020-05-10 22:31:16 -040073 this.mAllowOnStartup = allowRingOnStartup;
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050074 }
Adrien Béraud1e848752018-08-26 15:30:43 -040075
Sébastien Blinde52fa22018-12-06 13:35:19 -050076 public void setAllowPersistentNotification(boolean checked) {
77 this.mAllowPersistentNotification = checked;
78 }
79
80 public boolean isAllowPersistentNotification() {
81 return mAllowPersistentNotification;
82 }
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050083}