File: task-model.h

package info (click to toggle)
vala-panel 24.05-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 5,624 kB
  • sloc: ansic: 16,279; xml: 520; makefile: 21
file content (57 lines) | stat: -rw-r--r-- 1,972 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
 * vala-panel
 * Copyright (C) 2020 Konstantin Pugin <ria.freelander@gmail.com>
 *
 * 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 3 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 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/>.
 */

#ifndef TASK_MODEL_H
#define TASK_MODEL_H

#include <gio/gio.h>
#include <glib-object.h>
#include <stdbool.h>

#include "task.h"

G_BEGIN_DECLS

G_DECLARE_DERIVABLE_TYPE(ValaPanelTaskModel, vala_panel_task_model, VALA_PANEL, TASK_MODEL, GObject)

#define VTM_KEY_SHOW_LAUNCHERS "show-launchers"
#define VTM_KEY_ONLY_LAUNCHERS "only-launchers"
#define VTM_KEY_ONLY_MINIMIZED "only-minimized"
#define VTM_KEY_DOCK_MODE "dock-mode"
#define VTM_KEY_CURRENT_OUTPUT "current-output"

#define VTM_ACTION_NEW_INSTANCE "new-instance"
#define VTM_ACTION_DESKTOP "desktop-action"

struct _ValaPanelTaskModelClass
{
	GObjectClass parent_class;
	void (*start_manager)(ValaPanelTaskModel *model);
	void (*stop_manager)(ValaPanelTaskModel *model);
	gpointer padding[12];
};

bool vala_panel_task_model_remove_task(ValaPanelTaskModel *self, const char *uuid);
ValaPanelTask *vala_panel_task_model_get_by_uuid(ValaPanelTaskModel *self, const char *uuid);
void vala_panel_task_model_add_task(ValaPanelTaskModel *self, ValaPanelTask *task);
int vala_panel_task_model_get_current_output_num(ValaPanelTaskModel *self);
void vala_panel_task_model_change_current_output(ValaPanelTaskModel *self, int output);

G_END_DECLS

#endif // INFODATA_H