webpin/src/Settings.vala

54 lines
1.9 KiB
Vala
Raw Normal View History

/*-
* Copyright (c) 2015 Erasmo Marín <erasmo.marin@gmail.com>
* Copyright (c) 2017-2017 Artem Anufrij <artem.anufrij@live.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 2 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* The Noise authors hereby grant permission for non-GPL compatible
* GStreamer plugins to be used and distributed together with GStreamer
* and Noise. This permission is above and beyond the permissions granted
* by the GPL license by which Noise is covered. If you modify this code
* you may extend this exception to your version of the code, but you are not
* obligated to do so. If you do not wish to do so, delete this exception
* statement from your version.
*
* Authored by: Artem Anufrij <artem.anufrij@live.de>
*/
2017-07-31 19:27:03 +01:00
namespace Webpin {
public class Settings : Granite.Services.Settings {
2017-07-31 19:27:03 +01:00
private static Settings settings;
public static Settings get_default () {
if (settings == null)
settings = new Settings ();
2017-07-31 19:27:03 +01:00
return settings;
}
public int window_width { get; set; }
public int window_height { get; set; }
public WindowState window_state { get; set; }
private Settings () {
base ("com.github.artemanufrij.webpin");
}
2017-07-31 19:27:03 +01:00
public enum WindowState {
NORMAL,
MAXIMIZED,
FULLSCREEN
}
2017-07-31 19:27:03 +01:00
}
}