~ubuntu-branches/ubuntu/karmic/libtinymail/karmic

« back to all changes in this revision

Viewing changes to libtinymail-test/tny-test-object.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-10-12 11:21:12 UTC
  • Revision ID: james.westby@ubuntu.com-20071012112112-fod9fs7yrooxjr7i
Tags: upstream-0.0.2
ImportĀ upstreamĀ versionĀ 0.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef TNY_TEST_OBJECT_H
 
2
#define TNY_TEST_OBJECT_H
 
3
 
 
4
/* tinymail - Tiny Mail unit test
 
5
 * Copyright (C) 2006-2007 Philip Van Hoof <pvanhoof@gnome.org>
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or modify
 
8
 * it under the terms of the GNU General Public License as published by
 
9
 * the Free Software Foundation; either version 2 of the License, or
 
10
 * (at your option) any later version.
 
11
 *
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License
 
18
 * along with self program; if not, write to the Free Software
 
19
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
20
 */
 
21
 
 
22
#include <glib.h>
 
23
#include <glib-object.h>
 
24
 
 
25
G_BEGIN_DECLS
 
26
 
 
27
#define TNY_TYPE_TEST_OBJECT             (tny_test_object_get_type ())
 
28
#define TNY_TEST_OBJECT(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), TNY_TYPE_TEST_OBJECT, TnyTestObject))
 
29
#define TNY_TEST_OBJECT_CLASS(vtable)    (G_TYPE_CHECK_CLASS_CAST ((vtable), TNY_TYPE_TEST_OBJECT, TnyTestObjectClass))
 
30
#define TNY_IS_TEST_OBJECT(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TNY_TYPE_TEST_OBJECT))
 
31
#define TNY_IS_TEST_OBJECT_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), TNY_TYPE_TEST_OBJECT))
 
32
#define TNY_TEST_OBJECT_GET_CLASS(inst)  (G_TYPE_INSTANCE_GET_CLASS ((inst), TNY_TYPE_TEST_OBJECT, TnyTestObjectClass))
 
33
 
 
34
 
 
35
typedef struct _TnyTestObject TnyTestObject;
 
36
typedef struct _TnyTestObjectClass TnyTestObjectClass;
 
37
 
 
38
struct _TnyTestObject {
 
39
        GObject parent;
 
40
        gchar *str;
 
41
};
 
42
 
 
43
struct _TnyTestObjectClass 
 
44
{
 
45
        GObjectClass parent;
 
46
};
 
47
 
 
48
GObject* tny_test_object_new (gchar *str);
 
49
 
 
50
G_END_DECLS
 
51
 
 
52
#endif