425
|
1 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
|
2 |
/* |
|
3 |
* Copyright (C) 2007 Imendio AB |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU Lesser General Public License as |
|
7 |
* published by the Free Software Foundation; either version 2 of the |
|
8 |
* License, or (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 GNU |
|
13 |
* Lesser General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU Lesser General Public |
|
16 |
* License along with this program; if not, write to the |
|
17 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|
18 |
* Boston, MA 02111-1307, USA. |
|
19 |
*/ |
|
20 |
|
|
21 |
#ifndef __LM_SIMPLE_IO_H__ |
|
22 |
#define __LM_SIMPLE_IO_H__ |
|
23 |
|
|
24 |
#include <glib-object.h> |
|
25 |
|
|
26 |
G_BEGIN_DECLS |
|
27 |
|
|
28 |
#define LM_TYPE_DUMMY (lm_simple_io_get_type ()) |
|
29 |
#define LM_SIMPLE_IO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LM_TYPE_DUMMY, LmSimpleIO)) |
|
30 |
#define LM_SIMPLE_IO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LM_TYPE_DUMMY, LmSimpleIOClass)) |
|
31 |
#define LM_IS_DUMMY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LM_TYPE_DUMMY)) |
|
32 |
#define LM_IS_DUMMY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LM_TYPE_DUMMY)) |
|
33 |
#define LM_SIMPLE_IO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LM_TYPE_DUMMY, LmSimpleIOClass)) |
|
34 |
|
|
35 |
typedef struct LmSimpleIO LmSimpleIO; |
|
36 |
typedef struct LmSimpleIOClass LmSimpleIOClass; |
|
37 |
|
|
38 |
struct LmSimpleIO { |
|
39 |
GObject parent; |
|
40 |
}; |
|
41 |
|
|
42 |
struct LmSimpleIOClass { |
|
43 |
GObjectClass parent_class; |
|
44 |
|
|
45 |
/* <vtable> */ |
|
46 |
void (*initialize) (LmSimpleIO *simple_io, |
|
47 |
const char *username, |
|
48 |
const char *server, |
|
49 |
const char *password); |
|
50 |
void (*begin) (LmSimpleIO *simple_io); |
|
51 |
void (*cancel) (LmSimpleIO *simple_io); |
|
52 |
}; |
|
53 |
|
|
54 |
GType lm_simple_io_get_type (void); |
|
55 |
|
|
56 |
G_END_DECLS |
|
57 |
|
|
58 |
#endif /* __LM_SIMPLE_IO_H__ */ |
|
59 |
|