1/* Copyright 2014-2020 Go For It! developers
2*
3* This file is part of Go For It!.
4*
5* Go For It! is free software: you can redistribute it
6* and/or modify it under the terms of version 3 of the
7* GNU General Public License as published by the Free Software Foundation.
8*
9* Go For It! is distributed in the hope that it will be
10* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
12* Public License for more details.
13*
14* You should have received a copy of the GNU General Public License along
15* with Go For It!. If not, see http://www.gnu.org/licenses/.
16*/
17
18/**
19 * This file contains a central collection of static constants that are
20 * related to "Go For It!".
21 * Constants.vala should not be edited as it will be overwritten by the build
22 * system.
23 */
24namespace GOFI {
25    /* Strings */
26    public const string APP_NAME = "@APP_NAME@";
27    public const string EXEC_NAME = "@EXEC_NAME@";
28    public const string APP_SYSTEM_NAME = "@APP_SYSTEM_NAME@";
29    public const string APP_ID = "@APP_ID@";
30    public const string ICON_NAME = "@ICON_NAME@";
31    public const int MAJOR_VERSION = @MAJOR_VERSION@;
32    public const int MINOR_VERSION = @MINOR_VERSION@;
33    public const int MICRO_VERSION = @MICRO_VERSION@;
34    const string FILE_CONF = "@FILE_CONF@";
35    const string PROJECT_WEBSITE = "@PROJECT_WEBSITE@";
36    const string PROJECT_REPO = "@PROJECT_REPO@";
37    const string PROJECT_DONATIONS = "@PROJECT_DONATIONS@";
38    const string INSTALL_PREFIX = "@INSTALL_PREFIX@";
39    const string DATADIR = "@PKGDATADIR@";
40    const string PLUGINDIR = "@PLUGINDIR@";
41    const string GETTEXT_PACKAGE = "@GETTEXT_PACKAGE@";
42    const string DEFAULT_THEME = "@DEFAULT_THEME@";
43    const string RESOURCE_PATH = "@RESOURCE_PATH@";
44    const string SCHEMA_PATH = "@SCHEMA_PATH@";
45
46    public static string get_app_name () {
47        return APP_NAME;
48    }
49
50    public static string get_app_id () {
51        return APP_ID;
52    }
53
54    public static int get_major_version () {
55        return MAJOR_VERSION;
56    }
57
58    public static int get_minor_version () {
59        return MINOR_VERSION;
60    }
61
62    public static int get_micro_version () {
63        return MICRO_VERSION;
64    }
65
66    public static string get_version_str () {
67        return "%i.%i.%i".printf (MAJOR_VERSION, MINOR_VERSION, MICRO_VERSION);
68    }
69
70    public static string[] get_default_todos () {
71        return {
72            _("Spread the word about \"%s\"").printf (APP_NAME),
73            _("Consider a donation to help the project"),
74            _("Consider contributing to the project")
75        };
76    }
77}
78