1 /* ide-recent-projects.h
2  *
3  * Copyright 2015-2019 Christian Hergert <christian@hergert.me>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  *
18  * SPDX-License-Identifier: GPL-3.0-or-later
19  */
20 
21 #pragma once
22 
23 #include <libide-core.h>
24 #include <libide-projects.h>
25 
26 G_BEGIN_DECLS
27 
28 #define IDE_TYPE_RECENT_PROJECTS (ide_recent_projects_get_type())
29 
30 #define IDE_RECENT_PROJECTS_GROUP                          "X-GNOME-Builder-Project"
31 #define IDE_RECENT_PROJECTS_LANGUAGE_GROUP_PREFIX          "X-GNOME-Builder-Language:"
32 #define IDE_RECENT_PROJECTS_BUILD_SYSTEM_GROUP_PREFIX      "X-GNOME-Builder-Build-System:"
33 #define IDE_RECENT_PROJECTS_BUILD_SYSTEM_HINT_GROUP_PREFIX "X-GNOME-Builder-Build-System-Hint:"
34 #define IDE_RECENT_PROJECTS_DIRECTORY                      "X-GNOME-Builder-Directory:"
35 #define IDE_RECENT_PROJECTS_BOOKMARK_FILENAME              "recent-projects.xbel"
36 
37 IDE_AVAILABLE_IN_3_32
38 G_DECLARE_FINAL_TYPE (IdeRecentProjects, ide_recent_projects, IDE, RECENT_PROJECTS, GObject)
39 
40 IDE_AVAILABLE_IN_3_32
41 IdeRecentProjects *ide_recent_projects_get_default       (void);
42 IDE_AVAILABLE_IN_3_32
43 IdeRecentProjects *ide_recent_projects_new               (void);
44 IDE_AVAILABLE_IN_3_32
45 void               ide_recent_projects_remove            (IdeRecentProjects *self,
46                                                           GList             *project_infos);
47 IDE_AVAILABLE_IN_3_32
48 gchar             *ide_recent_projects_find_by_directory (IdeRecentProjects *self,
49                                                           const gchar       *directory);
50 
51 G_END_DECLS
52