terminal-gdbus.h 3.54 KB
Newer Older
1 2 3
/*
 *  Copyright © 2011 Christian Persch
 *
4 5 6 7
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
8
 *
9 10 11 12
 * 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.
13
 *
14 15
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 17
 */

18 19
#ifndef TERMINAL_RECEIVER_IMPL_H
#define TERMINAL_RECEIVER_IMPL_H
20 21 22 23 24 25 26 27

#include <glib-object.h>

#include "terminal-gdbus-generated.h"
#include "terminal-screen.h"

G_BEGIN_DECLS

28 29 30 31 32 33
#define TERMINAL_TYPE_RECEIVER_IMPL         (terminal_receiver_impl_get_type ())
#define TERMINAL_RECEIVER_IMPL(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), TERMINAL_TYPE_RECEIVER_IMPL, TerminalReceiverImpl))
#define TERMINAL_RECEIVER_IMPL_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), TERMINAL_TYPE_RECEIVER_IMPL, TerminalReceiverImplClass))
#define TERMINAL_IS_RECEIVER_IMPL(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), TERMINAL_TYPE_RECEIVER_IMPL))
#define TERMINAL_IS_RECEIVER_IMPL_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), TERMINAL_TYPE_RECEIVER_IMPL))
#define TERMINAL_RECEIVER_IMPL_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TERMINAL_TYPE_RECEIVER_IMPL, TerminalReceiverImplClass))
34

35 36 37
typedef struct _TerminalReceiverImpl        TerminalReceiverImpl;
typedef struct _TerminalReceiverImplClass   TerminalReceiverImplClass;
typedef struct _TerminalReceiverImplPrivate TerminalReceiverImplPrivate;
38

39
struct _TerminalReceiverImpl
40 41 42 43
{
  TerminalReceiverSkeleton parent_instance;

  /*< private >*/
44
  TerminalReceiverImplPrivate *priv;
45 46
};

47
struct _TerminalReceiverImplClass
48 49 50 51
{
  TerminalReceiverSkeletonClass parent_class;
};

52
GType terminal_receiver_impl_get_type (void);
53

54
TerminalReceiverImpl *terminal_receiver_impl_new (TerminalScreen *screen);
55

56
TerminalScreen *terminal_receiver_impl_get_screen (TerminalReceiverImpl *impl);
57

58
void terminal_receiver_impl_unset_screen (TerminalReceiverImpl *impl);
59

60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
/* ------------------------------------------------------------------------- */

#define TERMINAL_TYPE_FACTORY_IMPL              (terminal_factory_impl_get_type ())
#define TERMINAL_FACTORY_IMPL(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), TERMINAL_TYPE_FACTORY_IMPL, TerminalFactoryImpl))
#define TERMINAL_FACTORY_IMPL_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), TERMINAL_TYPE_FACTORY_IMPL, TerminalFactoryImplClass))
#define TERMINAL_IS_FACTORY_IMPL(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), TERMINAL_TYPE_FACTORY_IMPL))
#define TERMINAL_IS_FACTORY_IMPL_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), TERMINAL_TYPE_FACTORY_IMPL))
#define TERMINAL_FACTORY_IMPL_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), TERMINAL_TYPE_FACTORY_IMPL, TerminalFactoryImplClass))

typedef struct _TerminalFactoryImpl        TerminalFactoryImpl;
typedef struct _TerminalFactoryImplPrivate TerminalFactoryImplPrivate;
typedef struct _TerminalFactoryImplClass   TerminalFactoryImplClass;

struct _TerminalFactoryImplClass {
  TerminalFactorySkeletonClass parent_class;
};

struct _TerminalFactoryImpl
{
  TerminalFactorySkeleton parent_instance;

  TerminalFactoryImplPrivate *priv;
};

GType terminal_factory_impl_get_type (void);

TerminalFactory *terminal_factory_impl_new (void);

88 89
G_END_DECLS

90
#endif /* !TERMINAL_RECEIVER_IMPL_H */