1
// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
3
* Copyright 2012 Canonical Ltd.
5
* This program is free software: you can redistribute it and/or modify it
6
* under the terms of the GNU Lesser General Public License version 3, as
7
* published by the Free Software Foundation.
9
* This program is distributed in the hope that it will be useful, but
10
* WITHOUT ANY WARRANTY; without even the implied warranties of
11
* MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
12
* PURPOSE. See the applicable version of the GNU Lesser General Public
13
* License for more details.
15
* You should have received a copy of both the GNU Lesser General Public
16
* License version 3 along with this program. If not, see
17
* <http://www.gnu.org/licenses/>
19
* Authored by: Andrea Azzarone <andrea.azzarone@canonical.com>
23
#ifndef MOCK_BAMF_MOCK_WINDOW
24
#define MOCK_BAMF_MOCK_WINDOW
27
#include <glib-object.h>
28
#include <libbamf/libbamf.h>
32
#define BAMF_TYPE_MOCK_WINDOW (bamf_mock_window_get_type ())
34
#define BAMF_MOCK_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
35
BAMF_TYPE_MOCK_WINDOW, BamfMockWindow))
37
#define BAMF_MOCK_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
38
BAMF_TYPE_MOCK_WINDOW, BamfMockWindowClass))
40
#define BAMF_IS_MOCK_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
41
BAMF_TYPE_MOCK_WINDOW))
43
#define BAMF_IS_MOCK_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\
44
BAMF_TYPE_MOCK_WINDOW))
46
#define BAMF_MOCK_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\
47
BAMF_TYPE_MOCK_WINDOW, BamfMockWindowClass))
49
typedef struct _BamfMockWindow BamfMockWindow;
50
typedef struct _BamfMockWindowClass BamfMockWindowClass;
51
typedef struct _BamfMockWindowPrivate BamfMockWindowPrivate;
53
struct _BamfMockWindow
57
BamfMockWindowPrivate *priv;
60
struct _BamfMockWindowClass
62
BamfWindowClass parent_class;
65
GType bamf_mock_window_get_type (void) G_GNUC_CONST;
67
BamfMockWindow * bamf_mock_window_new ();
69
void bamf_mock_window_set_transient (BamfMockWindow *self, BamfWindow* transient);
70
void bamf_mock_window_set_window_type (BamfMockWindow *self, BamfWindowType window_type);
71
void bamf_mock_window_set_xid (BamfMockWindow *self, guint32 xid);
72
void bamf_mock_window_set_pid (BamfMockWindow *self, guint32 pid);
73
void bamf_mock_window_set_monitor (BamfMockWindow *self, gint monitor);
74
void bamf_mock_window_set_utf8_prop (BamfMockWindow *self, const char* prop, const char* value);
75
void bamf_mock_window_set_maximized (BamfMockWindow *self, BamfWindowMaximizationType maximized);
76
void bamf_mock_window_set_last_active (BamfMockWindow *self, time_t last_active);