swift
updatenotification.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2017 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_GUI_SETTINGS_UPDATENOTIFICATIONSETTINGS_H
7 #define SWIFT_GUI_SETTINGS_UPDATENOTIFICATIONSETTINGS_H
8 
9 #include "gui/swiftguiexport.h"
10 #include "misc/settingscache.h"
11 
12 namespace swift::gui::settings
13 {
16  {
18  static const char *key() { return "guiupdatenotification/%Application%"; }
19 
21  static const bool &defaultValue()
22  {
23  static const bool d = true;
24  return d;
25  }
26 
28  static const QString &humanReadable()
29  {
30  static const QString name("Update notification");
31  return name;
32  }
33  };
34 } // namespace swift::gui::settings
35 
36 #endif // SWIFT_GUI_SETTINGS_UPDATENOTIFICATIONSETTINGS_H
static const bool & defaultValue()
Return the value to use in case the supplied value does not satisfy the validator....
static const QString & humanReadable()
Optional human readable name.
static const char * key()
Key string of the value. Reimplemented in derived class.
Base class for traits to be used as template argument to swift::misc::CSetting.